Skip to content

core / Exports / ToolMessage

Interface: ToolMessage

Tool message interface - for tool execution results

Hierarchy

Table of contents

Properties

Properties

timestamp

timestamp: Date

Message creation timestamp

Inherited from

BaseMessage.timestamp

Defined in

conversation-history.ts:17


metadata

Optional metadata: Record<string, any>

Additional metadata

Inherited from

BaseMessage.metadata

Defined in

conversation-history.ts:20


role

role: "tool"

Message role - always 'tool'

Defined in

conversation-history.ts:88


content

content: string

Tool execution result summary

Defined in

conversation-history.ts:91


name

Optional name: string

Name of the tool that was executed (legacy format)

Defined in

conversation-history.ts:94


toolCallId

Optional toolCallId: string

Tool call ID for OpenAI tool calling format

Defined in

conversation-history.ts:97


toolResult

Optional toolResult: any

Complete tool execution result (legacy format)

Defined in

conversation-history.ts:100

Released under the MIT License.