Skip to content

remote / Exports / ResponseMessage

Interface: ResponseMessage

Message Types - Atomic Type Definitions

Single responsibility: Define only message-related types

Hierarchy

Table of contents

Properties

Properties

role

role: "user" | "assistant" | "system" | "tool"

Inherited from

BasicMessage.role

Defined in

types/message-types.ts:9


content

content: null | string

Inherited from

BasicMessage.content

Defined in

types/message-types.ts:10


timestamp

timestamp: Date

Defined in

types/message-types.ts:21


provider

Optional provider: string

Defined in

types/message-types.ts:22


model

Optional model: string

Defined in

types/message-types.ts:23


toolCalls

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

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

Defined in

types/message-types.ts:25

Released under the MIT License.