Methods
addTool
Allows you to equip a specific agent under a box with an external tool that the agent can call based on the context. What are tools
Arguments
The agent ID to add the tool to. only agents with this specific ID can access this tool.
Specifies the function to be executed when the agent calls the tool. This function can perform any logic you define, but it will always receive its arguments as an object that has been validated against the provided tool schema.
Defines the schema for the tool. The schema is a critical element as it determines the expected parameters (inputs) for the tool function and tells the agent what the tool is about and when to call it.
Recommended resources:
Was this page helpful?