Skip to Content
Mika Scraper 1.1.1 is released ๐ŸŽ‰
๐Ÿ• MIKA INTERFACEInterface: ChatMessage

Mika Scraper v1.1.2


Mika Scraper / ChatMessage

Interface: ChatMessage

Defined in: src/_other-scraper/blackbox.ts:6

Represents a chat message in the messaging system.

Properties

role

role: "user" | "assistant"

Defines the role of the sender of the chat message. It can either be a user or an assistant. The role property helps in determining the context of the message within a conversation.

content

content: string

Contains the text of the chat message. This property holds the actual content that is being sent or received in the chat.

id

id: string

A unique identifier for the chat message. This property is crucial for tracking specific messages in the conversation history. Each message must have a distinct ID to ensure proper retrieval and management.

Example

const message: ChatMessage = { role: "assistant", content: "Hello, how can I assist you today?", id: "msg_123456" };
Last updated on