Represents a structured set of tools by mapping tool names to definitions that can be used in messages.
interface MyToolSet extends MessageToolSet { calculator: MessageToolDefinition< { operation: string; numbers: number[] }, number >; translator: MessageToolDefinition< { text: string; targetLanguage: string }, string >;} Copy
interface MyToolSet extends MessageToolSet { calculator: MessageToolDefinition< { operation: string; numbers: number[] }, number >; translator: MessageToolDefinition< { text: string; targetLanguage: string }, string >;}
Represents a structured set of tools by mapping tool names to definitions that can be used in messages.
Example