Documentation
Framework
Version
Class References
Function References
Interface References
Type Alias References
Variable References

ToolDefinitionConfig

Interface: ToolDefinitionConfig<TInput, TOutput, TName>

Defined in: tools/tool-definition.ts:83

Tool definition configuration

Type Parameters

TInput

TInput extends SchemaInput = z.ZodType

TOutput

TOutput extends SchemaInput = z.ZodType

TName

TName extends string = string

Properties

description

ts
description: string;
description: string;

Defined in: tools/tool-definition.ts:89


inputSchema?

ts
optional inputSchema: TInput;
optional inputSchema: TInput;

Defined in: tools/tool-definition.ts:90


metadata?

ts
optional metadata: Record<string, any>;
optional metadata: Record<string, any>;

Defined in: tools/tool-definition.ts:93


name

ts
name: TName;
name: TName;

Defined in: tools/tool-definition.ts:88


needsApproval?

ts
optional needsApproval: boolean;
optional needsApproval: boolean;

Defined in: tools/tool-definition.ts:92


outputSchema?

ts
optional outputSchema: TOutput;
optional outputSchema: TOutput;

Defined in: tools/tool-definition.ts:91