Skip to main content

ToolCallRenderContext

Agent Runtimes


Agent Runtimes / types/chat / ToolCallRenderContext

Interface: ToolCallRenderContext

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

Tool call render context passed to renderToolResult

Properties

args

args: Record<string, unknown>

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

Tool arguments (may be incomplete during 'inProgress' status)


error?

optional error?: string

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

Error message if status is 'error'


name

name: string

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

Alias for toolName


respond?

optional respond?: RespondCallback

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

Callback to send response back to the agent (human-in-the-loop). Only available when status is 'executing'. Calling this resolves the tool call with the provided result.


result?

optional result?: unknown

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

Tool result (only available when status is 'complete')


status

status: DisplayToolCallStatus

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

Tool call status


toolCallId

toolCallId: string

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

Tool call ID


toolName

toolName: string

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

Tool name (e.g., "get_weather")