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

Mika Scraper v1.1.2


Mika Scraper / ChaiChatMessage

Interface: ChaiChatMessage

Defined in: src/_other-scraper/mika-ai.ts:10

The ChaiChatMessage interface represents the structure of a chat message used within the Mika scraping application. This interface defines the different roles that a chat message can have and the content of the message itself.

Properties

role

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

Defined in: src/_other-scraper/mika-ai.ts:11

The role property specifies the sender of the message. It can take one of three string literal values:

  • "user": Indicates that the message is from the user.
  • "system": Represents a message generated by the system.
  • "assistant": Signifies a message from the assistant.

content

content: string

Defined in: src/_other-scraper/mika-ai.ts:12

The content property holds the actual text of the chat message. It is of type string and must contain the content of the message exchanged in the chat.

Example

const chatMessage: ChaiChatMessage = { role: "user", content: "Hello, how can I assist you today?" };

Diagram: Mika Scraper

Last updated on