Interface: ToolCall
Defined in: packages/core/src/providers/types.ts:420
Tool call from LLM response
Properties
arguments
arguments:
unknown
Defined in: packages/core/src/providers/types.ts:423
Tool arguments (already parsed from JSON)
id
id:
string
Defined in: packages/core/src/providers/types.ts:421
Unique identifier for the tool call
name
name:
string
Defined in: packages/core/src/providers/types.ts:422
Name of the tool being called
result?
optionalresult?:unknown
Defined in: packages/core/src/providers/types.ts:424
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.