2025-03-16 16:38:15 +01:00

12 lines
272 B
TypeScript

export class Message {
content: string
role: 'user' | 'assistant' = 'user'
threadId?: string
constructor(content: string, role: 'user' | 'assistant' = 'user', threadId?: string) {
this.content = content
this.role = role
this.threadId = threadId
}
}