Skip to main content

ToolCallCompleteContext

Agent Runtimes


Agent Runtimes / types/chat / ToolCallCompleteContext

Interface: ToolCallCompleteContext

Defined in: src/types/chat.ts:43

Context passed to tool-call post-hooks. Fires when a tool result is received.

Properties

args

args: Record<string, unknown>

Defined in: src/types/chat.ts:49

Arguments that were passed to the tool


error?

optional error?: string

Defined in: src/types/chat.ts:55

Error message, if the tool call failed


result

result: unknown

Defined in: src/types/chat.ts:51

The tool result (may be a string, object, or undefined on error)


status

status: DisplayToolCallStatus

Defined in: src/types/chat.ts:53

Final status of the tool invocation


toolCallId

toolCallId: string

Defined in: src/types/chat.ts:47

Unique identifier for this tool invocation


toolName

toolName: string

Defined in: src/types/chat.ts:45

The tool name as declared by the agent