sozsoft-platform/ui/src/proxy/ai/models.ts
2026-06-23 15:55:47 +03:00

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
}