Skip to main content

ToolCallMessage

Agent Runtimes


Agent Runtimes / types/chat / ToolCallMessage

Interface: ToolCallMessage

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

Internal type for tracking tool calls in messages

Properties

args

args: Record<string, unknown>

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


codeError?

optional codeError?: object

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

Code error details (Python exception)

name

name: string

traceback?

optional traceback?: string

value

value: string


error?

optional error?: string

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


executionError?

optional executionError?: string

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

Infrastructure/execution error message


exitCode?

optional exitCode?: number | null

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

Exit code when code called sys.exit()


id

id: string

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


result?

optional result?: unknown

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


status

status: DisplayToolCallStatus

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


toolCallId

toolCallId: string

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


toolName

toolName: string

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


type

type: "tool-call"

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