Mika Scraper / Message
Interface: Message
Defined in: src/_other-scraper/chatup-ai.ts:9
The Message
interface represents a single message exchanged within a chat session.
Properties
role
role:
"user"
|"assistant"
Defined in: src/_other-scraper/chatup-ai.ts:11
Specifies the sender of the message. It can either be 'user'
or 'assistant'
, indicating who generated the content.
content
content:
string
Defined in: src/_other-scraper/chatup-ai.ts:13
Holds the textual content of the message being exchanged in the chat session.
timestamp?
optional
timestamp:number
Defined in: src/_other-scraper/chatup-ai.ts:15
Optional property that records the timestamp of the message in milliseconds since the Unix epoch. This is useful for tracking the timing of messages within the chat.
Example
const message: Message = {
role: 'user',
content: 'Hello, how can I help you today?',
timestamp: Date.now(),
};
Last updated on