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

ToolCall

Interface: ToolCall<TMetadata>

Defined in: packages/typescript/ai/src/types.ts:135

Type Parameters

TMetadata

TMetadata = unknown

Properties

function

ts
function: object;
function: object;

Defined in: packages/typescript/ai/src/types.ts:138

arguments

ts
arguments: string;
arguments: string;

name

ts
name: string;
name: string;

id

ts
id: string;
id: string;

Defined in: packages/typescript/ai/src/types.ts:136


metadata?

ts
optional metadata: TMetadata;
optional metadata: TMetadata;

Defined in: packages/typescript/ai/src/types.ts:145

Provider-specific metadata to carry through the tool call lifecycle. Typed per-adapter via TToolCallMetadata. For example, @tanstack/ai-gemini sets this to { thoughtSignature?: string }.


type

ts
type: "function";
type: "function";

Defined in: packages/typescript/ai/src/types.ts:137