Represents the input and output types of a tool that can be used in messages.
// Tool that takes a string input and returns a numberinterface StringToNumberTool extends MessageToolDefinition<string, number> { input: string; output: number;} Copy
// Tool that takes a string input and returns a numberinterface StringToNumberTool extends MessageToolDefinition<string, number> { input: string; output: number;}
The type of input the tool accepts.
The type of output the tool produces.
Represents the input and output types of a tool that can be used in messages.
Example