{ "swagger": "2.0", "info": { "title": "AI Agent Productivity Platform - Callback", "contact": {}, "version": "v0.0.1" }, "basePath": "/callback/v1", "paths": { "/agent/{assistantId}/chat": { "post": { "description": "智能体代理问答,固定流式返回,提取eventType=0的数据聚合返回", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "callback" ], "summary": "智能体代理问答", "parameters": [ { "type": "string", "description": "assistantId", "name": "assistantId", "in": "path", "required": true }, { "description": "智能体代理问答请求参数", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AgentChatProxyReq" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/response.Response" } } } } }, "/api/deploy/info": { "get": { "description": "获取Maas平台部署信息(模型扩展调用)", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "callback" ], "summary": "获取Maas平台部署信息(模型扩展调用)", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/response.Response" } } } } }, "/api/doc_status_init": { "get": { "description": "将正在解析的文档设置为解析失败", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "callback" ], "summary": "将正在解析的文档设置为解析失败", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/response.Response" } } } } }, "/api/docstatus": { "post": { "description": "更新文档状态(模型扩展调用)", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "callback" ], "summary": "更新文档状态(模型扩展调用)", "parameters": [ { "description": "更新文档状态请求参数", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.CallbackUpdateDocStatusReq" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/response.Response" } } } } }, "/api/key/user": { "get": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "callback" ], "summary": "通过apikey获取用户信息(内部接口)", "parameters": [ { "type": "string", "description": "api key", "name": "apikey", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.UserInfoByApiKey" } } } ] } } } } }, "/api/knowledge/status": { "post": { "description": "更新知识库状态", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "callback" ], "summary": "更新知识库状态", "parameters": [ { "description": "更新知识库状态请求参数", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.CallbackUpdateDocStatusReq" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/response.Response" } } } } }, "/app/record": { "post": { "description": "应用使用记录", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "callback" ], "summary": "应用使用记录", "parameters": [ { "description": "应用使用记录请求参数", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AppRecordRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/response.Response" } } } } }, "/callback/mcp": { "get": { "description": "获取自定义MCP详情", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "mcp" ], "summary": "获取自定义MCP详情", "parameters": [ { "type": "string", "description": "mcpId", "name": "mcpId", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.MCPDetail" } } } ] } } } } }, "/callback/mcp/server": { "get": { "description": "获取MCP Server详情", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "mcp.server" ], "summary": "获取MCP Server详情", "parameters": [ { "type": "string", "description": "mcpServerId", "name": "mcpServerId", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.MCPServerDetail" } } } ] } } } } }, "/callback/v1/channel/send-message": { "post": { "description": "内部服务给指定通道发消息(无鉴权,callback 接口)。channelId 必填;userId 可选,缺省由 channel-service 自动取该通道最近互动过的 IM 用户作收件人。msgType 支持 text(默认)/markdown/file;file 类型需 fileUrl+fileName,channel-service 下载字节后投递。成功无返回体,失败透传 gRPC err_code。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "callback" ], "summary": "内部服务发消息", "parameters": [ { "description": "内部服务发消息请求参数", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.SendMessageRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/response.Response" } } } } }, "/callback/v1/skill/acquired/list": { "post": { "description": "获取我添加skill详情列表", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "skill" ], "summary": "获取我添加skill详情列表", "parameters": [ { "description": "请求参数", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.SearchAcquiredSkillListReq" } } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.CallbackAcquiredSkillDetailListResp" } } } ] } } } } }, "/callback/v1/skill/builtin/list": { "post": { "description": "获取内置skill详情列表", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "skill" ], "summary": "获取内置skill详情列表", "parameters": [ { "description": "请求参数", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.SearchBuiltinSkillListReq" } } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.SkillDetailListResp" } } } ] } } } } }, "/callback/v1/skill/custom/list": { "post": { "description": "获取自定义skill详情列表", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "skill" ], "summary": "获取自定义skill详情列表", "parameters": [ { "description": "请求参数", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.SearchCustomSkillListReq" } } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.CustomSkillDetailListResp" } } } ] } } } } }, "/callback/v1/skill/detail": { "get": { "description": "根据skillId和skillType获取技能详情", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "skill" ], "summary": "获取技能详情", "parameters": [ { "type": "string", "description": "skillId", "name": "skillId", "in": "query", "required": true }, { "type": "string", "description": "skillType (builtin/custom)", "name": "skillType", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.CallbackSkillDetail" } } } ] } } } } }, "/chatflow/list": { "get": { "description": "根据userId和spaceId获取Chatflow", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "callback" ], "summary": "根据userId和spaceId获取Chatflow", "parameters": [ { "type": "string", "description": "获取工作流参数userId", "name": "userId", "in": "query", "required": true }, { "type": "string", "description": "获取工作流参数orgId", "name": "orgId", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/response.Response" } } } } }, "/digital-employee/publish/sync": { "post": { "description": "外部系统(ontology/vega)发布数字员工时回调本接口,登记 app 表 appType=digitalemployee 行(upsert,幂等)。万悟自拟格式:employeeId/publishType/userId/orgId。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "callback" ], "summary": "数字员工发布状态同步", "parameters": [ { "description": "发布状态同步请求", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.DigitalEmployeePublishSyncReq" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/response.Response" } } } }, "delete": { "description": "外部系统(ontology/vega)删除数字员工时回调本接口,删除 app 表 appType=digitalemployee 行(以 employeeId 为准,幂等,目标不存在也返回成功)。万悟自拟格式:employeeId/userId。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "callback" ], "summary": "数字员工删除/下架同步", "parameters": [ { "description": "删除/下架同步请求", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.DeleteDigitalEmployeePublishSyncReq" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/response.Response" } } } } }, "/file/unarchive": { "post": { "description": "解压MinIO中的压缩包,将文件上传到MinIO并返回目录结构", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "callback" ], "summary": "解压压缩包", "parameters": [ { "description": "解压压缩包请求参数", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UnarchiveFileReq" } } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.UnarchiveFileResp" } } } ] } } } } }, "/file/upload/base64": { "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "callback" ], "summary": "通过base64上传文件", "parameters": [ { "description": "通过base64格式上传文件参数", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UploadFileByBase64Req" } } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.UploadFileByBase64Resp" } } } ] } } } } }, "/file/url/base64": { "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "callback" ], "summary": "文件Url转换为base64", "parameters": [ { "description": "文件Url转换base64请求参数", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.FileUrlConvertBase64Req" } } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "data": { "type": "string" } } } ] } } } } }, "/model/{modelId}": { "get": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "callback" ], "summary": "根据ModelId获取模型", "parameters": [ { "type": "string", "description": "模型ID", "name": "modelId", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.ModelInfo" } } } ] } } } } }, "/model/{modelId}/asr": { "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "callback" ], "summary": "Model SyncAsr", "parameters": [ { "type": "string", "description": "模型ID", "name": "modelId", "in": "path", "required": true }, { "description": "请求参数", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/mp_common.SyncAsrReq" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/mp_common.SyncAsrResp" } } } } }, "/model/{modelId}/chat/completions": { "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "callback" ], "summary": "Model Chat Completions", "parameters": [ { "type": "string", "description": "模型ID", "name": "modelId", "in": "path", "required": true }, { "description": "请求参数", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/mp_common.LLMReq" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/mp_common.LLMResp" } } } } }, "/model/{modelId}/embeddings": { "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "callback" ], "summary": "Model Embeddings", "parameters": [ { "type": "string", "description": "模型ID", "name": "modelId", "in": "path", "required": true }, { "description": "请求参数", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/mp_common.EmbeddingReq" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/mp_common.EmbeddingResp" } } } } }, "/model/{modelId}/gui": { "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "callback" ], "summary": "Model Gui", "parameters": [ { "type": "string", "description": "模型ID", "name": "modelId", "in": "path", "required": true }, { "description": "请求参数", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/mp_common.GuiReq" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/mp_common.GuiResp" } } } } }, "/model/{modelId}/multimodal-embeddings": { "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "callback" ], "summary": "Model MultiModal-Embeddings", "parameters": [ { "type": "string", "description": "模型ID", "name": "modelId", "in": "path", "required": true }, { "description": "请求参数", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/mp_common.MultiModalEmbeddingReq" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/mp_common.MultiModalEmbeddingResp" } } } } }, "/model/{modelId}/multimodal-rerank": { "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "callback" ], "summary": "Model MultiModal-Rerank", "parameters": [ { "type": "string", "description": "模型ID", "name": "modelId", "in": "path", "required": true }, { "description": "请求参数", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/mp_common.MultiModalRerankReq" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/mp_common.MultiModalRerankResp" } } } } }, "/model/{modelId}/ocr": { "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "callback" ], "summary": "Model Ocr", "parameters": [ { "type": "string", "description": "模型ID", "name": "modelId", "in": "path", "required": true }, { "description": "请求参数", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/mp_common.OcrReq" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/mp_common.OcrResp" } } } } }, "/model/{modelId}/pdf-parser": { "post": { "consumes": [ "multipart/form-data" ], "produces": [ "application/json" ], "tags": [ "callback" ], "summary": "Model PdfParser", "parameters": [ { "type": "string", "description": "模型ID", "name": "modelId", "in": "path", "required": true }, { "type": "file", "description": "文件", "name": "file", "in": "formData", "required": true }, { "type": "string", "description": "文件名", "name": "file_name", "in": "formData", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/mp_common.PdfParserResp" } } } } }, "/model/{modelId}/rerank": { "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "callback" ], "summary": "Model Rerank", "parameters": [ { "type": "string", "description": "模型ID", "name": "modelId", "in": "path", "required": true }, { "description": "请求参数", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/mp_common.TextRerankReq" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/mp_common.RerankResp" } } } } }, "/model/{modelId}/trace/{traceId}/span/{spanId}/chat/completions": { "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "callback" ], "summary": "Model Chat Completions with Trace", "parameters": [ { "type": "string", "description": "模型ID", "name": "modelId", "in": "path", "required": true }, { "type": "string", "description": "Trace ID", "name": "traceId", "in": "path", "required": true }, { "type": "string", "description": "Span ID", "name": "spanId", "in": "path", "required": true }, { "description": "请求参数", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/mp_common.LLMReq" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/mp_common.LLMResp" } } } } }, "/rag/knowledge/stream/search": { "post": { "description": "知识库流式问答", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "callback" ], "summary": "知识库流式问答", "parameters": [ { "description": "知识库流式问答请求参数", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.RagKnowledgeChatReq" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/response.Response" } } } } }, "/rag/search-knowledge-base": { "post": { "description": "查询知识库列表(命中测试)", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "callback" ], "summary": "查询知识库列表(命中测试)", "parameters": [ { "description": "查询知识库列表请求参数", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.RagSearchKnowledgeBaseReq" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/response.Response" } } } } }, "/rag/search-qa-base": { "post": { "description": "查询问答列表(命中测试)", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "callback" ], "summary": "查询问答列表(命中测试)", "parameters": [ { "description": "查询知识库列表请求参数", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.RagSearchQABaseReq" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/response.Response" } } } } }, "/user/list": { "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "callback" ], "summary": "根据userIds获取用户信息", "parameters": [ { "description": "根据userIds获取用户信息参数", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.GetUserListByUserIdsReq" } } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "data": { "allOf": [ { "$ref": "#/definitions/response.ListResult" }, { "type": "object", "properties": { "List": { "type": "array", "items": { "$ref": "#/definitions/response.IDNameWithAvatar" } } } } ] } } } ] } } } } }, "/wga/rag/search-knowledge-base": { "post": { "description": "WGA专用知识库检索接口", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "callback" ], "summary": "WGA知识库检索", "parameters": [ { "type": "string", "description": "用户ID", "name": "X-uid", "in": "header", "required": true }, { "description": "WGA知识库检索请求参数", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.WgaRagSearchKnowledgeBaseReq" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/response.Response" } } } } }, "/wga/sandbox/cleanup": { "post": { "description": "清理沙箱资源", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "wga-sandbox" ], "summary": "WGA沙箱清理", "parameters": [ { "description": "请求参数", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.WgaSandboxCleanupReq" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/response.Response" } } } } }, "/wga/sandbox/run": { "post": { "description": "在沙箱容器中执行智能体任务,SSE流式返回结果", "consumes": [ "application/json" ], "produces": [ "text/event-stream" ], "tags": [ "wga-sandbox" ], "summary": "WGA沙箱运行", "parameters": [ { "description": "请求参数", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.WgaSandboxRunReq" } } ], "responses": { "200": { "description": "SSE流式返回", "schema": { "type": "string" } } } } }, "/workflow/list": { "get": { "description": "根据userId和spaceId获取Workflow", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "callback" ], "summary": "根据userId和spaceId获取Workflow", "parameters": [ { "type": "string", "description": "获取工作流参数userId", "name": "userId", "in": "query", "required": true }, { "type": "string", "description": "获取工作流参数orgId", "name": "orgId", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/response.Response" } } } } }, "/workflow/tool/custom": { "get": { "description": "获取自定义工具详情", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "callback" ], "summary": "获取自定义工具详情", "parameters": [ { "type": "string", "description": "customToolId", "name": "customToolId", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.CustomToolDetail" } } } ] } } } } }, "/workflow/tool/square": { "get": { "description": "获取内置工具详情", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "callback" ], "summary": "获取内置工具详情", "parameters": [ { "type": "string", "description": "toolSquareId", "name": "toolSquareId", "in": "query", "required": true }, { "type": "string", "description": "用户ID", "name": "userID", "in": "query", "required": true }, { "type": "string", "description": "组织ID", "name": "orgID", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.ToolSquareDetail" } } } ] } } } } } }, "definitions": { "mp.AppModelParams": { "type": "object", "properties": { "providerDeepSeek": { "$ref": "#/definitions/mp.AppModelParamsDeepSeek" }, "providerHuoshan": { "$ref": "#/definitions/mp.AppModelParamsHuoShan" }, "providerInfini": { "$ref": "#/definitions/mp.AppModelParamsInfini" }, "providerOllama": { "$ref": "#/definitions/mp.AppModelParamsOllama" }, "providerOpenAICompatible": { "description": "OpenAI-API-compatible模型配置", "allOf": [ { "$ref": "#/definitions/mp.AppModelParamsOpenAICompatible" } ] }, "providerQianFan": { "$ref": "#/definitions/mp.AppModelParamsQianFan" }, "providerQwen": { "$ref": "#/definitions/mp.AppModelParamsQwen" }, "providerTencent": { "$ref": "#/definitions/mp.AppModelParamsTencent" }, "providerYuanjing": { "description": "YuanJing模型配置", "allOf": [ { "$ref": "#/definitions/mp.AppModelParamsYuanjing" } ] } } }, "mp.AppModelParamsDeepSeek": { "type": "object", "properties": { "llm": { "description": "大语言模型配置", "allOf": [ { "$ref": "#/definitions/mp_common.LLMParams" } ] } } }, "mp.AppModelParamsHuoShan": { "type": "object", "properties": { "llm": { "description": "大语言模型配置", "allOf": [ { "$ref": "#/definitions/mp_common.LLMParams" } ] } } }, "mp.AppModelParamsInfini": { "type": "object", "properties": { "llm": { "description": "大语言模型配置", "allOf": [ { "$ref": "#/definitions/mp_common.LLMParams" } ] } } }, "mp.AppModelParamsOllama": { "type": "object", "properties": { "llm": { "description": "大语言模型配置", "allOf": [ { "$ref": "#/definitions/mp_common.LLMParams" } ] } } }, "mp.AppModelParamsOpenAICompatible": { "type": "object", "properties": { "llm": { "description": "大语言模型配置", "allOf": [ { "$ref": "#/definitions/mp_common.LLMParams" } ] } } }, "mp.AppModelParamsQianFan": { "type": "object", "properties": { "llm": { "description": "大语言模型配置", "allOf": [ { "$ref": "#/definitions/mp_common.LLMParams" } ] } } }, "mp.AppModelParamsQwen": { "type": "object", "properties": { "llm": { "description": "大语言模型配置", "allOf": [ { "$ref": "#/definitions/mp_common.LLMParams" } ] } } }, "mp.AppModelParamsTencent": { "type": "object", "properties": { "llm": { "description": "大语言模型配置", "allOf": [ { "$ref": "#/definitions/mp_common.LLMParams" } ] } } }, "mp.AppModelParamsYuanjing": { "type": "object", "properties": { "llm": { "description": "大语言模型配置", "allOf": [ { "$ref": "#/definitions/mp_common.LLMParams" } ] } } }, "mp.ProviderModelByDeepSeek": { "type": "object", "properties": { "llm": { "$ref": "#/definitions/mp_deepseek.LLM" } } }, "mp.ProviderModelByHuoShan": { "type": "object", "properties": { "embedding": { "$ref": "#/definitions/mp_huoshan.Embedding" }, "llm": { "$ref": "#/definitions/mp_huoshan.LLM" }, "multiModalEmbedding": { "$ref": "#/definitions/mp_huoshan.MultiModalEmbedding" } } }, "mp.ProviderModelByInfini": { "type": "object", "properties": { "embedding": { "$ref": "#/definitions/mp_infini.Embedding" }, "llm": { "$ref": "#/definitions/mp_infini.LLM" }, "rerank": { "$ref": "#/definitions/mp_infini.Rerank" } } }, "mp.ProviderModelByOllama": { "type": "object", "properties": { "embedding": { "$ref": "#/definitions/mp_ollama.Embedding" }, "llm": { "$ref": "#/definitions/mp_ollama.LLM" } } }, "mp.ProviderModelByOpenAICompatible": { "type": "object", "properties": { "asr": { "$ref": "#/definitions/mp_openai_compatible.SyncAsr" }, "embedding": { "$ref": "#/definitions/mp_openai_compatible.Embedding" }, "llm": { "$ref": "#/definitions/mp_openai_compatible.LLM" }, "rerank": { "$ref": "#/definitions/mp_openai_compatible.Rerank" } } }, "mp.ProviderModelByQianFan": { "type": "object", "properties": { "embedding": { "$ref": "#/definitions/mp_qianfan.Embedding" }, "llm": { "$ref": "#/definitions/mp_qianfan.LLM" }, "rerank": { "$ref": "#/definitions/mp_qianfan.Rerank" } } }, "mp.ProviderModelByQwen": { "type": "object", "properties": { "embedding": { "$ref": "#/definitions/mp_qwen.Embedding" }, "llm": { "$ref": "#/definitions/mp_qwen.LLM" }, "multiModalEmbedding": { "$ref": "#/definitions/mp_qwen.MultiModalEmbedding" }, "multiModalRerank": { "$ref": "#/definitions/mp_qwen.MultiModalRerank" }, "rerank": { "$ref": "#/definitions/mp_qwen.Rerank" } } }, "mp.ProviderModelByTencent": { "type": "object", "properties": { "embedding": { "$ref": "#/definitions/mp_tencent.Embedding" }, "llm": { "$ref": "#/definitions/mp_tencent.LLM" } } }, "mp.ProviderModelByYuanjing": { "type": "object", "properties": { "embedding": { "$ref": "#/definitions/mp_yuanjing.Embedding" }, "gui": { "$ref": "#/definitions/mp_yuanjing.Gui" }, "llm": { "$ref": "#/definitions/mp_yuanjing.LLM" }, "ocr": { "$ref": "#/definitions/mp_yuanjing.Ocr" }, "pdf-parser": { "$ref": "#/definitions/mp_yuanjing.PdfParser" }, "rerank": { "$ref": "#/definitions/mp_yuanjing.Rerank" } } }, "mp.ProviderModelByZhipu": { "type": "object", "properties": { "embedding": { "$ref": "#/definitions/mp_zhipu.Embedding" }, "llm": { "$ref": "#/definitions/mp_zhipu.LLM" }, "rerank": { "$ref": "#/definitions/mp_zhipu.Rerank" } } }, "mp.ProviderModelConfig": { "type": "object", "properties": { "providerDeepSeek": { "$ref": "#/definitions/mp.ProviderModelByDeepSeek" }, "providerHuoShan": { "$ref": "#/definitions/mp.ProviderModelByHuoShan" }, "providerInfini": { "$ref": "#/definitions/mp.ProviderModelByInfini" }, "providerOllama": { "$ref": "#/definitions/mp.ProviderModelByOllama" }, "providerOpenAICompatible": { "$ref": "#/definitions/mp.ProviderModelByOpenAICompatible" }, "providerQianFan": { "$ref": "#/definitions/mp.ProviderModelByQianFan" }, "providerQwen": { "$ref": "#/definitions/mp.ProviderModelByQwen" }, "providerTencent": { "$ref": "#/definitions/mp.ProviderModelByTencent" }, "providerYuanJing": { "$ref": "#/definitions/mp.ProviderModelByYuanjing" }, "providerZhipu": { "$ref": "#/definitions/mp.ProviderModelByZhipu" } } }, "mp_common.EmbeddingData": { "type": "object", "required": [ "embedding" ], "properties": { "embedding": {}, "index": { "type": "integer" }, "object": { "type": "string" }, "type": { "type": "string" } } }, "mp_common.EmbeddingReq": { "type": "object", "required": [ "input", "model" ], "properties": { "encoding_format": { "type": "string" }, "input": { "type": "array", "items": { "type": "string" } }, "model": { "type": "string" }, "user": { "description": "用户标识(兼容千帆)", "type": "string" } } }, "mp_common.EmbeddingResp": { "type": "object", "required": [ "data", "model" ], "properties": { "created": { "type": "integer" }, "data": { "type": "array", "items": { "$ref": "#/definitions/mp_common.EmbeddingData" } }, "id": { "type": "string" }, "model": { "type": "string" }, "object": { "type": "string" }, "usage": { "$ref": "#/definitions/mp_common.Usage" } } }, "mp_common.ExtraBody": { "type": "object", "properties": { "api_option": { "description": "选择指定功能。 1)math:拍照答题;2)ocr:多模态OCR;3)general:通用场景。 默认会根据prompt进行意图判断", "type": "string" } } }, "mp_common.FunctionCall": { "type": "object", "properties": { "arguments": { "type": "string" }, "name": { "type": "string" } } }, "mp_common.GuiContent": { "type": "object", "required": [ "action", "description", "operation" ], "properties": { "action": { "type": "string" }, "box": { "type": "array", "items": { "type": "integer" } }, "description": { "type": "string" }, "operation": { "type": "string" }, "sensitivity": { "type": "string" }, "value": { "type": "string" } } }, "mp_common.GuiReq": { "type": "object", "required": [ "current_screenshot", "current_screenshot_height", "current_screenshot_width", "platform", "task" ], "properties": { "algo": { "description": "算法名称,默认gui_agent_v1", "type": "string" }, "current_screenshot": { "description": "当前屏幕截图,Base64编码的图像字符串", "type": "string" }, "current_screenshot_height": { "description": "当前屏幕截图的高度", "type": "integer" }, "current_screenshot_width": { "description": "当前屏幕截图的宽度", "type": "integer" }, "current_screenshot_xml": { "description": "屏幕布局导出的xml文件", "type": "string" }, "history": { "description": "当前任务的历史返回结果,历次返回结果中的content字段", "type": "array", "items": { "type": "string" } }, "platform": { "description": "平台信息,移动端填写Mobile, Windows端填写WIN,Mac端填写MAC", "type": "string" }, "task": { "description": "当前用户任务", "type": "string" } } }, "mp_common.GuiResp": { "type": "object", "required": [ "content", "message", "usage" ], "properties": { "code": { "type": "integer" }, "content": { "$ref": "#/definitions/mp_common.GuiContent" }, "message": { "type": "string" }, "usage": { "$ref": "#/definitions/mp_common.Usage" } } }, "mp_common.LLMParams": { "type": "object", "properties": { "frequencyPenalty": { "description": "频率惩罚", "type": "number" }, "frequencyPenaltyEnable": { "description": "频率惩罚(开关)", "type": "boolean" }, "maxTokens": { "description": "最大标记", "type": "integer" }, "maxTokensEnable": { "description": "最大标记(开关)", "type": "boolean" }, "presencePenalty": { "description": "存在惩罚", "type": "number" }, "presencePenaltyEnable": { "description": "存在惩罚(开关)", "type": "boolean" }, "temperature": { "description": "温度", "type": "number" }, "temperatureEnable": { "description": "温度(开关)", "type": "boolean" }, "thinkingEnable": { "description": "思考过程(开关)", "type": "boolean" }, "topP": { "description": "Top P", "type": "number" }, "topPEnable": { "description": "Top P(开关)", "type": "boolean" } } }, "mp_common.LLMReq": { "type": "object", "required": [ "messages", "model" ], "properties": { "chat_template_kwargs": { "description": "控制模型是否开启深度思考模式(元景)", "type": "object", "additionalProperties": true }, "do_sample": { "description": "Yuanjing", "type": "boolean" }, "enable_thinking": { "description": "控制模型是否开启深度思考模式。", "type": "boolean" }, "extra_body": { "description": "扩展参数", "allOf": [ { "$ref": "#/definitions/mp_common.ExtraBody" } ] }, "frequency_penalty": { "description": "频率惩罚系数", "type": "number" }, "logit_bias": { "description": "调整指定 token 在模型输出内容中出现的概率", "type": "object", "additionalProperties": { "type": "integer" } }, "logprobs": { "description": "是否返回输出 Token 的对数概率", "type": "boolean" }, "max_completion_tokens": { "description": "控制模型输出的最大长度[0,64k]", "type": "integer" }, "max_tokens": { "type": "integer" }, "messages": { "type": "array", "items": { "$ref": "#/definitions/mp_common.OpenAIReqMsg" } }, "min_p": { "type": "number" }, "model": { "description": "general", "type": "string" }, "n": { "type": "integer" }, "parallel_tool_calls": { "description": "是否开启并行工具调用", "type": "boolean" }, "presence_penalty": { "description": "控制模型生成文本时的内容重复度", "type": "number" }, "reasoning_effort": { "description": "控制模型的推理强度(Ds)Possible values: [high, max]", "type": "string" }, "repetition_penalty": { "description": "模型生成时连续序列中的重复度", "type": "number" }, "response_format": { "$ref": "#/definitions/mp_common.OpenAIResponseFormat" }, "seed": { "description": "种子", "type": "integer" }, "stop": { "type": "string" }, "stream": { "type": "boolean" }, "stream_options": { "description": "当启用流式输出时,可通过将本参数设置为{\"include_usage\": true},在输出的最后一行显示所使用的Token数。", "allOf": [ { "$ref": "#/definitions/mp_common.StreamOptions" } ] }, "temperature": { "type": "number" }, "thinking": { "description": "custom", "allOf": [ { "$ref": "#/definitions/mp_common.Thinking" } ] }, "thinking_budget": { "description": "思考过程的最大长度,只在enable_thinking为true时生效", "type": "integer" }, "tool_choice": { "description": "强制指定工具调用的策略" }, "tools": { "type": "array", "items": { "$ref": "#/definitions/mp_common.OpenAITool" } }, "top_k": { "type": "integer" }, "top_logprobs": { "description": "指定在每一步生成时,返回模型最大概率的候选 Token 个数", "type": "integer" }, "top_p": { "type": "number" }, "user": { "description": "用户标识(兼容千帆)", "type": "string" }, "web_search": { "description": "搜索增强", "allOf": [ { "$ref": "#/definitions/mp_common.WebSearch" } ] } } }, "mp_common.LLMResp": { "type": "object", "required": [ "choices", "model" ], "properties": { "choices": { "description": "生成结果列表", "type": "array", "items": { "$ref": "#/definitions/mp_common.OpenAIRespChoice" } }, "code": { "type": "integer" }, "created": { "description": "时间戳(秒)", "type": "integer" }, "id": { "description": "唯一标识", "type": "string" }, "img_id": { "description": "视觉模型返回图片id", "type": "string" }, "model": { "description": "使用的模型", "type": "string" }, "object": { "description": "固定为 \"chat.completion\"", "type": "string" }, "service_tier": { "description": "(火山)指定是否使用TPM保障包。生效对象为购买了保障包推理接入点", "type": "string" }, "system_fingerprint": { "type": "string" }, "usage": { "description": "token 使用统计", "allOf": [ { "$ref": "#/definitions/mp_common.OpenAIRespUsage" } ] } } }, "mp_common.MsgRole": { "type": "string", "enum": [ "system", "user", "assistant", "tool" ], "x-enum-varnames": [ "MsgRoleSystem", "MsgRoleUser", "MsgRoleAssistant", "MsgRoleFunction" ] }, "mp_common.MultiDocument": { "type": "object", "properties": { "image": { "type": "string" }, "text": { "type": "string" }, "video": { "type": "string" } } }, "mp_common.MultiInput": { "type": "object", "properties": { "audio": { "type": "string" }, "image": { "type": "string" }, "text": { "type": "string" }, "video": { "type": "string" } } }, "mp_common.MultiModalEmbeddingReq": { "type": "object", "required": [ "input", "model" ], "properties": { "dimensions": { "type": "integer" }, "encoding_format": { "type": "string" }, "input": { "type": "array", "items": { "$ref": "#/definitions/mp_common.MultiInput" } }, "model": { "type": "string" }, "parameters": {} } }, "mp_common.MultiModalEmbeddingResp": { "type": "object", "required": [ "data", "model" ], "properties": { "created": { "type": "integer" }, "data": { "type": "array", "items": { "$ref": "#/definitions/mp_common.EmbeddingData" } }, "id": { "type": "string" }, "model": { "type": "string" }, "object": { "type": "string" }, "usage": { "$ref": "#/definitions/mp_common.Usage" } } }, "mp_common.MultiModalRerankReq": { "type": "object", "required": [ "documents", "model", "query" ], "properties": { "documents": { "description": "需要重排序的内容列表", "type": "array", "items": { "$ref": "#/definitions/mp_common.MultiDocument" } }, "fps": { "description": "视频帧率(适配qwen rerank)", "type": "number" }, "instruction": { "description": "指令内容(适配元景qwen_rerank)", "type": "string" }, "model": { "type": "string" }, "query": { "description": "重排序的查询内容" }, "return_documents": { "description": "是否返回排序前的文档。默认为true", "type": "boolean" }, "top_n": { "description": "返回排序后的top_n个文档。默认返回全部文档。", "type": "integer" }, "user": { "description": "用户标识(兼容千帆)", "type": "string" } } }, "mp_common.MultiModalRerankResp": { "type": "object", "required": [ "results" ], "properties": { "model": { "type": "string" }, "object": { "type": "string" }, "request_id": { "type": "string" }, "results": { "type": "array", "items": { "$ref": "#/definitions/mp_common.Result" } }, "usage": { "$ref": "#/definitions/mp_common.Usage" } } }, "mp_common.OcrFileInfo": { "type": "object", "properties": { "fileName": { "type": "string" }, "fileType": { "type": "string" }, "totalPages": { "type": "integer" } } }, "mp_common.OcrMeta": { "type": "object", "properties": { "requestId": { "type": "string" }, "timestamp": { "type": "string" }, "traceId": { "type": "string" } } }, "mp_common.OcrReq": { "type": "object", "required": [ "fileName" ], "properties": { "data": { "type": "string" }, "extract_image": { "type": "integer" }, "extract_image_content": { "type": "integer" }, "fileName": { "type": "string" }, "fileType": { "type": "integer" }, "layoutNms": { "description": "版面 NMS 去重", "type": "boolean" }, "maxPixels": { "description": "最大像素", "type": "integer" }, "minPixels": { "description": "最小像素", "type": "integer" }, "model": { "type": "string" }, "repetitionPenalty": { "description": "重复惩罚", "type": "number" }, "temperature": { "description": "采样温度", "type": "number" }, "topP": { "description": "top-p 采样", "type": "number" }, "url": { "type": "string" }, "useChartRecognition": { "description": "以下为千帆 paddleocr 原生模型推理参数(仅 qianfan 使用)", "type": "boolean" }, "useDocUnwarping": { "description": "文档矫正", "type": "boolean" }, "useLayoutDetection": { "description": "版面检测", "type": "boolean" }, "visualize": { "description": "输出可视化结果", "type": "boolean" } } }, "mp_common.OcrResp": { "type": "object", "properties": { "code": { "type": "integer" }, "data": { "$ref": "#/definitions/mp_common.OcrRespData" }, "message": { "type": "string" }, "meta": { "$ref": "#/definitions/mp_common.OcrMeta" }, "prefixImageUrl": { "type": "string" }, "version": { "type": "string" } } }, "mp_common.OcrRespData": { "type": "object", "properties": { "fileInfo": { "$ref": "#/definitions/mp_common.OcrFileInfo" }, "fullContent": { "type": "string" }, "ocrResults": { "type": "array", "items": { "$ref": "#/definitions/mp_common.OcrResult" } } } }, "mp_common.OcrResult": { "type": "object", "properties": { "content": { "type": "string" }, "pageNumber": { "type": "integer" }, "type": { "type": "string" } } }, "mp_common.OpenAIFunction": { "type": "object", "required": [ "name" ], "properties": { "description": { "type": "string" }, "name": { "type": "string" }, "parameters": {} } }, "mp_common.OpenAIMsg": { "type": "object", "properties": { "content": { "type": "string" }, "function_call": { "$ref": "#/definitions/mp_common.FunctionCall" }, "name": { "type": "string" }, "reasoning": { "type": "string" }, "reasoning_content": { "type": "string" }, "role": { "description": "\"system\" | \"user\" | \"assistant\" | \"function(已弃用)\"", "allOf": [ { "$ref": "#/definitions/mp_common.MsgRole" } ] }, "tool_call_id": { "type": "string" }, "tool_calls": { "type": "array", "items": { "$ref": "#/definitions/mp_common.ToolCall" } } } }, "mp_common.OpenAIReqMsg": { "type": "object", "properties": { "content": {}, "function_call": { "$ref": "#/definitions/mp_common.FunctionCall" }, "name": { "type": "string" }, "reasoning": { "type": "string" }, "reasoning_content": { "type": "string" }, "role": { "description": "\"system\" | \"user\" | \"assistant\" | \"function(已弃用)\"", "allOf": [ { "$ref": "#/definitions/mp_common.MsgRole" } ] }, "tool_call_id": { "type": "string" }, "tool_calls": { "type": "array", "items": { "$ref": "#/definitions/mp_common.ToolCall" } } } }, "mp_common.OpenAIRespChoice": { "type": "object", "properties": { "delta": { "description": "流式生成的消息", "allOf": [ { "$ref": "#/definitions/mp_common.OpenAIMsg" } ] }, "finish_reason": { "description": "停止原因", "type": "string" }, "index": { "description": "选项索引", "type": "integer" }, "logprobs": {}, "message": { "description": "非流式生成的消息", "allOf": [ { "$ref": "#/definitions/mp_common.OpenAIMsg" } ] } } }, "mp_common.OpenAIRespUsage": { "type": "object", "properties": { "completion_tokens": { "description": "输出 token 数", "type": "integer" }, "prompt_tokens": { "description": "输入 token 数", "type": "integer" }, "total_tokens": { "description": "总 token 数", "type": "integer" } } }, "mp_common.OpenAIResponseFormat": { "type": "object", "properties": { "type": { "description": "\"text\" | \"json\"", "type": "string" } } }, "mp_common.OpenAITool": { "type": "object", "required": [ "function", "type" ], "properties": { "function": { "$ref": "#/definitions/mp_common.OpenAIFunction" }, "type": { "$ref": "#/definitions/mp_common.ToolType" } } }, "mp_common.PdfParserResp": { "type": "object", "required": [ "code", "content", "message" ], "properties": { "code": { "type": "string" }, "content": { "type": "string" }, "message": { "type": "string" }, "prefix_image_url": { "type": "string" }, "status": { "type": "string" }, "trace_id": { "type": "string" }, "version": { "type": "string" } } }, "mp_common.RerankResp": { "type": "object", "required": [ "results" ], "properties": { "model": { "type": "string" }, "object": { "type": "string" }, "request_id": { "type": "string" }, "results": { "type": "array", "items": { "$ref": "#/definitions/mp_common.Result" } }, "usage": { "$ref": "#/definitions/mp_common.Usage" } } }, "mp_common.Result": { "type": "object", "required": [ "relevance_score" ], "properties": { "document": {}, "index": { "type": "integer" }, "relevance_score": { "type": "number" } } }, "mp_common.SegmentedContent": { "type": "object", "properties": { "end": { "type": "string" }, "speaker": { "type": "string" }, "start": { "type": "string" }, "text": { "type": "string" } } }, "mp_common.StreamOptions": { "type": "object", "properties": { "chunk_include_usage": { "type": "boolean" }, "include_usage": { "type": "boolean" } } }, "mp_common.SyncAsrAudio": { "type": "object", "properties": { "data": { "type": "string" }, "fileName": { "type": "string" } } }, "mp_common.SyncAsrReq": { "type": "object", "required": [ "messages", "model" ], "properties": { "extra": { "type": "object", "additionalProperties": true }, "messages": { "type": "array", "items": { "$ref": "#/definitions/mp_common.SyncAsrReqMsg" } }, "model": { "type": "string" } } }, "mp_common.SyncAsrReqC": { "type": "object", "required": [ "type" ], "properties": { "audio": { "$ref": "#/definitions/mp_common.SyncAsrAudio" }, "text": { "type": "string" }, "type": { "type": "string" } } }, "mp_common.SyncAsrReqMsg": { "type": "object", "required": [ "content", "role" ], "properties": { "content": { "type": "array", "items": { "$ref": "#/definitions/mp_common.SyncAsrReqC" } }, "role": { "type": "string" } } }, "mp_common.SyncAsrReqMsgRespChoice": { "type": "object", "properties": { "finish_reason": { "type": "string" }, "message": { "$ref": "#/definitions/mp_common.SyncAsrRespMsg" } } }, "mp_common.SyncAsrResp": { "type": "object", "properties": { "choices": { "type": "array", "items": { "$ref": "#/definitions/mp_common.SyncAsrReqMsgRespChoice" } }, "code": { "type": "integer" }, "seconds": { "type": "integer" } } }, "mp_common.SyncAsrRespMsg": { "type": "object", "properties": { "content": { "type": "array", "items": { "$ref": "#/definitions/mp_common.SyncAsrRespMsgC" } }, "extra": { "type": "object", "additionalProperties": true }, "role": { "$ref": "#/definitions/mp_common.MsgRole" } } }, "mp_common.SyncAsrRespMsgC": { "type": "object", "properties": { "segmented_content": { "type": "array", "items": { "$ref": "#/definitions/mp_common.SegmentedContent" } }, "text": { "type": "string" } } }, "mp_common.Tag": { "type": "object", "properties": { "text": { "type": "string" } } }, "mp_common.TextRerankReq": { "type": "object", "required": [ "documents", "model", "query" ], "properties": { "documents": { "description": "需要重排序的文本", "type": "array", "items": { "type": "string" } }, "instruction": { "description": "指令内容(适配元景qwen_rerank)", "type": "string" }, "model": { "type": "string" }, "query": { "type": "string" }, "return_documents": { "type": "boolean" }, "top_n": { "description": "返回排序后的top_n个文档。默认返回全部文档。", "type": "integer" }, "user": { "description": "用户标识(兼容千帆)", "type": "string" } } }, "mp_common.Thinking": { "type": "object", "properties": { "type": { "type": "string", "default": "enabled" } } }, "mp_common.ToolCall": { "type": "object", "properties": { "function": { "$ref": "#/definitions/mp_common.FunctionCall" }, "id": { "type": "string" }, "index": { "type": "integer" }, "type": { "$ref": "#/definitions/mp_common.ToolType" } } }, "mp_common.ToolType": { "type": "string", "enum": [ "function" ], "x-enum-varnames": [ "ToolTypeFunction" ] }, "mp_common.Usage": { "type": "object", "properties": { "completion_tokens": { "type": "integer" }, "image_tokens": { "type": "integer" }, "input_tokens": { "type": "integer" }, "prompt_tokens": { "type": "integer" }, "total_tokens": { "type": "integer" } } }, "mp_common.WebSearch": { "type": "object", "properties": { "enable": { "type": "boolean" }, "enable_citation": { "type": "boolean" }, "enable_status": { "type": "boolean" }, "enable_trace": { "type": "boolean" } } }, "mp_deepseek.LLM": { "type": "object", "properties": { "apiKey": { "description": "ApiKey", "type": "string" }, "contextSize": { "description": "上下文长度", "type": "integer" }, "endpointUrl": { "description": "推理url", "type": "string" }, "functionCalling": { "description": "函数调用是否支持", "type": "string", "enum": [ "noSupport", "toolCall" ] }, "maxImageSize": { "description": "最大图片大小限制", "type": "integer" }, "maxTokens": { "description": "模型回答最大tokens", "type": "integer" }, "thinkingSupport": { "description": "深度思考是否支持", "type": "string", "enum": [ "noSupport", "support" ] }, "visionSupport": { "description": "视觉支持", "type": "string", "enum": [ "noSupport", "support" ] } } }, "mp_huoshan.Embedding": { "type": "object", "properties": { "apiKey": { "description": "ApiKey", "type": "string" }, "contextSize": { "description": "上下文长度", "type": "integer" }, "endpointUrl": { "description": "推理url", "type": "string" } } }, "mp_huoshan.LLM": { "type": "object", "properties": { "apiKey": { "description": "ApiKey", "type": "string" }, "contextSize": { "description": "上下文长度", "type": "integer" }, "endpointUrl": { "description": "推理url", "type": "string" }, "functionCalling": { "description": "函数调用是否支持", "type": "string", "enum": [ "noSupport", "toolCall" ] }, "maxImageSize": { "description": "最大图片大小限制", "type": "integer" }, "maxTokens": { "description": "模型回答最大tokens", "type": "integer" }, "thinkingSupport": { "description": "深度思考是否支持", "type": "string", "enum": [ "noSupport", "support" ] }, "visionSupport": { "description": "视觉支持", "type": "string", "enum": [ "noSupport", "support" ] } } }, "mp_huoshan.MultiModalEmbedding": { "type": "object", "properties": { "apiKey": { "type": "string" }, "contextSize": { "type": "integer" }, "endpointUrl": { "type": "string" }, "maxImageSize": { "type": "integer" }, "maxTextLength": { "type": "integer" }, "maxVideoClipSize": { "type": "integer" }, "supportFileTypes": { "type": "array", "items": { "type": "string" } } } }, "mp_infini.Embedding": { "type": "object", "properties": { "apiKey": { "description": "ApiKey", "type": "string" }, "contextSize": { "description": "上下文长度", "type": "integer" }, "endpointUrl": { "description": "推理url", "type": "string" } } }, "mp_infini.LLM": { "type": "object", "properties": { "apiKey": { "description": "ApiKey", "type": "string" }, "contextSize": { "description": "上下文长度", "type": "integer" }, "endpointUrl": { "description": "推理url", "type": "string" }, "functionCalling": { "description": "函数调用是否支持", "type": "string", "enum": [ "noSupport", "toolCall" ] }, "maxImageSize": { "description": "最大图片大小限制", "type": "integer" }, "maxTokens": { "description": "模型回答最大tokens", "type": "integer" }, "thinkingSupport": { "description": "深度思考是否支持", "type": "string", "enum": [ "noSupport", "support" ] }, "visionSupport": { "description": "视觉支持", "type": "string", "enum": [ "noSupport", "support" ] } } }, "mp_infini.Rerank": { "type": "object", "properties": { "apiKey": { "description": "ApiKey", "type": "string" }, "contextSize": { "description": "上下文长度", "type": "integer" }, "endpointUrl": { "description": "推理url", "type": "string" } } }, "mp_ollama.Embedding": { "type": "object", "properties": { "apiKey": { "description": "ApiKey", "type": "string" }, "contextSize": { "description": "上下文长度", "type": "integer" }, "endpointUrl": { "description": "推理url", "type": "string" } } }, "mp_ollama.LLM": { "type": "object", "properties": { "apiKey": { "description": "ApiKey", "type": "string" }, "contextSize": { "description": "上下文长度", "type": "integer" }, "endpointUrl": { "description": "推理url", "type": "string" }, "functionCalling": { "description": "函数调用是否支持", "type": "string", "enum": [ "noSupport", "toolCall" ] }, "maxTokens": { "description": "模型回答最大tokens", "type": "integer" }, "thinkingSupport": { "description": "深度思考是否支持", "type": "string", "enum": [ "noSupport", "support" ] }, "visionSupport": { "description": "视觉支持", "type": "string", "enum": [ "noSupport", "support" ] } } }, "mp_openai_compatible.Embedding": { "type": "object", "properties": { "apiKey": { "description": "ApiKey", "type": "string" }, "contextSize": { "description": "上下文长度", "type": "integer" }, "endpointUrl": { "description": "推理url", "type": "string" } } }, "mp_openai_compatible.LLM": { "type": "object", "properties": { "apiKey": { "description": "ApiKey", "type": "string" }, "contextSize": { "description": "上下文长度", "type": "integer" }, "endpointUrl": { "description": "推理url", "type": "string" }, "functionCalling": { "description": "函数调用是否支持", "type": "string", "enum": [ "noSupport", "toolCall" ] }, "maxImageSize": { "description": "最大图片大小限制", "type": "integer" }, "maxTokens": { "description": "模型回答最大tokens", "type": "integer" }, "thinkingSupport": { "description": "深度思考是否支持", "type": "string", "enum": [ "noSupport", "support" ] }, "visionSupport": { "description": "视觉支持", "type": "string", "enum": [ "noSupport", "support" ] } } }, "mp_openai_compatible.Rerank": { "type": "object", "properties": { "apiKey": { "description": "ApiKey", "type": "string" }, "contextSize": { "description": "上下文长度", "type": "integer" }, "endpointUrl": { "description": "推理url", "type": "string" } } }, "mp_openai_compatible.SyncAsr": { "type": "object", "properties": { "apiKey": { "description": "ApiKey", "type": "string" }, "endpointUrl": { "description": "推理url(完整地址,含 /v1/chat/completions)", "type": "string" }, "maxAsrFileSize": { "type": "integer" } } }, "mp_qianfan.Embedding": { "type": "object", "properties": { "apiKey": { "description": "ApiKey", "type": "string" }, "contextSize": { "description": "上下文长度", "type": "integer" }, "endpointUrl": { "description": "推理url", "type": "string" } } }, "mp_qianfan.LLM": { "type": "object", "properties": { "apiKey": { "description": "ApiKey", "type": "string" }, "contextSize": { "description": "上下文长度", "type": "integer" }, "endpointUrl": { "description": "推理url", "type": "string" }, "functionCalling": { "description": "函数调用是否支持", "type": "string", "enum": [ "noSupport", "toolCall" ] }, "maxImageSize": { "description": "最大图片大小限制", "type": "integer" }, "maxTokens": { "description": "模型回答最大tokens", "type": "integer" }, "thinkingSupport": { "description": "深度思考是否支持", "type": "string", "enum": [ "noSupport", "support" ] }, "visionSupport": { "description": "视觉支持", "type": "string", "enum": [ "noSupport", "support" ] } } }, "mp_qianfan.Rerank": { "type": "object", "properties": { "apiKey": { "description": "ApiKey", "type": "string" }, "contextSize": { "description": "上下文长度", "type": "integer" }, "endpointUrl": { "description": "推理url", "type": "string" } } }, "mp_qwen.Embedding": { "type": "object", "properties": { "apiKey": { "description": "ApiKey", "type": "string" }, "contextSize": { "description": "上下文长度", "type": "integer" }, "endpointUrl": { "description": "推理url", "type": "string" } } }, "mp_qwen.LLM": { "type": "object", "properties": { "apiKey": { "description": "ApiKey", "type": "string" }, "contextSize": { "description": "上下文长度", "type": "integer" }, "endpointUrl": { "description": "推理url", "type": "string" }, "functionCalling": { "description": "函数调用是否支持", "type": "string", "enum": [ "noSupport", "toolCall" ] }, "maxImageSize": { "description": "最大图片大小限制", "type": "integer" }, "maxTokens": { "description": "模型回答最大tokens", "type": "integer" }, "thinkingSupport": { "description": "深度思考是否支持", "type": "string", "enum": [ "noSupport", "support" ] }, "visionSupport": { "description": "视觉支持", "type": "string", "enum": [ "noSupport", "support" ] } } }, "mp_qwen.MultiModalEmbedding": { "type": "object", "properties": { "apiKey": { "type": "string" }, "contextSize": { "type": "integer" }, "endpointUrl": { "type": "string" }, "maxImageSize": { "type": "integer" }, "maxTextLength": { "type": "integer" }, "maxVideoClipSize": { "type": "integer" }, "supportFileTypes": { "type": "array", "items": { "type": "string" } } } }, "mp_qwen.MultiModalRerank": { "type": "object", "properties": { "apiKey": { "type": "string" }, "contextSize": { "type": "integer" }, "endpointUrl": { "type": "string" }, "maxImageSize": { "type": "integer" }, "maxTextLength": { "type": "integer" }, "maxVideoClipSize": { "type": "integer" }, "supportFileTypes": { "type": "array", "items": { "type": "string" } }, "supportImageInQuery": { "type": "boolean" } } }, "mp_qwen.Rerank": { "type": "object", "properties": { "apiKey": { "description": "ApiKey", "type": "string" }, "contextSize": { "description": "上下文长度", "type": "integer" }, "endpointUrl": { "description": "推理url", "type": "string" } } }, "mp_tencent.Embedding": { "type": "object", "properties": { "apiKey": { "description": "ApiKey", "type": "string" }, "contextSize": { "description": "上下文长度", "type": "integer" }, "endpointUrl": { "description": "推理url", "type": "string" } } }, "mp_tencent.LLM": { "type": "object", "properties": { "apiKey": { "description": "ApiKey", "type": "string" }, "contextSize": { "description": "上下文长度", "type": "integer" }, "endpointUrl": { "description": "推理url", "type": "string" }, "functionCalling": { "description": "函数调用是否支持", "type": "string", "enum": [ "noSupport", "toolCall" ] }, "maxImageSize": { "description": "最大图片大小限制", "type": "integer" }, "maxTokens": { "description": "模型回答最大tokens", "type": "integer" }, "thinkingSupport": { "description": "深度思考是否支持", "type": "string", "enum": [ "noSupport", "support" ] }, "visionSupport": { "description": "视觉支持", "type": "string", "enum": [ "noSupport", "support" ] } } }, "mp_yuanjing.Embedding": { "type": "object", "properties": { "apiKey": { "description": "ApiKey", "type": "string" }, "contextSize": { "description": "上下文长度", "type": "integer" }, "endpointUrl": { "description": "推理url", "type": "string" } } }, "mp_yuanjing.Gui": { "type": "object", "properties": { "apiKey": { "description": "ApiKey", "type": "string" }, "endpointUrl": { "description": "推理url", "type": "string" } } }, "mp_yuanjing.LLM": { "type": "object", "properties": { "apiKey": { "description": "ApiKey", "type": "string" }, "contextSize": { "description": "上下文长度", "type": "integer" }, "endpointUrl": { "description": "推理url", "type": "string" }, "functionCalling": { "description": "函数调用是否支持", "type": "string", "enum": [ "noSupport", "toolCall" ] }, "maxImageSize": { "description": "最大图片大小限制", "type": "integer" }, "maxTokens": { "description": "模型回答最大tokens", "type": "integer" }, "thinkingSupport": { "description": "深度思考是否支持", "type": "string", "enum": [ "noSupport", "support" ] }, "visionSupport": { "description": "视觉支持", "type": "string", "enum": [ "noSupport", "support" ] } } }, "mp_yuanjing.Ocr": { "type": "object", "properties": { "apiKey": { "description": "ApiKey", "type": "string" }, "endpointUrl": { "description": "推理url", "type": "string" }, "supportFileTypes": { "description": "支持的文件类型,由 bff-service 从 recommend_model_config.yaml 注入", "type": "array", "items": { "type": "string" } } } }, "mp_yuanjing.PdfParser": { "type": "object", "properties": { "apiKey": { "description": "ApiKey", "type": "string" }, "endpointUrl": { "description": "推理url", "type": "string" } } }, "mp_yuanjing.Rerank": { "type": "object", "properties": { "apiKey": { "description": "ApiKey", "type": "string" }, "contextSize": { "description": "上下文长度", "type": "integer" }, "endpointUrl": { "description": "推理url", "type": "string" } } }, "mp_zhipu.Embedding": { "type": "object", "properties": { "apiKey": { "description": "ApiKey", "type": "string" }, "contextSize": { "description": "上下文长度", "type": "integer" }, "endpointUrl": { "description": "推理url", "type": "string" } } }, "mp_zhipu.LLM": { "type": "object", "properties": { "apiKey": { "type": "string" }, "contextSize": { "type": "integer" }, "endpointUrl": { "type": "string" }, "functionCalling": { "type": "string", "enum": [ "noSupport", "toolCall" ] }, "maxImageSize": { "type": "integer" }, "maxTokens": { "type": "integer" }, "thinkingSupport": { "type": "string", "enum": [ "noSupport", "support" ] }, "visionSupport": { "type": "string", "enum": [ "noSupport", "support" ] } } }, "mp_zhipu.Rerank": { "type": "object", "properties": { "apiKey": { "description": "ApiKey", "type": "string" }, "contextSize": { "description": "上下文长度", "type": "integer" }, "endpointUrl": { "description": "推理url", "type": "string" } } }, "protocol.DataType": { "type": "string", "enum": [ "object", "number", "integer", "string", "array", "null", "boolean" ], "x-enum-varnames": [ "ObjectT", "Number", "Integer", "String", "Array", "Null", "Boolean" ] }, "protocol.InputSchema": { "type": "object", "properties": { "properties": { "type": "object", "additionalProperties": { "$ref": "#/definitions/protocol.Property" } }, "required": { "type": "array", "items": { "type": "string" } }, "type": { "$ref": "#/definitions/protocol.InputSchemaType" } } }, "protocol.InputSchemaType": { "type": "string", "enum": [ "object" ], "x-enum-varnames": [ "Object" ] }, "protocol.OutputSchema": { "type": "object", "properties": { "properties": { "type": "object", "additionalProperties": { "$ref": "#/definitions/protocol.Property" } }, "required": { "type": "array", "items": { "type": "string" } }, "type": { "$ref": "#/definitions/protocol.InputSchemaType" } } }, "protocol.Property": { "type": "object", "properties": { "default": { "description": "Default specifies the default value for the property." }, "description": { "description": "Description is the description of the schema.", "type": "string" }, "enum": { "type": "array", "items": {} }, "items": { "description": "Items specifies which data type an array contains, if the schema type is Array.", "allOf": [ { "$ref": "#/definitions/protocol.Property" } ] }, "properties": { "description": "Properties describes the properties of an object, if the schema type is Object.", "type": "object", "additionalProperties": { "$ref": "#/definitions/protocol.Property" } }, "required": { "type": "array", "items": { "type": "string" } }, "type": { "type": "array", "items": { "$ref": "#/definitions/protocol.DataType" } } } }, "protocol.Tool": { "type": "object", "properties": { "annotations": { "description": "Annotations provides additional hints about the tool's behavior", "allOf": [ { "$ref": "#/definitions/protocol.ToolAnnotations" } ] }, "description": { "description": "Description is a human-readable description of the tool", "type": "string" }, "inputSchema": { "description": "InputSchema defines the expected parameters for the tool using JSON Schema", "allOf": [ { "$ref": "#/definitions/protocol.InputSchema" } ] }, "name": { "description": "Name is the unique identifier of the tool", "type": "string" }, "outputSchema": { "description": "OutputSchema defines expected output structure for the tool using Optional JSON Schema", "allOf": [ { "$ref": "#/definitions/protocol.OutputSchema" } ] } } }, "protocol.ToolAnnotations": { "type": "object", "properties": { "destructiveHint": { "description": "DestructiveHint indicates the tool may perform destructive updates\n(only meaningful when ReadOnlyHint is false)", "type": "boolean" }, "idempotentHint": { "description": "IdempotentHint indicates calling the tool repeatedly with the same arguments\nhas no additional effect (only meaningful when ReadOnlyHint is false)", "type": "boolean" }, "openWorldHint": { "description": "OpenWorldHint indicates the tool may interact with an \"open world\" of external entities", "type": "boolean" }, "readOnlyHint": { "description": "ReadOnlyHint indicates the tool does not modify its environment", "type": "boolean" }, "title": { "description": "Title is a human-readable title for the tool, useful for UI display", "type": "string" } } }, "request.AgentChatProxyReq": { "type": "object", "required": [ "input" ], "properties": { "input": { "type": "string" } } }, "request.AppModelConfig": { "type": "object", "properties": { "config": { "description": "模型配置" }, "displayName": { "description": "模型展示名称(请求非必填)", "type": "string" }, "examples": { "description": "仅用于swagger展示;模型对应供应商中的对应llm、embedding或rerank结构是config实际的参数", "allOf": [ { "$ref": "#/definitions/mp.AppModelParams" } ] }, "model": { "description": "模型名称", "type": "string" }, "modelId": { "description": "模型ID", "type": "string" }, "modelType": { "description": "模型类型(llm/embedding/rerank)", "type": "string" }, "provider": { "description": "模型供应商", "type": "string" } } }, "request.AppRecordRequest": { "type": "object", "properties": { "answer": { "description": "回复(精简);始终落库;流式可空", "type": "string" }, "appId": { "type": "string" }, "appType": { "type": "string" }, "failureReason": { "description": "FailureReason 失败原因;成功时传空。", "type": "string" }, "isStream": { "type": "boolean" }, "module": { "description": "板块 agent|rag|workflow|knowledge|...;空则按 appType 推断", "type": "string" }, "nonStreamCosts": { "type": "integer" }, "orgId": { "type": "string" }, "question": { "description": "用户提问(精简);始终落库", "type": "string" }, "requestBody": { "description": "整体请求 JSON;受 statistic.record_body 控制", "type": "string" }, "responseBody": { "description": "整体响应 JSON;流式忽略;受 statistic.record_body 控制", "type": "string" }, "source": { "type": "string" }, "statusCode": { "description": "StatusCode 调用方透传的 HTTP 语义状态码;成功传 200,失败传对应码(如 500)。", "type": "integer" }, "streamCosts": { "type": "integer" }, "userId": { "type": "string" } } }, "request.Avatar": { "type": "object", "properties": { "key": { "description": "前端透传给后端用于保存avatar,例如:custom-upload/avatar/abc/def.png", "type": "string" }, "path": { "description": "前端请求地址,例如:/v1/static/avatar/abc/def.png (请求非必填)", "type": "string" } } }, "request.CallbackMetaData": { "type": "object", "required": [ "metaId", "value" ], "properties": { "key": { "type": "string" }, "metaId": { "type": "string" }, "value": { "type": "string" } } }, "request.CallbackUpdateDocStatusReq": { "type": "object", "required": [ "id", "status" ], "properties": { "id": { "type": "string" }, "metaDataList": { "type": "array", "items": { "$ref": "#/definitions/request.CallbackMetaData" } }, "status": { "type": "integer" } } }, "request.CustomModelInfo": { "type": "object", "properties": { "llm_model_id": { "type": "string" } } }, "request.DeleteDigitalEmployeePublishSyncReq": { "type": "object", "required": [ "employeeId", "userId" ], "properties": { "employeeId": { "description": "数字员工ID(即 app 表 appId)", "type": "string" }, "userId": { "description": "操作人用户ID(外部系统提供)", "type": "string" } } }, "request.DigitalEmployeePublishSyncReq": { "type": "object", "required": [ "employeeId", "orgId", "publishType", "userId" ], "properties": { "employeeId": { "description": "数字员工ID(即 app 表 appId)", "type": "string" }, "orgId": { "description": "发布者组织ID(外部系统提供)", "type": "string" }, "publishType": { "description": "发布类型(public/organization/private)", "type": "string" }, "userId": { "description": "发布者用户ID(外部系统提供)", "type": "string" } } }, "request.FileUrlConvertBase64Req": { "type": "object", "required": [ "fileUrl" ], "properties": { "addPrefix": { "description": "是否添加 data:xxx;base64, 前缀", "type": "boolean" }, "customPrefix": { "description": "自定义前缀(如 \"data:video/mp4;base64,\")", "type": "string" }, "fileUrl": { "description": "文件URL", "type": "string" } } }, "request.GetUserListByUserIdsReq": { "type": "object", "required": [ "userIds" ], "properties": { "userIds": { "description": "用户ID列表", "type": "array", "items": { "type": "string" } } } }, "request.HistoryItem": { "type": "object", "properties": { "needHistory": { "type": "boolean" }, "query": { "type": "string" }, "response": { "type": "string" } } }, "request.MetaItem": { "type": "object", "properties": { "comparison_operator": { "description": "比较运算符", "type": "string" }, "meta_name": { "description": "元数据名称", "type": "string" }, "meta_type": { "description": "元数据类型", "type": "string" }, "value": { "description": "用于过滤的条件值" } } }, "request.MetadataFilterItem": { "type": "object", "properties": { "conditions": { "type": "array", "items": { "$ref": "#/definitions/request.MetaItem" } }, "filtering_kb_name": { "type": "string" }, "logical_operator": { "type": "string" } } }, "request.QAMetadataFilterItem": { "type": "object", "properties": { "conditions": { "type": "array", "items": { "$ref": "#/definitions/request.MetaItem" } }, "filtering_qa_base_name": { "type": "string" }, "logical_operator": { "type": "string" } } }, "request.RagKnowledgeAttachment": { "type": "object", "properties": { "file_type": { "type": "string" }, "file_url": { "type": "string" } } }, "request.RagKnowledgeChatReq": { "type": "object", "properties": { "attachment_files": { "description": "上传的多模态文件", "type": "array", "items": { "$ref": "#/definitions/request.RagKnowledgeAttachment" } }, "auto_citation": { "description": "是否自动角标", "type": "boolean" }, "chichat": { "description": "当知识库召回结果为空时是否使用默认话术(兜底),默认为false", "type": "boolean" }, "custom_model_info": { "$ref": "#/definitions/request.CustomModelInfo" }, "enable_thinking": { "description": "是否打开思考过程", "type": "boolean" }, "enable_vision": { "description": "召回结果是否包含多模态文件", "type": "boolean" }, "history": { "type": "array", "items": { "$ref": "#/definitions/request.HistoryItem" } }, "knowledgeIdList": { "description": "知识库id列表", "type": "array", "items": { "type": "string" } }, "knowledge_base_info": { "type": "object", "additionalProperties": { "type": "array", "items": { "$ref": "#/definitions/request.RagKnowledgeInfo" } } }, "max_history": { "type": "integer" }, "metadata_filtering": { "description": "元数据过滤开关", "type": "boolean" }, "metadata_filtering_conditions": { "description": "元数据过滤条件", "type": "array", "items": { "$ref": "#/definitions/request.MetadataFilterItem" } }, "question": { "type": "string" }, "repetition_penalty": { "description": "重复惩罚/频率惩罚", "type": "number" }, "rerank_mod": { "description": "rerank_model:重排序模式,weighted_score:权重搜索", "type": "string" }, "rerank_model_id": { "type": "string" }, "retrieve_method": { "description": "hybrid_search:混合搜索, semantic_search:向量搜索, full_text_search:文本搜索", "type": "string" }, "return_meta": { "description": "是否返回元数据", "type": "boolean" }, "rewrite_query": { "description": "是否query改写", "type": "boolean" }, "stream": { "type": "boolean" }, "temperature": { "type": "number" }, "term_weight_coefficient": { "description": "关键词系数", "type": "number" }, "threshold": { "description": "Score阈值", "type": "number" }, "topK": { "type": "integer" }, "top_p": { "description": "多样性", "type": "number" }, "use_graph": { "description": "是否启动知识图谱查询", "type": "boolean" }, "userId": { "type": "string" }, "weights": { "description": "权重搜索下的权重配置", "allOf": [ { "$ref": "#/definitions/request.WeightParams" } ] } } }, "request.RagKnowledgeInfo": { "type": "object", "properties": { "kb_id": { "type": "string" }, "kb_name": { "type": "string" } } }, "request.RagQaInfo": { "type": "object", "properties": { "QABase": { "type": "string" }, "QAId": { "type": "string" } } }, "request.RagSearchKnowledgeBaseReq": { "type": "object", "required": [ "knowledgeIdList", "userId" ], "properties": { "attachment_files": { "description": "上传的多模态文件", "type": "array", "items": { "$ref": "#/definitions/request.RagKnowledgeAttachment" } }, "auto_citation": { "description": "是否启动知识图谱查询", "type": "boolean" }, "enable_vision": { "description": "召回结果是否包含多模态文件(只在callback层做最后的赋值)", "type": "boolean" }, "knowledgeIdList": { "type": "array", "items": { "type": "string" } }, "knowledge_base_info": { "type": "object", "additionalProperties": { "type": "array", "items": { "$ref": "#/definitions/request.RagKnowledgeInfo" } } }, "metadata_filtering": { "description": "元数据过滤开关", "type": "boolean" }, "metadata_filtering_conditions": { "description": "元数据过滤条件", "type": "array", "items": { "$ref": "#/definitions/request.MetadataFilterItem" } }, "question": { "type": "string" }, "rerank_mod": { "description": "rerank_model:重排序模式,weighted_score:权重搜索", "type": "string" }, "rerank_model_id": { "description": "rerankId", "type": "string" }, "retrieve_method": { "description": "hybrid_search:混合搜索, semantic_search:向量搜索, full_text_search:文本搜索", "type": "string" }, "return_meta": { "description": "是否返回元数据", "type": "boolean" }, "rewrite_query": { "description": "是否query改写", "type": "boolean" }, "term_weight_coefficient": { "description": "关键词系数", "type": "number" }, "threshold": { "type": "number" }, "topK": { "type": "integer" }, "use_graph": { "description": "是否启动知识图谱查询", "type": "boolean" }, "userId": { "type": "string" }, "weights": { "description": "权重搜索下的权重配置", "allOf": [ { "$ref": "#/definitions/request.WeightParams" } ] } } }, "request.RagSearchQABaseReq": { "type": "object", "required": [ "knowledgeIdList", "userId" ], "properties": { "QABaseInfo": { "type": "object", "additionalProperties": { "type": "array", "items": { "$ref": "#/definitions/request.RagQaInfo" } } }, "knowledgeIdList": { "type": "array", "items": { "type": "string" } }, "metadataFiltering": { "type": "boolean" }, "metadataFilteringConditions": { "type": "array", "items": { "$ref": "#/definitions/request.QAMetadataFilterItem" } }, "question": { "type": "string" }, "rerankMod": { "type": "string" }, "rerankModelId": { "type": "string" }, "retrieveMethod": { "type": "string" }, "returnMeta": { "type": "boolean" }, "threshold": { "type": "number" }, "topK": { "type": "integer" }, "userId": { "type": "string" }, "weights": { "$ref": "#/definitions/request.WeightParams" } } }, "request.SearchAcquiredSkillListReq": { "type": "object", "required": [ "skillIdList" ], "properties": { "orgId": { "type": "string" }, "skillIdList": { "type": "array", "items": { "type": "string" } }, "userId": { "description": "UserId/OrgId:同 SearchCustomSkillListReq 说明,应传智能体创建者身份,\n而非 HTTP 调用者身份。", "type": "string" } } }, "request.SearchBuiltinSkillListReq": { "type": "object", "required": [ "skillIdList" ], "properties": { "orgId": { "type": "string" }, "skillIdList": { "type": "array", "items": { "type": "string" } }, "userId": { "description": "UserId / OrgId 用于 mcp.GetBuiltinSkillVars 鉴权(builtin skill var 按 user 配)。\n老 caller 不传时回退为不带 vars 的行为,保持向后兼容。", "type": "string" } } }, "request.SearchCustomSkillListReq": { "type": "object", "required": [ "skillIdList" ], "properties": { "orgId": { "type": "string" }, "skillIdList": { "type": "array", "items": { "type": "string" } }, "userId": { "description": "UserId/OrgId:调用方期望\"以哪个用户身份\"查询这批 skill 的详情与变量。\ncallback 由 assistant-service 在处理智能体(Assistant)对话时内部回调过来,\n此处应传智能体在 assistant 表里的 user_id / org_id(智能体创建者),\n而不是发起 HTTP 请求的调用者——发布态智能体常被非创建者调用,\n用调用者身份会查不到创建者配置的 per-user skill 变量。", "type": "string" } } }, "request.SendMessageRequest": { "type": "object", "required": [ "channelId" ], "properties": { "channelId": { "type": "string" }, "content": { "type": "string" }, "fileMimeType": { "type": "string" }, "fileName": { "type": "string" }, "fileUrl": { "type": "string" }, "msgType": { "type": "string" }, "title": { "type": "string" }, "userId": { "type": "string" } } }, "request.UnarchiveFileReq": { "type": "object", "required": [ "fileUrl" ], "properties": { "fileUrl": { "description": "压缩包的MinIO URL", "type": "string" } } }, "request.UploadFileByBase64Req": { "type": "object", "required": [ "file" ], "properties": { "file": { "description": "base64格式", "type": "string" }, "fileExt": { "description": "文件后缀名,如 \"png\", \"pdf\"", "type": "string" }, "fileName": { "type": "string" } } }, "request.WeightParams": { "type": "object", "properties": { "text_weight": { "description": "关键字权重", "type": "number" }, "vector_weight": { "description": "语义权重", "type": "number" } } }, "request.WgaRagSearchKnowledgeBaseReq": { "type": "object", "required": [ "knowledgeIdList", "question" ], "properties": { "knowledgeIdList": { "type": "array", "items": { "type": "string" } }, "question": { "type": "string" } } }, "request.WgaSandboxCleanupReq": { "type": "object", "required": [ "runId" ], "properties": { "runId": { "type": "string" } } }, "request.WgaSandboxMCP": { "type": "object", "required": [ "name", "url" ], "properties": { "description": { "type": "string" }, "name": { "type": "string" }, "url": { "type": "string" } } }, "request.WgaSandboxMessage": { "type": "object", "required": [ "content", "role" ], "properties": { "content": { "type": "string" }, "role": { "type": "string" } } }, "request.WgaSandboxRunReq": { "type": "object", "required": [ "model" ], "properties": { "agentName": { "type": "string" }, "enableThinking": { "type": "boolean" }, "inputDir": { "type": "string" }, "instruction": { "type": "string" }, "mcps": { "type": "array", "items": { "$ref": "#/definitions/request.WgaSandboxMCP" } }, "messages": { "type": "array", "items": { "$ref": "#/definitions/request.WgaSandboxMessage" } }, "model": { "$ref": "#/definitions/request.AppModelConfig" }, "outputDir": { "type": "string" }, "overallTask": { "type": "string" }, "runId": { "type": "string" }, "skills": { "type": "array", "items": { "$ref": "#/definitions/request.WgaSandboxSkill" } }, "skipCleanup": { "type": "boolean" }, "threadId": { "type": "string" }, "tools": { "type": "array", "items": { "$ref": "#/definitions/request.WgaSandboxTool" } } } }, "request.WgaSandboxSkill": { "type": "object", "required": [ "dir" ], "properties": { "dir": { "type": "string" }, "variables": { "type": "array", "items": { "$ref": "#/definitions/request.WgaSandboxSkillVariable" } } } }, "request.WgaSandboxSkillVariable": { "type": "object", "required": [ "name", "variableKey", "variableValue" ], "properties": { "description": { "type": "string" }, "name": { "type": "string" }, "variableKey": { "type": "string" }, "variableValue": { "type": "string" } } }, "request.WgaSandboxTool": { "type": "object", "required": [ "schema" ], "properties": { "apiAuth": { "description": "API 认证配置", "allOf": [ { "$ref": "#/definitions/util.ApiAuthWebRequest" } ] }, "operationIds": { "description": "允许的 operations,空=全部允许", "type": "array", "items": { "type": "string" } }, "schema": { "description": "OpenAPI 3.0 schema JSON 字符串", "type": "string" } } }, "response.CallbackAcquiredSkillDetail": { "type": "object", "properties": { "author": { "type": "string" }, "avatar": { "$ref": "#/definitions/request.Avatar" }, "createdAt": { "type": "string" }, "desc": { "type": "string" }, "name": { "type": "string" }, "objectPath": { "type": "string" }, "orgId": { "type": "string" }, "skillId": { "type": "string" }, "updatedAt": { "type": "string" }, "userId": { "type": "string" }, "variables": { "type": "array", "items": { "$ref": "#/definitions/response.SkillVariable" } } } }, "response.CallbackAcquiredSkillDetailListResp": { "type": "object", "properties": { "skillList": { "type": "array", "items": { "$ref": "#/definitions/response.CallbackAcquiredSkillDetail" } } } }, "response.CallbackSkillDetail": { "type": "object", "properties": { "avatar": { "type": "string" }, "desc": { "type": "string" }, "name": { "type": "string" }, "objectPath": { "type": "string" }, "skillId": { "type": "string" }, "skillType": { "type": "string" } } }, "response.CustomSkillDetailListResp": { "type": "object", "properties": { "skillList": { "type": "array", "items": { "$ref": "#/definitions/response.CustomSkillListDetail" } } } }, "response.CustomSkillListDetail": { "type": "object", "properties": { "author": { "type": "string" }, "avatar": { "$ref": "#/definitions/request.Avatar" }, "createdAt": { "type": "string" }, "desc": { "type": "string" }, "name": { "type": "string" }, "objectPath": { "type": "string" }, "orgId": { "type": "string" }, "skillId": { "type": "string" }, "updatedAt": { "type": "string" }, "userId": { "type": "string" }, "variables": { "type": "array", "items": { "$ref": "#/definitions/response.SkillVariable" } } } }, "response.CustomToolActionInfo": { "type": "object", "properties": { "desc": { "type": "string" }, "method": { "type": "string" }, "name": { "type": "string" }, "path": { "type": "string" } } }, "response.CustomToolDetail": { "type": "object", "properties": { "apiAuth": { "description": "apiAuth", "allOf": [ { "$ref": "#/definitions/util.ApiAuthWebRequest" } ] }, "apiList": { "description": "action列表", "type": "array", "items": { "$ref": "#/definitions/response.CustomToolActionInfo" } }, "avatar": { "description": "图标", "allOf": [ { "$ref": "#/definitions/request.Avatar" } ] }, "customToolId": { "description": "自定义工具id", "type": "string" }, "description": { "description": "描述", "type": "string" }, "name": { "description": "名称", "type": "string" }, "privacyPolicy": { "description": "隐私政策", "type": "string" }, "schema": { "description": "schema", "type": "string" } } }, "response.IDNameWithAvatar": { "type": "object", "properties": { "avatar": { "$ref": "#/definitions/request.Avatar" }, "id": { "type": "string" }, "name": { "type": "string" } } }, "response.ListResult": { "type": "object", "properties": { "list": {}, "total": { "type": "integer" } } }, "response.MCPDetail": { "type": "object", "properties": { "apiAuth": { "description": "api身份认证", "allOf": [ { "$ref": "#/definitions/util.ApiAuthWebRequest" } ] }, "avatar": { "description": "图标", "allOf": [ { "$ref": "#/definitions/request.Avatar" } ] }, "category": { "description": "类型(data:数据,create:创作,search:搜索)", "type": "string" }, "desc": { "description": "描述", "type": "string" }, "detail": { "description": "详情", "type": "string" }, "feature": { "description": "特性说明", "type": "string" }, "from": { "description": "来源", "type": "string" }, "headers": { "description": "请求头", "type": "object", "additionalProperties": { "type": "string" } }, "manual": { "description": "使用说明", "type": "string" }, "mcpId": { "description": "mcpId", "type": "string" }, "mcpSquareId": { "description": "广场mcpId(非空表示来源于广场)", "type": "string" }, "name": { "description": "名称", "type": "string" }, "scenario": { "description": "应用场景", "type": "string" }, "sseUrl": { "description": "SSE URL", "type": "string" }, "streamableUrl": { "description": "Streamable HTTP URL", "type": "string" }, "summary": { "description": "使用概述", "type": "string" }, "transport": { "description": "传输协议: \"sse\" 或 \"streamable\"", "type": "string" }, "type": { "description": "type: mcp", "type": "string" } } }, "response.MCPServerDetail": { "type": "object", "properties": { "avatar": { "description": "图标", "allOf": [ { "$ref": "#/definitions/request.Avatar" } ] }, "desc": { "description": "描述", "type": "string" }, "mcpServerId": { "description": "mcpServerId", "type": "string" }, "name": { "description": "名称", "type": "string" }, "sseExample": { "description": "sse连接示例", "type": "string" }, "sseUrl": { "description": "sse url", "type": "string" }, "streamableExample": { "description": "streamable http 连接示例", "type": "string" }, "streamableUrl": { "description": "streamable http url", "type": "string" }, "tools": { "description": "绑定工具列表", "type": "array", "items": { "$ref": "#/definitions/response.MCPServerToolInfo" } }, "transport": { "description": "sse/streamable", "type": "string" } } }, "response.MCPServerToolInfo": { "type": "object", "properties": { "desc": { "description": "描述", "type": "string" }, "id": { "description": "应用或工具id", "type": "string" }, "mcpServerToolId": { "description": "mcpServerToolId", "type": "string" }, "methodName": { "description": "显示名称", "type": "string" }, "name": { "description": "应用或工具名称", "type": "string" }, "type": { "description": "类型", "type": "string" } } }, "response.ModelInfo": { "type": "object", "required": [ "model", "modelType", "provider" ], "properties": { "allowEdit": { "description": "是否允许前端编辑(true: 允许编辑,false: 隐藏编辑按钮)", "type": "boolean" }, "avatar": { "description": "模型图标路径", "allOf": [ { "$ref": "#/definitions/request.Avatar" } ] }, "config": {}, "createdAt": { "type": "string" }, "displayName": { "description": "模型显示名称", "type": "string" }, "examples": { "description": "仅用于swagger展示;模型对应供应商中的对应llm、embedding或rerank结构是config实际的参数", "allOf": [ { "$ref": "#/definitions/mp.ProviderModelConfig" } ] }, "importSource": { "description": "模型导入来源(builtin=平台内置,external=外部URL)", "type": "string" }, "isActive": { "description": "启用状态(true: 启用,false: 禁用)", "type": "boolean" }, "model": { "description": "模型名称", "type": "string" }, "modelDesc": { "type": "string" }, "modelId": { "type": "string" }, "modelType": { "type": "string", "enum": [ "llm", "embedding", "rerank" ] }, "orgId": { "type": "string" }, "provider": { "description": "模型供应商", "type": "string", "enum": [ "OpenAI-API-compatible", "YuanJing" ] }, "publishDate": { "description": "模型发布时间", "type": "string" }, "scopeType": { "description": "模型公开范围(1-私有 2-公开 3-组织)", "type": "string" }, "tags": { "type": "array", "items": { "$ref": "#/definitions/mp_common.Tag" } }, "updatedAt": { "type": "string" }, "userId": { "type": "string" }, "uuid": { "type": "string" } } }, "response.Response": { "type": "object", "properties": { "code": { "type": "integer" }, "data": {}, "msg": { "type": "string" } } }, "response.SkillDetail": { "type": "object", "properties": { "author": { "type": "string" }, "avatar": { "$ref": "#/definitions/request.Avatar" }, "createdAt": { "type": "string" }, "desc": { "type": "string" }, "name": { "type": "string" }, "orgId": { "type": "string" }, "skillId": { "type": "string" }, "skillMarkdown": { "type": "string" }, "skillPath": { "type": "string" }, "updatedAt": { "type": "string" }, "userId": { "type": "string" }, "variables": { "type": "array", "items": { "$ref": "#/definitions/response.SkillVariable" } } } }, "response.SkillDetailListResp": { "type": "object", "properties": { "skillList": { "type": "array", "items": { "$ref": "#/definitions/response.SkillDetail" } } } }, "response.SkillVariable": { "type": "object", "properties": { "desc": { "type": "string" }, "id": { "type": "string" }, "name": { "type": "string" }, "variableKey": { "type": "string" }, "variableValue": { "type": "string" } } }, "response.ToolSquareDetail": { "type": "object", "properties": { "actionSum": { "description": "action总数", "type": "integer" }, "apiAuth": { "description": "apiAuth", "allOf": [ { "$ref": "#/definitions/util.ApiAuthWebRequest" } ] }, "apiKey": { "description": "apiKey", "type": "string" }, "avatar": { "description": "图标", "allOf": [ { "$ref": "#/definitions/request.Avatar" } ] }, "desc": { "description": "描述", "type": "string" }, "detail": { "description": "详细描述", "type": "string" }, "name": { "description": "名称", "type": "string" }, "needApiKeyInput": { "description": "是否需要apiKey输入", "type": "boolean" }, "schema": { "type": "string" }, "tags": { "description": "标签", "type": "array", "items": { "type": "string" } }, "toolSquareId": { "description": "广场mcpId(非空表示来源于广场)", "type": "string" }, "tools": { "description": "action列表", "type": "array", "items": { "$ref": "#/definitions/protocol.Tool" } } } }, "response.UnarchiveFileNode": { "type": "object", "properties": { "children": { "description": "子节点(仅目录有)", "type": "array", "items": { "$ref": "#/definitions/response.UnarchiveFileNode" } }, "downloadUrl": { "description": "外部下载地址(仅文件有值)", "type": "string" }, "minioUrl": { "description": "MinIO内部访问地址(仅文件有值)", "type": "string" }, "name": { "description": "文件或目录名", "type": "string" }, "objectPath": { "description": "MinIO对象路径(如 file-upload/file-expire/unarchive/xxx/src/main.go)", "type": "string" }, "relativePath": { "description": "相对路径(如 src/main.go)", "type": "string" }, "size": { "description": "文件大小,字节(目录为0)", "type": "integer" }, "type": { "description": "\"directory\" 或 \"file\"", "type": "string" } } }, "response.UnarchiveFileResp": { "type": "object", "properties": { "children": { "description": "目录树(从解压根目录的子节点开始)", "type": "array", "items": { "$ref": "#/definitions/response.UnarchiveFileNode" } }, "objectPath": { "description": "MinIO顶层对象路径(如 file-upload/file-expire/unarchive/uuid)", "type": "string" }, "totalFiles": { "description": "总文件数", "type": "integer" }, "totalSize": { "description": "总文件大小(字节)", "type": "integer" } } }, "response.UploadFileByBase64Resp": { "type": "object", "properties": { "uri": { "type": "string" }, "url": { "type": "string" } } }, "response.UserInfoByApiKey": { "type": "object", "properties": { "orgId": { "type": "string" }, "userId": { "type": "string" }, "username": { "type": "string" } } }, "util.ApiAuthWebRequest": { "type": "object", "required": [ "authType" ], "properties": { "apiKeyHeader": { "description": "HTTP头部名称", "type": "string" }, "apiKeyHeaderPrefix": { "description": "鉴权头部前缀", "type": "string", "enum": [ "basic", "bearer", "custom" ] }, "apiKeyQueryParam": { "description": "查询参数名称", "type": "string" }, "apiKeyValue": { "description": "apiKey", "type": "string" }, "authType": { "description": "鉴权类型 None 或 请求头 或 查询参数", "type": "string", "enum": [ "none", "api_key_query", "api_key_header" ] } } } } }