Skip to main content

ToolCallMessage

Agent Runtimes


Agent Runtimes / types/chat / ToolCallMessage

Interface: ToolCallMessage

Defined in: types/chat.ts:85

Internal type for tracking tool calls in messages

Properties

args

args: Record<string, unknown>

Defined in: types/chat.ts:90


codeError?

optional codeError?: object

Defined in: types/chat.ts:97

Code error details (Python exception)

name

name: string

traceback?

optional traceback?: string

value

value: string


error?

optional error?: string

Defined in: types/chat.ts:93


executionError?

optional executionError?: string

Defined in: types/chat.ts:95

Infrastructure/execution error message


exitCode?

optional exitCode?: number | null

Defined in: types/chat.ts:103

Exit code when code called sys.exit()


id

id: string

Defined in: types/chat.ts:86


result?

optional result?: unknown

Defined in: types/chat.ts:91


status

status: DisplayToolCallStatus

Defined in: types/chat.ts:92


toolCallId

toolCallId: string

Defined in: types/chat.ts:88


toolName

toolName: string

Defined in: types/chat.ts:89


type

type: "tool-call"

Defined in: types/chat.ts:87