27 lines
No EOL
549 B
TypeScript
27 lines
No EOL
549 B
TypeScript
import { FullAuditedEntityDto } from '../abp'
|
|
|
|
export interface AiBotDto extends FullAuditedEntityDto<string> {
|
|
name: string
|
|
apiUrl?: string
|
|
description?: string
|
|
}
|
|
|
|
export type ChatType = 'chat' | 'query' | 'analyze'
|
|
|
|
export interface BaseContent {
|
|
type: ChatType
|
|
question: string
|
|
sql: string | null
|
|
answer: string | any[]
|
|
chart?: string
|
|
error?: string
|
|
}
|
|
|
|
export type MessageContent = string | BaseContent
|
|
|
|
export interface Message {
|
|
role: 'user' | 'assistant'
|
|
content: MessageContent
|
|
/** ISO string */
|
|
createdAt?: string
|
|
} |