Methods
addGlobalTool
Allows you to equip all agents under a box with an external tool that the agents can call based on the context. What are tools
All agents under the box will have access to a global tool.
Arguments
func
Function
requiredSpecifies the function to be executed when the agents call 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.
schema
ToolSchema
requiredDefines 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 agents what the tool is about and when to call it.
Recommended resources: