DefineToolOptions<TArgs, TResult>
Interface: DefineToolOptions<TArgs, TResult>
Defined in: src/core/tools.ts:72
Convenience input for defineTool — flatter than Tool itself.
Consumers describe the tool inline; the helper assembles schema.
inputSchema is a JSON Schema object (the same one the LLM will
see). For tools that take no arguments, pass { type: 'object', properties: {} } or omit and we'll default to that.
Type Parameters
TArgs
TArgs
TResult
TResult
Properties
description
readonlydescription:string
Defined in: src/core/tools.ts:74
inputSchema?
readonlyoptionalinputSchema?:Readonly<Record<string,unknown>>
Defined in: src/core/tools.ts:75
name
readonlyname:string
Defined in: src/core/tools.ts:73
needs?
readonlyoptionalneeds?:CredentialNeed
Defined in: src/core/tools.ts:78
Declare a credential this tool needs (declare-and-push). Resolved by the
framework before execute and injected as ctx.credential.
Methods
execute()
execute(
args,ctx):TResult|Promise<TResult>
Defined in: src/core/tools.ts:79
Parameters
args
TArgs
ctx
Returns
TResult | Promise<TResult>
