sozsoft-platform/ui/src/proxy/ai/models.ts

24 lines
482 B
TypeScript
Raw Normal View History

2026-02-24 20:44:16 +00:00
import { FullAuditedEntityDto } from '../abp'
export interface AiDto extends FullAuditedEntityDto<string> {
name: string
2026-03-21 16:59:22 +00:00
apiUrl?: string
2026-02-24 20:44:16 +00:00
}
2026-03-21 18:10:40 +00:00
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
}