123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- // TVisitorAgent 访客详情
- // agentId (string, optional):
- import { TContentType, TMessageBody } from "./bot"
- // 访客的会话详情
- export type TVisitorChat = {
- agentId: string ,
- content: string // 对方消息内容 ,
- contentType: TContentType // 消息类型:text/plain; application/json; aiseek/audio_chunk; aiseek/thinking; aiseek/function_call; aiseek/multimodal; aiseek/qa; ,
- correctionAnswer: string // 纠错回答内容 ,
- correctionId :number // 纠错记录ID ,
- correctionLinks: string[] // 纠错链接 ,
- correctionPics: string[] // 纠错图片 ,
- correctionTime :string // 纠错时间 ,
- dislikeReason :string // 差评原因 ,
- isDislike: boolean // 差评状态 ,
- isLike: boolean // 点赞状态 ,
- isStreaming: boolean // 该消息是否还正处理流式返回中 ,
- msgId :number // 记录ID ,
- msgTime :string // 消息时间 ,
- msgUk :string // 消息唯一值,由前端生成的UUID ,
- role :string // 角色:system/user/assistant/function/tool ,
- visitorId: number// 会话用户对应的访客记录ID
- body?: TMessageBody
- }
- export type TVisitorMessage = {
- agentId: string,
- visitorId: string,
- content: string,
- dislikeReason: string,
- isDislike: false,
- isLike: false,
- isStreaming: false,
- msgId: number,
- msgTime: string,
- msgUk: string,
- originalAgentId: string,
- role: string
- }
- export type TVisitorAgent = {
- address?: string|null
- email?: string
- agentId: string, // 访客智能体ID -- 如果客户的所有智能体都无效时,则可能为 null ,
- agentStatus: string, // agentStatus (string, optional): 访客智能体状态 -- normal 正常/ deleted 已删除 ,
- avatarLogo?: string|null, // avatarUrl (string, optional): 访客头像地址 ,
- avatarUrl?: string|null, // avatarUrl (string, optional): 访客头像地址 ,
- chatRound: number, // chatRound (integer, optional): 会话轮数 ,
- dislikeCnt: number,// dislikeCnt (integer, optional): 差评数 ,
- isEnt: false, // isEnt (boolean, optional): 是否企业认证联系人 ,
- lastChatTime: string,// lastChatTime (string, optional): 最新的对话时间 ,
- myAgentId: string, // myAgentId (string, optional): 访问我的智能体ID ,
- myAgentName: string,// myAgentName (string, optional): 访问我的智能体名称 ,
- isNewEnt: boolean
- isDefault: boolean
- mobile?: string
- name: string, // name (string, optional): 访客名称 -- 最后一次访问的快照信息 ,
- entName?: string|null, // name (string, optional): 访客名称 -- 最后一次访问的快照信息 ,
- entId?: string|null, // name (string, optional): 访客名称 -- 最后一次访问的快照信息 ,
- position?: string|null,// position (string, optional): 访客职位 ,
- qrCodeUrl?: string|null,// position (string, optional): 访客职位 ,
- visitTimes: number,// visitTimes (integer, optional): 访问访问我的指定智能体次数 ,
- visitorId: number// visitorId (integer, optional): 访客ID
- }
- export type TSessionItem = {
- chatRoundCnt: number,
- msgTime: string,
- chatSecondsDesc: string
- chatSeconds: number
- sessionId: string
- visitTimes?: number
- }
|