[全量] 初始化项目代码、配置、文档及Agent协同harness

This commit is contained in:
2026-04-02 11:36:05 +08:00
parent 0553309cdf
commit 87e571d9ec
1133 changed files with 221948 additions and 0 deletions

121
chat_web_front/src/typings/chat.d.ts vendored Normal file
View File

@@ -0,0 +1,121 @@
declare namespace Chat {
// 聊天列表信息
interface History {
title: string
chatNumber: string
createTime: string
ischeck:boolean,
id:number,
userId:any
}
// 模型信息
interface Model {
id: number
name: string
model: string
icon: string
}
// 当前会话信息
interface ChatState {
active: string
model: string
usingContext: boolean;
chat: { chatNumber: string; data: Chat[] }[]
type: number
}
// 聊天内容
interface Message {
messageId?: string | null,
parentMessageId?: string | null,
createTime: string
content: string
contentType: string
model?: string
role?: string
size?: string
}
// 页面聊天内容
interface Chat {
conversationId?: string | null,
parentMessageId?: string | null,
dateTime?: string
contentType?: string
text?: string
images?: Array
model?: string
inversion?: boolean
error?: boolean
loading?: boolean
size?: string
}
// 页面聊天内容
interface Expand {
conversationId?: string | null,
parentMessageId?: string | null,
dateTime: string
contentType: string
text: string
images?: Array
model?: string
inversion?: boolean
error?: boolean
loading?: boolean
size?: string
}
// 新建会话
interface ChatRequest {
prompt?: string
type?: number
model?: string
modelVersion?: string
}
// 普通会话请求流式converstionId
interface MessageRequest {
chatNumber?: string
prompt?: string
model?: string
modelVersion?: string
operator?: string,
api?: boolean
}
// 文件会话请求流式converstionId
interface FileMessageRequest {
chatNumber?: string
knowledgeId: string
query?: string
conversationId: string
}
// 返回
interface ConversationResponse {
id: string
conversationId: string
parentMessageId: string
role: string
content: string
contentType: string
detail: {
choices: { finish_reason: string; index: number; logprobs: any; text: string }[]
created: number
id: string
model: string
object: string
usage: { completion_tokens: number; prompt_tokens: number; total_tokens: number }
}
knowledgeId?: string
}
// 智慧场景的收藏、取消收藏
interface PromptColl {
promptName: string
}
}