Kikoyu Core API Reference / createTool
Function: createTool()
createTool<
TSchema,TResult,TContext>(config):Tool<TSchema,TResult,TContext>
Type Parameters
• TSchema extends ZodTypeAny
• TResult
• TContext = Record<string, unknown>
Parameters
config
config.description
string
config.execute
(args, context) => TResult | Promise<TResult>
config.name
string
config.parameters
TSchema
config.requiresApproval
boolean | (args) => boolean
Returns
Tool<TSchema, TResult, TContext>
Defined in
tool.ts:5