Skip to content

Add parameter and description creation from create_tool_from_function into Tool #9006

@sjrl

Description

@sjrl

Is your feature request related to a problem? Please describe.
The create_tool_from_function is very useful as well as the tool decorator for not requiring users to have to specify description and parameters when converting a function into a tool.

However, when working from a yaml file (like in dC) it's not easy to use either of these conveniences.

Describe the solution you'd like
So I was wondering if we could update Tool to optionally require description and parameters and if they are missing we use the logic in create_tool_from_function to auto fill the parameters and description.

Describe alternatives you've considered
Leave as is and require users in Pipeline Studio to have to specify description and parameters when using Tool.

Additional context
What do you think @anakin87 since you've worked on this a lot?

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium priority, add to the next sprint if no P1 available

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions