MCPcopy Create free account
hub / github.com/experdot/pointer / AITask

Interface AITask

src/renderer/src/types/type.ts:357–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

355
356// AI任务信息
357export interface AITask {
358 id: string // 任务ID,通常是messageId
359 requestId: string // AI服务的请求ID,用于中止请求
360 type: AITaskType
361 status: AITaskStatus
362 title: string // 任务标题
363 description?: string // 任务描述
364
365 // 关联信息
366 chatId?: string // 关联的聊天ID
367 messageId?: string // 关联的消息ID
368 modelId?: string // 使用的模型ID
369
370 // 时间信息
371 startTime: number
372 endTime?: number
373
374 // 进度信息
375 progress?: {
376 current: number
377 total: number
378 message?: string
379 }
380
381 // 错误信息
382 error?: string
383
384 // 任务特定的数据
385 context?: {
386 // 普通聊天上下文
387 chat?: {
388 messageContent?: string
389 parentMessageId?: string
390 }
391 // 交叉分析单元格上下文
392 crosstab?: {
393 horizontalItem: string
394 verticalItem: string
395 metadata: any
396 }
397 // 对象生成上下文
398 object?: {
399 nodeId: string
400 prompt: string
401 }
402 // 重试上下文
403 retry?: {
404 originalMessageId: string
405 }
406 // 编辑重发上下文
407 editResend?: {
408 originalMessageId: string
409 newContent: string
410 }
411 // 模型切换上下文
412 modelChange?: {
413 originalMessageId: string
414 newModelId: string

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected