You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the only way to define "tools" is via the following design patterns:
The @agent.tool decorator is great for simple agents
Wrapping an existing function in a Tool allows for re-usability, etc. tools
While these method are alright, they don't necessarily allow for a tool to have ClassVars or parameters. Given the shortcomings of the current approaches, I think it would be valuable to add a third approach which looks something like the following:
Note: this is a super simple example, but hopefully it illustrates the point.
Currently the only way to define "tools" is via the following design patterns:
@agent.tool
decorator is great for simple agentsTool
allows for re-usability, etc. toolsWhile these method are alright, they don't necessarily allow for a tool to have
ClassVar
s or parameters. Given the shortcomings of the current approaches, I think it would be valuable to add a third approach which looks something like the following:The text was updated successfully, but these errors were encountered: