Skip to main content

Interface: ToolCall

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

Tool call from LLM response

Properties

arguments

arguments: unknown

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

Tool arguments (already parsed from JSON)


id

id: string

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

Unique identifier for the tool call


name

name: string

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

Name of the tool being called


result?

optional result?: unknown

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

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.