| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378 |
- {
- "openapi": "3.0.3",
- "info": {
- "title": "默认模块",
- "description": "",
- "version": "1.0.0"
- },
- "servers": [
- {
- "url": "/",
- "description": "默认服务器"
- }
- ],
- "tags": [
- {
- "name": "ai-chat",
- "description": "ai对话相关接口"
- }
- ],
- "paths": {
- "/api/ai/chat/stop-answer": {
- "post": {
- "summary": "停止会话",
- "deprecated": false,
- "description": "",
- "tags": ["ai-chat"],
- "parameters": [
- {
- "name": "Authorization",
- "in": "header",
- "description": "",
- "example": "bpm_client_1519719271393923072",
- "schema": {
- "type": "string"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "session_id": {
- "type": "string"
- },
- "msgId": {
- "type": "string"
- }
- },
- "required": ["session_id", "msgId"]
- },
- "example": {
- "session_id": "3c22a2e6-0058-49db-a24c-df1c99fd4918",
- "msgId": "cbd27e13-ae9b-4772-a394-81a0c55045eb"
- }
- }
- },
- "required": true
- },
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "isSuccess": {
- "type": "boolean"
- },
- "code": {
- "type": "integer"
- },
- "isAuthorized": {
- "type": "boolean"
- }
- },
- "required": ["isSuccess", "code", "isAuthorized"]
- },
- "example": {
- "isSuccess": true,
- "code": 1,
- "isAuthorized": true
- }
- }
- },
- "headers": {}
- }
- },
- "security": []
- }
- },
- "/api/ai/chat/knowledge-chat": {
- "post": {
- "summary": "基于知识库的问答 (SSE)",
- "deprecated": false,
- "description": "",
- "tags": ["ai-chat"],
- "parameters": [
- {
- "name": "Authorization",
- "in": "header",
- "description": "",
- "example": "bpm_client_1513029045627916288",
- "schema": {
- "type": "string",
- "default": "bpm_client_1513029045627916288"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "session_id": {
- "type": "string"
- },
- "query": {
- "type": "string"
- },
- "knowledge_base_ids": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "knowledge_ids": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "summary_model_id": {
- "type": "string"
- },
- "disable_title": {
- "type": "boolean"
- },
- "enable_memory": {
- "type": "boolean"
- }
- },
- "required": [
- "session_id",
- "query",
- "knowledge_base_ids",
- "knowledge_ids",
- "summary_model_id",
- "disable_title",
- "enable_memory"
- ]
- },
- "example": {
- "session_id": "",
- "query": "你好啊",
- "knowledge_base_ids": [],
- "knowledge_ids": [],
- "summary_model_id": "",
- "disable_title": false,
- "enable_memory": true
- }
- }
- },
- "required": true
- },
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {}
- }
- }
- },
- "headers": {}
- }
- },
- "security": []
- }
- },
- "/api/ai/chat/agent-chat": {
- "post": {
- "summary": "基于Agent的智能问答 (SSE)",
- "deprecated": false,
- "description": "",
- "tags": ["ai-chat"],
- "parameters": [
- {
- "name": "Authorization",
- "in": "header",
- "description": "",
- "example": "bpm_client_1513029045627916288",
- "schema": {
- "type": "string",
- "default": "bpm_client_1513029045627916288"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "session_id": {
- "type": "string"
- },
- "query": {
- "type": "string"
- },
- "knowledge_base_ids": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "knowledge_ids": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "agent_id": {
- "type": "string"
- },
- "summary_model_id": {
- "type": "string"
- },
- "disable_title": {
- "type": "boolean"
- },
- "enable_memory": {
- "type": "boolean"
- },
- "images": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "agent_enabled": {
- "type": "boolean"
- },
- "web_search_enabled": {
- "type": "boolean"
- }
- },
- "required": [
- "session_id",
- "query",
- "knowledge_base_ids",
- "knowledge_ids",
- "agent_id",
- "summary_model_id",
- "disable_title",
- "enable_memory",
- "images",
- "agent_enabled",
- "web_search_enabled"
- ]
- },
- "example": {
- "session_id": "",
- "query": "帮我分析一下图片中有哪些信息?",
- "knowledge_base_ids": [],
- "knowledge_ids": [],
- "agent_id": "builtin-smart-reasoning",
- "summary_model_id": "",
- "disable_title": false,
- "enable_memory": true,
- "images": ["f2048d34-0cee-4850-a280-70707f3d14e7"],
- "agent_enabled": true,
- "web_search_enabled": false
- }
- }
- },
- "required": true
- },
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {}
- }
- }
- },
- "headers": {}
- }
- },
- "security": []
- }
- },
- "/api/ai/chat/model-chat": {
- "post": {
- "summary": "基于模型聊天 (SSE)",
- "deprecated": false,
- "description": "",
- "tags": ["ai-chat"],
- "parameters": [
- {
- "name": "Authorization",
- "in": "header",
- "description": "",
- "example": "bpm_client_1513029045627916288",
- "schema": {
- "type": "string",
- "default": "bpm_client_1513029045627916288"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "session_id": {
- "type": "string"
- },
- "query": {
- "type": "string"
- },
- "summary_model_id": {
- "type": "string"
- },
- "disable_title": {
- "type": "boolean"
- },
- "enable_memory": {
- "type": "boolean"
- }
- },
- "required": [
- "session_id",
- "query",
- "summary_model_id",
- "disable_title",
- "enable_memory"
- ]
- },
- "example": {
- "session_id": "",
- "query": "你好啊",
- "summary_model_id": "ea1598d8-1578-4ce3-8898-c47981e00e2a",
- "disable_title": false,
- "enable_memory": true
- }
- }
- },
- "required": true
- },
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {}
- }
- }
- },
- "headers": {}
- }
- },
- "security": []
- }
- },
- "/api/ai/chat/workflow-chat": {
- "post": {
- "summary": "基于智能编排聊天",
- "deprecated": false,
- "description": "",
- "tags": ["ai-chat"],
- "parameters": [
- {
- "name": "Authorization",
- "in": "header",
- "description": "",
- "example": "bpm_backend_1523697930081406976",
- "schema": {
- "type": "string"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "session_id": {
- "type": "string"
- },
- "query": {
- "type": "string"
- },
- "agent_id": {
- "type": "string"
- },
- "files": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "params": {
- "type": "object",
- "properties": {}
- }
- },
- "required": ["session_id", "query", "agent_id", "files", "params"]
- },
- "examples": {
- "1": {
- "value": {
- "session_id": "c79a6c8b-8eb3-4f70-b528-e07aacb695c5",
- "query": "你好,你是谁?",
- "agent_id": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
- "files": [],
- "params": {}
- },
- "summary": "文本"
- },
- "2": {
- "value": {
- "session_id": "ecc13f07-ed31-424e-990c-d5cb53d16374",
- "query": "帮我分析一下图片中有哪些信息?",
- "knowledge_base_ids": [],
- "knowledge_ids": [],
- "agent_id": "7ccae457-69e2-4cf6-9335-a5d1fa052a2b",
- "summary_model_id": "",
- "disable_title": false,
- "enable_memory": true,
- "images": ["f2048d34-0cee-4850-a280-70707f3d14e7"],
- "agent_enabled": true,
- "web_search_enabled": false
- },
- "summary": "图片分析"
- }
- }
- }
- },
- "required": true
- },
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {}
- }
- }
- },
- "headers": {}
- }
- },
- "security": []
- }
- },
- "/api/ai/session/pageList": {
- "post": {
- "summary": "获取分页列表",
- "deprecated": false,
- "description": "",
- "tags": ["ai-chat"],
- "parameters": [
- {
- "name": "Authorization",
- "in": "header",
- "description": "",
- "example": "bpm_client_1513029045627916288",
- "schema": {
- "type": "string",
- "default": "bpm_client_1513029045627916288"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "pageIndex": {
- "type": "integer"
- },
- "pageSize": {
- "type": "integer"
- }
- },
- "required": ["pageIndex", "pageSize"]
- },
- "example": {
- "pageIndex": 1,
- "pageSize": 20
- }
- }
- },
- "required": true
- },
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "isSuccess": {
- "type": "boolean"
- },
- "code": {
- "type": "integer"
- },
- "result": {
- "type": "object",
- "properties": {
- "currentPage": {
- "type": "integer"
- },
- "hasNextPage": {
- "type": "boolean"
- },
- "hasPreviousPage": {
- "type": "boolean"
- },
- "model": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "app": {
- "type": "string"
- },
- "creationTime": {
- "type": "string"
- },
- "entityId": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "isDeleted": {
- "type": "boolean"
- },
- "name": {
- "type": "string"
- },
- "sessionId": {
- "type": "string"
- },
- "updateTime": {
- "type": "string"
- },
- "userId": {
- "type": "string"
- },
- "creatorUserId": {
- "type": "string"
- }
- },
- "required": [
- "app",
- "creationTime",
- "entityId",
- "id",
- "isDeleted",
- "name",
- "sessionId",
- "updateTime",
- "userId",
- "creatorUserId"
- ]
- }
- },
- "pageSize": {
- "type": "integer"
- },
- "totalCount": {
- "type": "integer"
- },
- "totalPages": {
- "type": "integer"
- }
- },
- "required": [
- "currentPage",
- "hasNextPage",
- "hasPreviousPage",
- "model",
- "pageSize",
- "totalCount",
- "totalPages"
- ]
- },
- "isAuthorized": {
- "type": "boolean"
- }
- },
- "required": ["isSuccess", "code", "result", "isAuthorized"]
- },
- "example": {
- "isSuccess": true,
- "code": 1,
- "result": {
- "currentPage": 1,
- "hasNextPage": true,
- "hasPreviousPage": false,
- "model": [
- {
- "app": "ShaLu",
- "creationTime": "2026-05-17 09:49:34",
- "entityId": "Global",
- "id": "965e68f8-4947-45d4-a800-df7c4e1ed7ea",
- "isDeleted": false,
- "name": "修改会话名称",
- "sessionId": "ea9e1f06-0017-4544-b769-2d2d7b5ac3ec",
- "updateTime": "2026-05-17 09:54:29",
- "userId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993"
- },
- {
- "app": "shalu",
- "creationTime": "2026-05-16 14:17:23",
- "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
- "entityId": "GLOBAL",
- "id": "84434a22-24ac-4d6b-a0c6-f08cdba0cc03",
- "isDeleted": false,
- "name": "新的会话",
- "sessionId": "45e3b97e-dc67-486a-aeac-87093f5727ba",
- "updateTime": "2026-05-16 14:17:23",
- "userId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993"
- },
- {
- "app": "shalu",
- "creationTime": "2026-05-16 14:05:51",
- "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
- "entityId": "GLOBAL",
- "id": "29026a3d-6dd7-4cd9-9dae-755439b81fae",
- "isDeleted": false,
- "name": "新的会话",
- "sessionId": "6cae1573-f97b-4423-8df5-c4a62b3ca87a",
- "updateTime": "2026-05-16 14:05:51",
- "userId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993"
- },
- {
- "app": "shalu",
- "creationTime": "2026-05-16 14:04:43",
- "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
- "entityId": "GLOBAL",
- "id": "5309f00d-6ff4-468c-bde1-140aeab5cb63",
- "isDeleted": false,
- "name": "新的会话",
- "sessionId": "95ed68d9-9e62-427a-bfe0-c70531fcc482",
- "updateTime": "2026-05-16 14:04:43",
- "userId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993"
- },
- {
- "app": "shalu",
- "creationTime": "2026-05-16 13:53:01",
- "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
- "entityId": "GLOBAL",
- "id": "acb4b3cf-2fe3-462d-9727-c9c41177edd8",
- "isDeleted": false,
- "name": "新的会话",
- "sessionId": "714836a0-3f1b-47af-87e9-81c46024c9c5",
- "updateTime": "2026-05-16 13:53:01",
- "userId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993"
- }
- ],
- "pageSize": 20,
- "totalCount": 5,
- "totalPages": 1
- },
- "isAuthorized": true
- }
- }
- },
- "headers": {}
- }
- },
- "security": []
- }
- },
- "/api/ai/session/sessionMessages": {
- "post": {
- "summary": "获取消息分页列表",
- "deprecated": false,
- "description": "",
- "tags": ["ai-chat"],
- "parameters": [
- {
- "name": "Authorization",
- "in": "header",
- "description": "",
- "example": "bpm_client_1513029045627916288",
- "schema": {
- "type": "string",
- "default": "bpm_client_1513029045627916288"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "sessionId": {
- "type": "string"
- },
- "pageIndex": {
- "type": "integer"
- },
- "pageSize": {
- "type": "integer"
- }
- },
- "required": ["sessionId", "pageIndex", "pageSize"]
- },
- "example": {
- "sessionId": "d24107a9-2a6f-4a8e-a95d-45a14f936db1",
- "pageIndex": 1,
- "pageSize": 20
- }
- }
- },
- "required": true
- },
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "isSuccess": {
- "type": "boolean"
- },
- "code": {
- "type": "integer"
- },
- "result": {
- "type": "object",
- "properties": {
- "currentPage": {
- "type": "integer"
- },
- "hasNextPage": {
- "type": "boolean"
- },
- "hasPreviousPage": {
- "type": "boolean"
- },
- "model": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "answer": {
- "type": "string"
- },
- "app": {
- "type": "string"
- },
- "creationTime": {
- "type": "string"
- },
- "creatorUserId": {
- "type": "string"
- },
- "entityId": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "isDeleted": {
- "type": "boolean"
- },
- "message_files": {
- "type": "string"
- },
- "msgId": {
- "type": "string"
- },
- "query": {
- "type": "string"
- },
- "sessionId": {
- "type": "string"
- },
- "taskId": {
- "type": "string"
- },
- "updateTime": {
- "type": "string"
- },
- "userId": {
- "type": "string"
- }
- }
- }
- },
- "pageSize": {
- "type": "integer"
- },
- "totalCount": {
- "type": "integer"
- },
- "totalPages": {
- "type": "integer"
- }
- },
- "required": [
- "currentPage",
- "hasNextPage",
- "hasPreviousPage",
- "model",
- "pageSize",
- "totalCount",
- "totalPages"
- ]
- },
- "isAuthorized": {
- "type": "boolean"
- }
- },
- "required": ["isSuccess", "code", "result", "isAuthorized"]
- },
- "example": {
- "isSuccess": true,
- "code": 1,
- "result": {
- "currentPage": 1,
- "hasNextPage": true,
- "hasPreviousPage": false,
- "model": [
- {
- "answer": "根据您提供的图片描述,我为您分析出以下信息:\n\n## 一、游戏核心信息\n1. **游戏名称**:《黑神话:悟空》\n2. **主要角色**:悟空(孙悟空)\n3. **游戏场景**:雪地背景,人物持械站立,可能是游戏中的战斗或探索场景\n\n## 二、发行与平台信息\n1. **开发商**:游戏科学(Game Science)\n2. **发行平台**:WeGame(腾讯游戏平台)\n3. **版本信息**:豪华版(Deluxe Edition)\n\n## 三、用户状态信息\n1. **用户身份**:码神(可能是用户名或昵称)\n2. **拥有状态**:已拥有《黑神话:悟空》豪华版\n3. **获取方式**:通过WeGame平台购买或获得\n\n## 四、时间信息\n1. **记录时间**:2024年10月3日 11:36\n2. **时间意义**:可能是购买时间、截图时间或成就解锁时间\n\n## 五、视觉设计元素\n1. **左上角标识**:游戏科学和WeGame的logo组合\n2. **右上角文字**:\"悟 空\"字样,采用艺术字体设计\n3. **右侧印章**:红底黑字印章样式图案,具有中国传统文化特色\n4. **整体色调**:以雪地白色为背景,与游戏主题相呼应\n\n## 六、功能元素\n1. **二维码**:位于图片底部,可能用于:\n - 游戏下载链接\n - 分享功能\n - 社区或社交平台跳转\n - 验证或兑换功能\n\n## 七、信息层级分析\n1. **一级信息**(最显眼):游戏名称、角色形象\n2. **二级信息**(重要标识):开发商、平台、版本\n3. **三级信息**(用户相关):拥有状态、时间、用户ID\n4. **四级信息**(功能元素):二维码\n\n## 八、潜在用途推断\n这张图片可能是:\n1. **购买确认截图**:显示用户在WeGame平台成功购买豪华版\n2. **成就分享图**:展示用户已获得该游戏豪华版\n3. **宣传素材**:结合用户个性化信息的宣传图片\n4. **社区分享内容**:用于游戏社区或社交平台分享\n\n这张图片包含了从游戏基本信息到用户个性化数据的完整链条,既展示了游戏本身的特色,也体现了平台与用户的交互关系。",
- "app": "ShaLu",
- "creationTime": "2026-05-17 11:00:43",
- "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
- "entityId": "Global",
- "id": "ebdb16da-cfa2-488f-9cc7-44d241349457",
- "isDeleted": false,
- "message_files": "f2048d34-0cee-4850-a280-70707f3d14e7",
- "msgId": "",
- "query": "帮我分析一下图片中有哪些信息?",
- "sessionId": "d24107a9-2a6f-4a8e-a95d-45a14f936db1",
- "taskId": "",
- "updateTime": "2026-05-17 11:00:43",
- "userId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993"
- }
- ],
- "pageSize": 20,
- "totalCount": 1,
- "totalPages": 1
- },
- "isAuthorized": true
- }
- }
- },
- "headers": {}
- }
- },
- "security": []
- }
- },
- "/api/ai/session/create": {
- "post": {
- "summary": "创建会话",
- "deprecated": false,
- "description": "",
- "tags": ["ai-chat"],
- "parameters": [
- {
- "name": "Authorization",
- "in": "header",
- "description": "",
- "example": "bpm_client_1513029045627916288",
- "schema": {
- "type": "string",
- "default": "bpm_client_1513029045627916288"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- }
- },
- "required": ["name"]
- },
- "example": "{\r\n \"name\": \"\",\r\n}"
- }
- },
- "required": true
- },
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "isSuccess": {
- "type": "boolean"
- },
- "code": {
- "type": "integer"
- },
- "result": {
- "type": "string"
- },
- "isAuthorized": {
- "type": "boolean"
- }
- },
- "required": ["isSuccess", "code", "result", "isAuthorized"]
- },
- "example": {
- "isSuccess": true,
- "code": 1,
- "result": "965e68f8-4947-45d4-a800-df7c4e1ed7ea",
- "isAuthorized": true
- }
- }
- },
- "headers": {}
- }
- },
- "security": []
- }
- },
- "/api/ai/session/update": {
- "post": {
- "summary": "更新会话",
- "deprecated": false,
- "description": "",
- "tags": ["ai-chat"],
- "parameters": [
- {
- "name": "Authorization",
- "in": "header",
- "description": "",
- "example": "bpm_client_1513029045627916288",
- "schema": {
- "type": "string",
- "default": "bpm_client_1513029045627916288"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": ["id", "name"]
- },
- "example": {
- "id": "965e68f8-4947-45d4-a800-df7c4e1ed7ea",
- "name": "修改会话名称"
- }
- }
- },
- "required": true
- },
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "isSuccess": {
- "type": "boolean"
- },
- "code": {
- "type": "integer"
- },
- "isAuthorized": {
- "type": "boolean"
- }
- },
- "required": ["isSuccess", "code", "isAuthorized"]
- },
- "example": {
- "isSuccess": true,
- "code": 1,
- "isAuthorized": true
- }
- }
- },
- "headers": {}
- }
- },
- "security": []
- }
- },
- "/api/ai/session/delete": {
- "post": {
- "summary": "删除会话",
- "deprecated": false,
- "description": "",
- "tags": ["ai-chat"],
- "parameters": [
- {
- "name": "Authorization",
- "in": "header",
- "description": "",
- "example": "bpm_client_1513029045627916288",
- "schema": {
- "type": "string",
- "default": "bpm_client_1513029045627916288"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- }
- },
- "required": ["id"]
- },
- "example": {
- "id": "49b47841-7f5d-4899-adfb-358198543308"
- }
- }
- },
- "required": true
- },
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "isSuccess": {
- "type": "boolean"
- },
- "code": {
- "type": "integer"
- },
- "isAuthorized": {
- "type": "boolean"
- }
- },
- "required": ["isSuccess", "code", "isAuthorized"]
- },
- "example": {
- "isSuccess": true,
- "code": 1,
- "isAuthorized": true
- }
- }
- },
- "headers": {}
- }
- },
- "security": []
- }
- }
- },
- "components": {
- "schemas": {
- "AgentNode": {
- "type": "object",
- "properties": {
- "appAgentId": {
- "type": "string",
- "format": "uuid"
- },
- "creationTime": {
- "type": "string",
- "format": "date-time"
- },
- "creatorUserId": {
- "type": "string",
- "format": "uuid"
- },
- "data": {
- "$ref": "#/components/schemas/NodeData"
- },
- "height": {
- "type": "integer"
- },
- "id": {
- "type": "string",
- "format": "uuid"
- },
- "isDeleted": {
- "type": "boolean"
- },
- "position": {
- "type": "object",
- "properties": {
- "x": {
- "type": "integer"
- },
- "y": {
- "type": "integer"
- }
- },
- "required": ["x", "y"]
- },
- "selected": {
- "type": "boolean"
- },
- "type": {
- "type": "string",
- "enum": ["custom", "start", "end", "condition", "task", "http-request"]
- },
- "updateTime": {
- "type": "string",
- "format": "date-time"
- },
- "width": {
- "type": "integer"
- },
- "zIndex": {
- "type": "integer"
- }
- },
- "required": [
- "appAgentId",
- "creationTime",
- "creatorUserId",
- "data",
- "id",
- "position",
- "type"
- ]
- },
- "NodeData": {
- "type": "object",
- "properties": {
- "outputs": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "describe": {
- "type": "string"
- },
- "type": {
- "type": "string",
- "enum": ["string", "number", "boolean", "object", "array"]
- }
- },
- "required": ["name", "describe", "type"]
- }
- },
- "output_can_alter": {
- "type": "boolean"
- },
- "variables": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "method": {
- "type": "string",
- "enum": ["get", "post", "put", "delete", "patch", "head", "options"]
- },
- "ssl_verify": {
- "type": "boolean"
- },
- "isInIteration": {
- "type": "boolean"
- },
- "default_value": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "body": {
- "$ref": "#/components/schemas/RequestBody"
- },
- "params": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "title": {
- "type": "string"
- },
- "type": {
- "type": "string",
- "enum": ["http-request", "condition", "task"]
- },
- "error_strategy": {
- "type": "string",
- "enum": ["none", "retry", "abort", "continue"]
- },
- "retry_config": {
- "type": "object",
- "properties": {
- "max_retries": {
- "type": "integer",
- "minimum": 0,
- "maximum": 10
- },
- "retry_enabled": {
- "type": "boolean"
- },
- "retry_interval": {
- "type": "integer",
- "minimum": 0,
- "maximum": 5000
- }
- },
- "required": ["max_retries", "retry_enabled", "retry_interval"]
- },
- "url": {
- "type": "string",
- "format": "uri"
- },
- "authorization": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "enum": ["none", "bearer", "basic", "api-key"]
- },
- "config": {
- "type": "object",
- "properties": {
- "api_key": {
- "type": "string"
- },
- "header": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- }
- },
- "required": ["type", "config"]
- },
- "timeout_config": {
- "type": "object",
- "properties": {
- "max_write_timeout": {
- "type": "integer",
- "minimum": 0
- },
- "max_read_timeout": {
- "type": "integer",
- "minimum": 0
- },
- "max_connect_timeout": {
- "type": "integer",
- "minimum": 0
- }
- },
- "required": ["max_write_timeout", "max_read_timeout", "max_connect_timeout"]
- },
- "heads": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/HttpHeader"
- }
- },
- "selected": {
- "type": "boolean"
- },
- "desc": {
- "type": "string"
- },
- "isInLoop": {
- "type": "boolean"
- }
- },
- "required": ["outputs", "method", "title", "type", "url"]
- },
- "RequestBody": {
- "type": "object",
- "properties": {
- "data": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/RequestDataItem"
- }
- },
- "type": {
- "type": "string",
- "enum": ["json", "form-data", "x-www-form-urlencoded", "raw", "binary"]
- }
- },
- "required": ["data", "type"]
- },
- "RequestDataItem": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "enum": ["text", "file", "json"]
- },
- "value": {
- "type": "string"
- },
- "key": {
- "type": "string"
- }
- },
- "required": ["type", "value"]
- },
- "HttpHeader": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "value": {
- "type": "string"
- }
- },
- "required": ["name", "value"]
- }
- },
- "securitySchemes": {
- "ApiKeyAuth": {
- "type": "apiKey",
- "in": "header",
- "name": "Authorization"
- }
- }
- },
- "security": [
- {
- "ApiKeyAuth": []
- }
- ]
- }
|