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

ToolInputAvailableEvent

Interface: ToolInputAvailableEvent

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

Emitted when a client tool is invoked. The agent loop yields this and pauses to let the caller run the tool client-side — structured-output.complete will not fire for that run. Shape fixed by the agent-loop forwarding in runStreamingStructuredOutputImpl in activities/chat/index.ts.

Extends

Indexable

ts
[k: string]: unknown
[k: string]: unknown

Properties

model?

ts
optional model: string;
optional model: string;

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

Model identifier for multi-model support

Inherited from

CustomEvent.model


name

ts
name: "tool-input-available";
name: "tool-input-available";

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

Overrides

ts
CustomEvent.name
CustomEvent.name

value

ts
value: object;
value: object;

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

input

ts
input: unknown;
input: unknown;

toolCallId

ts
toolCallId: string;
toolCallId: string;

toolName

ts
toolName: string;
toolName: string;

Overrides

ts
CustomEvent.value
CustomEvent.value