Skip to content

feat: add decorators for mellea tools #382

@jakelorocco

Description

@jakelorocco

PR #380 added MelleaTools as a way to pass tools to models (removing our previous approach of using callables).

This adds some cumbersome / clunky code in places.
Previously:

tools = [get_weather, search, ...]

Now:

tools = [MelleaTool.from_callable(get_weather), MelleaTool.from_callable(search)]

We should add a mellea_tool or tool decorator (naming not important) for functions so that you can just reference them by their name if you plan to only use them as tools.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions