Skip to main content

Interface: ToolCall

Defined in: packages/core/src/providers/types.ts:432

Tool call from LLM response

Properties

arguments

arguments: unknown

Defined in: packages/core/src/providers/types.ts:435

Tool arguments (already parsed from JSON)


id

id: string

Defined in: packages/core/src/providers/types.ts:433

Unique identifier for the tool call


name

name: string

Defined in: packages/core/src/providers/types.ts:434

Name of the tool being called


result?

optional result?: unknown

Defined in: packages/core/src/providers/types.ts:436

Optional tool execution result (Baleybots-specific)

Note: The result field is a Baleybots extension for consolidated storage. It is NOT present in provider responses (OpenAI/Anthropic) but is added by Baleybots after tool execution. This allows storing tool calls and their results together in history, which are then split back into separate messages when sending to providers for API compatibility.