ChatHistoryMessage interface

代表聊天紀錄中的一則訊息。

屬性

content

聊天訊息的內容。

id

聊天訊息的唯一識別碼。

role

訊息發送者的角色(例如「使用者」、「助理」、「系統」)。

timestamp

訊息發送的時間戳記。

屬性詳細資料

content

聊天訊息的內容。

content: string

屬性值

string

id

聊天訊息的唯一識別碼。

id: string

屬性值

string

role

訊息發送者的角色(例如「使用者」、「助理」、「系統」)。

role: string

屬性值

string

timestamp

訊息發送的時間戳記。

timestamp: Date

屬性值

Date