Docs
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
Class References
Function References
Interface References
Type Alias References
Variable References
Interface References

ToolDefinitionConfig

Interface: ToolDefinitionConfig<TInput, TOutput, TName>

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

Tool definition configuration

Type Parameters

TInput

TInput extends SchemaInput = SchemaInput

TOutput

TOutput extends SchemaInput = SchemaInput

TName

TName extends string = string

Properties

description

ts
description: string;
description: string;

Defined in: activities/chat/tools/tool-definition.ts:96


inputSchema?

ts
optional inputSchema: TInput;
optional inputSchema: TInput;

Defined in: activities/chat/tools/tool-definition.ts:97


lazy?

ts
optional lazy: boolean;
optional lazy: boolean;

Defined in: activities/chat/tools/tool-definition.ts:100


metadata?

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

Defined in: activities/chat/tools/tool-definition.ts:101


name

ts
name: TName;
name: TName;

Defined in: activities/chat/tools/tool-definition.ts:95


needsApproval?

ts
optional needsApproval: boolean;
optional needsApproval: boolean;

Defined in: activities/chat/tools/tool-definition.ts:99


outputSchema?

ts
optional outputSchema: TOutput;
optional outputSchema: TOutput;

Defined in: activities/chat/tools/tool-definition.ts:98