Interface: ToolMessage
Tool message interface - for tool execution results
Hierarchy
↳
ToolMessage
Table of contents
Properties
Properties
timestamp
• timestamp: Date
Message creation timestamp
Inherited from
Defined in
metadata
• Optional
metadata: Record
<string
, any
>
Additional metadata
Inherited from
Defined in
role
• role: "tool"
Message role - always 'tool'
Defined in
content
• content: string
Tool execution result summary
Defined in
name
• Optional
name: string
Name of the tool that was executed (legacy format)
Defined in
toolCallId
• Optional
toolCallId: string
Tool call ID for OpenAI tool calling format
Defined in
toolResult
• Optional
toolResult: any
Complete tool execution result (legacy format)