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

Mika Scraper v1.1.2


Mika Scraper / InternalChaiChatRequest

Interface: InternalChaiChatRequest

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

Properties

messages

messages: object[]

An array of message objects that represent interactions in the chat.

role

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

The role of the entity sending the message. This can be one of the following:

  • "user": Represents the end user of the application.
  • "system": Represents system-generated messages, often for context or guidance.
  • "assistant": Represents messages coming from the AI assistant.

content

content: string

The textual content of the message being sent. This string may contain any text that the sender wishes to convey.

Example

const chatRequest: InternalChaiChatRequest = { messages: [ { role: "user", content: "Hello, how can I use the Mika Scraper?" }, { role: "assistant", content: "You can use the Mika Scraper to efficiently scrape data from specified sources." } ] };

Diagram: Mika Scraper

Last updated on