core / Exports / AssistantMessage
Interface: AssistantMessage
Assistant message interface - for AI assistant responses
Hierarchy
↳
AssistantMessage
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: "assistant"
Message role - always 'assistant'
Defined in
content
• content: null
| string
Assistant response content (can be null when making tool calls)
Defined in
functionCall
• Optional
functionCall: any
Function call made by the assistant (if any) - legacy format
Defined in
toolCalls
• Optional
toolCalls: { id
: string
; type
: "function"
; function
: { name
: string
; arguments
: string
} }[]
Tool calls made by the assistant (OpenAI tool calling format)