ToolDefinition
A tool that runs in this process, for agents to call.
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
Input extends StandardSchemaWithJSON |
StandardSchemaWithJSON |
Properties
Section titled “Properties”Methods
Section titled “Methods”run(args, context): unknown;Runs the tool. Return an object or a string. Throw to fail the call.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
args |
InferOutput<Input> |
context |
ToolContext |
Returns
Section titled “Returns”unknown