Skip to content

More flexible tool exception handling #2586

@strawgate

Description

@strawgate

Description

I think function Toolset is great for taking python code and making it runnable by an Agent.

An exception raised during a function call ends the agent run unless it's a model retry.

This means that often times users have to modify their functions in offer to use them with a function Toolset

We should think about making the default behavior that it catches exceptions from the function call and raises a model retry and perhaps have an option on the function tool/toolset to do something else (maybe a new exception like ModelFunctionToolError)

References

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions