Skip to content

core / Exports / AssistantMessage

Interface: AssistantMessage

Assistant message interface - for AI assistant responses

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: "assistant"

Message role - always 'assistant'

Defined in

conversation-history.ts:46


content

content: null | string

Assistant response content (can be null when making tool calls)

Defined in

conversation-history.ts:49


functionCall

Optional functionCall: any

Function call made by the assistant (if any) - legacy format

Defined in

conversation-history.ts:52


toolCalls

Optional toolCalls: { id: string ; type: "function" ; function: { name: string ; arguments: string } }[]

Tool calls made by the assistant (OpenAI tool calling format)

Defined in

conversation-history.ts:55

Released under the MIT License.