IRTool
Defined in: packages/ai.matey.types/src/ir.ts:238
Tool/function definition.
Describes a tool that the AI can call.
Example
Section titled “Example”const weatherTool: IRTool = { name: 'get_weather', description: 'Get current weather for a location', parameters: { type: 'object', properties: { location: { type: 'string', description: 'City name or coordinates' }, units: { type: 'string', enum: ['celsius', 'fahrenheit'], default: 'celsius' } }, required: ['location'] }};Properties
Section titled “Properties”description
Section titled “description”
readonlydescription:string
Defined in: packages/ai.matey.types/src/ir.ts:247
Human-readable description of what the tool does.
metadata?
Section titled “metadata?”
readonlyoptionalmetadata:Record<string,unknown>
Defined in: packages/ai.matey.types/src/ir.ts:257
Provider-specific tool configuration.
readonlyname:string
Defined in: packages/ai.matey.types/src/ir.ts:242
Tool name (must be valid identifier).
parameters
Section titled “parameters”
readonlyparameters:JSONSchema
Defined in: packages/ai.matey.types/src/ir.ts:252
JSON Schema for tool parameters.