Skip to content

Latest commit

History

History
106 lines (64 loc) 路 2.47 KB

File metadata and controls

106 lines (64 loc) 路 2.47 KB
id AfterToolCallInfo
title AfterToolCallInfo

Interface: AfterToolCallInfo

Defined in: packages/typescript/ai/src/activities/chat/middleware/types.ts:188

Outcome information provided to onAfterToolCall.

Properties

duration

duration: number;

Defined in: packages/typescript/ai/src/activities/chat/middleware/types.ts:200

Duration of tool execution in milliseconds


error?

optional error: unknown;

Defined in: packages/typescript/ai/src/activities/chat/middleware/types.ts:203


ok

ok: boolean;

Defined in: packages/typescript/ai/src/activities/chat/middleware/types.ts:198

Whether the execution succeeded


result?

optional result: unknown;

Defined in: packages/typescript/ai/src/activities/chat/middleware/types.ts:202

The result (if ok) or error (if not ok)


tool

tool: 
  | Tool<SchemaInput, SchemaInput, string>
  | undefined;

Defined in: packages/typescript/ai/src/activities/chat/middleware/types.ts:192

The resolved tool definition


toolCall

toolCall: ToolCall;

Defined in: packages/typescript/ai/src/activities/chat/middleware/types.ts:190

The tool call that was executed


toolCallId

toolCallId: string;

Defined in: packages/typescript/ai/src/activities/chat/middleware/types.ts:196

ID of the tool call


toolName

toolName: string;

Defined in: packages/typescript/ai/src/activities/chat/middleware/types.ts:194

Name of the tool