ai.openapi.json 33 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378
  1. {
  2. "openapi": "3.0.3",
  3. "info": {
  4. "title": "默认模块",
  5. "description": "",
  6. "version": "1.0.0"
  7. },
  8. "servers": [
  9. {
  10. "url": "/",
  11. "description": "默认服务器"
  12. }
  13. ],
  14. "tags": [
  15. {
  16. "name": "ai-chat",
  17. "description": "ai对话相关接口"
  18. }
  19. ],
  20. "paths": {
  21. "/api/ai/chat/stop-answer": {
  22. "post": {
  23. "summary": "停止会话",
  24. "deprecated": false,
  25. "description": "",
  26. "tags": ["ai-chat"],
  27. "parameters": [
  28. {
  29. "name": "Authorization",
  30. "in": "header",
  31. "description": "",
  32. "example": "bpm_client_1519719271393923072",
  33. "schema": {
  34. "type": "string"
  35. }
  36. }
  37. ],
  38. "requestBody": {
  39. "content": {
  40. "application/json": {
  41. "schema": {
  42. "type": "object",
  43. "properties": {
  44. "session_id": {
  45. "type": "string"
  46. },
  47. "msgId": {
  48. "type": "string"
  49. }
  50. },
  51. "required": ["session_id", "msgId"]
  52. },
  53. "example": {
  54. "session_id": "3c22a2e6-0058-49db-a24c-df1c99fd4918",
  55. "msgId": "cbd27e13-ae9b-4772-a394-81a0c55045eb"
  56. }
  57. }
  58. },
  59. "required": true
  60. },
  61. "responses": {
  62. "200": {
  63. "description": "",
  64. "content": {
  65. "application/json": {
  66. "schema": {
  67. "type": "object",
  68. "properties": {
  69. "isSuccess": {
  70. "type": "boolean"
  71. },
  72. "code": {
  73. "type": "integer"
  74. },
  75. "isAuthorized": {
  76. "type": "boolean"
  77. }
  78. },
  79. "required": ["isSuccess", "code", "isAuthorized"]
  80. },
  81. "example": {
  82. "isSuccess": true,
  83. "code": 1,
  84. "isAuthorized": true
  85. }
  86. }
  87. },
  88. "headers": {}
  89. }
  90. },
  91. "security": []
  92. }
  93. },
  94. "/api/ai/chat/knowledge-chat": {
  95. "post": {
  96. "summary": "基于知识库的问答 (SSE)",
  97. "deprecated": false,
  98. "description": "",
  99. "tags": ["ai-chat"],
  100. "parameters": [
  101. {
  102. "name": "Authorization",
  103. "in": "header",
  104. "description": "",
  105. "example": "bpm_client_1513029045627916288",
  106. "schema": {
  107. "type": "string",
  108. "default": "bpm_client_1513029045627916288"
  109. }
  110. }
  111. ],
  112. "requestBody": {
  113. "content": {
  114. "application/json": {
  115. "schema": {
  116. "type": "object",
  117. "properties": {
  118. "session_id": {
  119. "type": "string"
  120. },
  121. "query": {
  122. "type": "string"
  123. },
  124. "knowledge_base_ids": {
  125. "type": "array",
  126. "items": {
  127. "type": "string"
  128. }
  129. },
  130. "knowledge_ids": {
  131. "type": "array",
  132. "items": {
  133. "type": "string"
  134. }
  135. },
  136. "summary_model_id": {
  137. "type": "string"
  138. },
  139. "disable_title": {
  140. "type": "boolean"
  141. },
  142. "enable_memory": {
  143. "type": "boolean"
  144. }
  145. },
  146. "required": [
  147. "session_id",
  148. "query",
  149. "knowledge_base_ids",
  150. "knowledge_ids",
  151. "summary_model_id",
  152. "disable_title",
  153. "enable_memory"
  154. ]
  155. },
  156. "example": {
  157. "session_id": "",
  158. "query": "你好啊",
  159. "knowledge_base_ids": [],
  160. "knowledge_ids": [],
  161. "summary_model_id": "",
  162. "disable_title": false,
  163. "enable_memory": true
  164. }
  165. }
  166. },
  167. "required": true
  168. },
  169. "responses": {
  170. "200": {
  171. "description": "",
  172. "content": {
  173. "application/json": {
  174. "schema": {
  175. "type": "object",
  176. "properties": {}
  177. }
  178. }
  179. },
  180. "headers": {}
  181. }
  182. },
  183. "security": []
  184. }
  185. },
  186. "/api/ai/chat/agent-chat": {
  187. "post": {
  188. "summary": "基于Agent的智能问答 (SSE)",
  189. "deprecated": false,
  190. "description": "",
  191. "tags": ["ai-chat"],
  192. "parameters": [
  193. {
  194. "name": "Authorization",
  195. "in": "header",
  196. "description": "",
  197. "example": "bpm_client_1513029045627916288",
  198. "schema": {
  199. "type": "string",
  200. "default": "bpm_client_1513029045627916288"
  201. }
  202. }
  203. ],
  204. "requestBody": {
  205. "content": {
  206. "application/json": {
  207. "schema": {
  208. "type": "object",
  209. "properties": {
  210. "session_id": {
  211. "type": "string"
  212. },
  213. "query": {
  214. "type": "string"
  215. },
  216. "knowledge_base_ids": {
  217. "type": "array",
  218. "items": {
  219. "type": "string"
  220. }
  221. },
  222. "knowledge_ids": {
  223. "type": "array",
  224. "items": {
  225. "type": "string"
  226. }
  227. },
  228. "agent_id": {
  229. "type": "string"
  230. },
  231. "summary_model_id": {
  232. "type": "string"
  233. },
  234. "disable_title": {
  235. "type": "boolean"
  236. },
  237. "enable_memory": {
  238. "type": "boolean"
  239. },
  240. "images": {
  241. "type": "array",
  242. "items": {
  243. "type": "string"
  244. }
  245. },
  246. "agent_enabled": {
  247. "type": "boolean"
  248. },
  249. "web_search_enabled": {
  250. "type": "boolean"
  251. }
  252. },
  253. "required": [
  254. "session_id",
  255. "query",
  256. "knowledge_base_ids",
  257. "knowledge_ids",
  258. "agent_id",
  259. "summary_model_id",
  260. "disable_title",
  261. "enable_memory",
  262. "images",
  263. "agent_enabled",
  264. "web_search_enabled"
  265. ]
  266. },
  267. "example": {
  268. "session_id": "",
  269. "query": "帮我分析一下图片中有哪些信息?",
  270. "knowledge_base_ids": [],
  271. "knowledge_ids": [],
  272. "agent_id": "builtin-smart-reasoning",
  273. "summary_model_id": "",
  274. "disable_title": false,
  275. "enable_memory": true,
  276. "images": ["f2048d34-0cee-4850-a280-70707f3d14e7"],
  277. "agent_enabled": true,
  278. "web_search_enabled": false
  279. }
  280. }
  281. },
  282. "required": true
  283. },
  284. "responses": {
  285. "200": {
  286. "description": "",
  287. "content": {
  288. "application/json": {
  289. "schema": {
  290. "type": "object",
  291. "properties": {}
  292. }
  293. }
  294. },
  295. "headers": {}
  296. }
  297. },
  298. "security": []
  299. }
  300. },
  301. "/api/ai/chat/model-chat": {
  302. "post": {
  303. "summary": "基于模型聊天 (SSE)",
  304. "deprecated": false,
  305. "description": "",
  306. "tags": ["ai-chat"],
  307. "parameters": [
  308. {
  309. "name": "Authorization",
  310. "in": "header",
  311. "description": "",
  312. "example": "bpm_client_1513029045627916288",
  313. "schema": {
  314. "type": "string",
  315. "default": "bpm_client_1513029045627916288"
  316. }
  317. }
  318. ],
  319. "requestBody": {
  320. "content": {
  321. "application/json": {
  322. "schema": {
  323. "type": "object",
  324. "properties": {
  325. "session_id": {
  326. "type": "string"
  327. },
  328. "query": {
  329. "type": "string"
  330. },
  331. "summary_model_id": {
  332. "type": "string"
  333. },
  334. "disable_title": {
  335. "type": "boolean"
  336. },
  337. "enable_memory": {
  338. "type": "boolean"
  339. }
  340. },
  341. "required": [
  342. "session_id",
  343. "query",
  344. "summary_model_id",
  345. "disable_title",
  346. "enable_memory"
  347. ]
  348. },
  349. "example": {
  350. "session_id": "",
  351. "query": "你好啊",
  352. "summary_model_id": "ea1598d8-1578-4ce3-8898-c47981e00e2a",
  353. "disable_title": false,
  354. "enable_memory": true
  355. }
  356. }
  357. },
  358. "required": true
  359. },
  360. "responses": {
  361. "200": {
  362. "description": "",
  363. "content": {
  364. "application/json": {
  365. "schema": {
  366. "type": "object",
  367. "properties": {}
  368. }
  369. }
  370. },
  371. "headers": {}
  372. }
  373. },
  374. "security": []
  375. }
  376. },
  377. "/api/ai/chat/workflow-chat": {
  378. "post": {
  379. "summary": "基于智能编排聊天",
  380. "deprecated": false,
  381. "description": "",
  382. "tags": ["ai-chat"],
  383. "parameters": [
  384. {
  385. "name": "Authorization",
  386. "in": "header",
  387. "description": "",
  388. "example": "bpm_backend_1523697930081406976",
  389. "schema": {
  390. "type": "string"
  391. }
  392. }
  393. ],
  394. "requestBody": {
  395. "content": {
  396. "application/json": {
  397. "schema": {
  398. "type": "object",
  399. "properties": {
  400. "session_id": {
  401. "type": "string"
  402. },
  403. "query": {
  404. "type": "string"
  405. },
  406. "agent_id": {
  407. "type": "string"
  408. },
  409. "files": {
  410. "type": "array",
  411. "items": {
  412. "type": "string"
  413. }
  414. },
  415. "params": {
  416. "type": "object",
  417. "properties": {}
  418. }
  419. },
  420. "required": ["session_id", "query", "agent_id", "files", "params"]
  421. },
  422. "examples": {
  423. "1": {
  424. "value": {
  425. "session_id": "c79a6c8b-8eb3-4f70-b528-e07aacb695c5",
  426. "query": "你好,你是谁?",
  427. "agent_id": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  428. "files": [],
  429. "params": {}
  430. },
  431. "summary": "文本"
  432. },
  433. "2": {
  434. "value": {
  435. "session_id": "ecc13f07-ed31-424e-990c-d5cb53d16374",
  436. "query": "帮我分析一下图片中有哪些信息?",
  437. "knowledge_base_ids": [],
  438. "knowledge_ids": [],
  439. "agent_id": "7ccae457-69e2-4cf6-9335-a5d1fa052a2b",
  440. "summary_model_id": "",
  441. "disable_title": false,
  442. "enable_memory": true,
  443. "images": ["f2048d34-0cee-4850-a280-70707f3d14e7"],
  444. "agent_enabled": true,
  445. "web_search_enabled": false
  446. },
  447. "summary": "图片分析"
  448. }
  449. }
  450. }
  451. },
  452. "required": true
  453. },
  454. "responses": {
  455. "200": {
  456. "description": "",
  457. "content": {
  458. "application/json": {
  459. "schema": {
  460. "type": "object",
  461. "properties": {}
  462. }
  463. }
  464. },
  465. "headers": {}
  466. }
  467. },
  468. "security": []
  469. }
  470. },
  471. "/api/ai/session/pageList": {
  472. "post": {
  473. "summary": "获取分页列表",
  474. "deprecated": false,
  475. "description": "",
  476. "tags": ["ai-chat"],
  477. "parameters": [
  478. {
  479. "name": "Authorization",
  480. "in": "header",
  481. "description": "",
  482. "example": "bpm_client_1513029045627916288",
  483. "schema": {
  484. "type": "string",
  485. "default": "bpm_client_1513029045627916288"
  486. }
  487. }
  488. ],
  489. "requestBody": {
  490. "content": {
  491. "application/json": {
  492. "schema": {
  493. "type": "object",
  494. "properties": {
  495. "pageIndex": {
  496. "type": "integer"
  497. },
  498. "pageSize": {
  499. "type": "integer"
  500. }
  501. },
  502. "required": ["pageIndex", "pageSize"]
  503. },
  504. "example": {
  505. "pageIndex": 1,
  506. "pageSize": 20
  507. }
  508. }
  509. },
  510. "required": true
  511. },
  512. "responses": {
  513. "200": {
  514. "description": "",
  515. "content": {
  516. "application/json": {
  517. "schema": {
  518. "type": "object",
  519. "properties": {
  520. "isSuccess": {
  521. "type": "boolean"
  522. },
  523. "code": {
  524. "type": "integer"
  525. },
  526. "result": {
  527. "type": "object",
  528. "properties": {
  529. "currentPage": {
  530. "type": "integer"
  531. },
  532. "hasNextPage": {
  533. "type": "boolean"
  534. },
  535. "hasPreviousPage": {
  536. "type": "boolean"
  537. },
  538. "model": {
  539. "type": "array",
  540. "items": {
  541. "type": "object",
  542. "properties": {
  543. "app": {
  544. "type": "string"
  545. },
  546. "creationTime": {
  547. "type": "string"
  548. },
  549. "entityId": {
  550. "type": "string"
  551. },
  552. "id": {
  553. "type": "string"
  554. },
  555. "isDeleted": {
  556. "type": "boolean"
  557. },
  558. "name": {
  559. "type": "string"
  560. },
  561. "sessionId": {
  562. "type": "string"
  563. },
  564. "updateTime": {
  565. "type": "string"
  566. },
  567. "userId": {
  568. "type": "string"
  569. },
  570. "creatorUserId": {
  571. "type": "string"
  572. }
  573. },
  574. "required": [
  575. "app",
  576. "creationTime",
  577. "entityId",
  578. "id",
  579. "isDeleted",
  580. "name",
  581. "sessionId",
  582. "updateTime",
  583. "userId",
  584. "creatorUserId"
  585. ]
  586. }
  587. },
  588. "pageSize": {
  589. "type": "integer"
  590. },
  591. "totalCount": {
  592. "type": "integer"
  593. },
  594. "totalPages": {
  595. "type": "integer"
  596. }
  597. },
  598. "required": [
  599. "currentPage",
  600. "hasNextPage",
  601. "hasPreviousPage",
  602. "model",
  603. "pageSize",
  604. "totalCount",
  605. "totalPages"
  606. ]
  607. },
  608. "isAuthorized": {
  609. "type": "boolean"
  610. }
  611. },
  612. "required": ["isSuccess", "code", "result", "isAuthorized"]
  613. },
  614. "example": {
  615. "isSuccess": true,
  616. "code": 1,
  617. "result": {
  618. "currentPage": 1,
  619. "hasNextPage": true,
  620. "hasPreviousPage": false,
  621. "model": [
  622. {
  623. "app": "ShaLu",
  624. "creationTime": "2026-05-17 09:49:34",
  625. "entityId": "Global",
  626. "id": "965e68f8-4947-45d4-a800-df7c4e1ed7ea",
  627. "isDeleted": false,
  628. "name": "修改会话名称",
  629. "sessionId": "ea9e1f06-0017-4544-b769-2d2d7b5ac3ec",
  630. "updateTime": "2026-05-17 09:54:29",
  631. "userId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993"
  632. },
  633. {
  634. "app": "shalu",
  635. "creationTime": "2026-05-16 14:17:23",
  636. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  637. "entityId": "GLOBAL",
  638. "id": "84434a22-24ac-4d6b-a0c6-f08cdba0cc03",
  639. "isDeleted": false,
  640. "name": "新的会话",
  641. "sessionId": "45e3b97e-dc67-486a-aeac-87093f5727ba",
  642. "updateTime": "2026-05-16 14:17:23",
  643. "userId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993"
  644. },
  645. {
  646. "app": "shalu",
  647. "creationTime": "2026-05-16 14:05:51",
  648. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  649. "entityId": "GLOBAL",
  650. "id": "29026a3d-6dd7-4cd9-9dae-755439b81fae",
  651. "isDeleted": false,
  652. "name": "新的会话",
  653. "sessionId": "6cae1573-f97b-4423-8df5-c4a62b3ca87a",
  654. "updateTime": "2026-05-16 14:05:51",
  655. "userId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993"
  656. },
  657. {
  658. "app": "shalu",
  659. "creationTime": "2026-05-16 14:04:43",
  660. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  661. "entityId": "GLOBAL",
  662. "id": "5309f00d-6ff4-468c-bde1-140aeab5cb63",
  663. "isDeleted": false,
  664. "name": "新的会话",
  665. "sessionId": "95ed68d9-9e62-427a-bfe0-c70531fcc482",
  666. "updateTime": "2026-05-16 14:04:43",
  667. "userId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993"
  668. },
  669. {
  670. "app": "shalu",
  671. "creationTime": "2026-05-16 13:53:01",
  672. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  673. "entityId": "GLOBAL",
  674. "id": "acb4b3cf-2fe3-462d-9727-c9c41177edd8",
  675. "isDeleted": false,
  676. "name": "新的会话",
  677. "sessionId": "714836a0-3f1b-47af-87e9-81c46024c9c5",
  678. "updateTime": "2026-05-16 13:53:01",
  679. "userId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993"
  680. }
  681. ],
  682. "pageSize": 20,
  683. "totalCount": 5,
  684. "totalPages": 1
  685. },
  686. "isAuthorized": true
  687. }
  688. }
  689. },
  690. "headers": {}
  691. }
  692. },
  693. "security": []
  694. }
  695. },
  696. "/api/ai/session/sessionMessages": {
  697. "post": {
  698. "summary": "获取消息分页列表",
  699. "deprecated": false,
  700. "description": "",
  701. "tags": ["ai-chat"],
  702. "parameters": [
  703. {
  704. "name": "Authorization",
  705. "in": "header",
  706. "description": "",
  707. "example": "bpm_client_1513029045627916288",
  708. "schema": {
  709. "type": "string",
  710. "default": "bpm_client_1513029045627916288"
  711. }
  712. }
  713. ],
  714. "requestBody": {
  715. "content": {
  716. "application/json": {
  717. "schema": {
  718. "type": "object",
  719. "properties": {
  720. "sessionId": {
  721. "type": "string"
  722. },
  723. "pageIndex": {
  724. "type": "integer"
  725. },
  726. "pageSize": {
  727. "type": "integer"
  728. }
  729. },
  730. "required": ["sessionId", "pageIndex", "pageSize"]
  731. },
  732. "example": {
  733. "sessionId": "d24107a9-2a6f-4a8e-a95d-45a14f936db1",
  734. "pageIndex": 1,
  735. "pageSize": 20
  736. }
  737. }
  738. },
  739. "required": true
  740. },
  741. "responses": {
  742. "200": {
  743. "description": "",
  744. "content": {
  745. "application/json": {
  746. "schema": {
  747. "type": "object",
  748. "properties": {
  749. "isSuccess": {
  750. "type": "boolean"
  751. },
  752. "code": {
  753. "type": "integer"
  754. },
  755. "result": {
  756. "type": "object",
  757. "properties": {
  758. "currentPage": {
  759. "type": "integer"
  760. },
  761. "hasNextPage": {
  762. "type": "boolean"
  763. },
  764. "hasPreviousPage": {
  765. "type": "boolean"
  766. },
  767. "model": {
  768. "type": "array",
  769. "items": {
  770. "type": "object",
  771. "properties": {
  772. "answer": {
  773. "type": "string"
  774. },
  775. "app": {
  776. "type": "string"
  777. },
  778. "creationTime": {
  779. "type": "string"
  780. },
  781. "creatorUserId": {
  782. "type": "string"
  783. },
  784. "entityId": {
  785. "type": "string"
  786. },
  787. "id": {
  788. "type": "string"
  789. },
  790. "isDeleted": {
  791. "type": "boolean"
  792. },
  793. "message_files": {
  794. "type": "string"
  795. },
  796. "msgId": {
  797. "type": "string"
  798. },
  799. "query": {
  800. "type": "string"
  801. },
  802. "sessionId": {
  803. "type": "string"
  804. },
  805. "taskId": {
  806. "type": "string"
  807. },
  808. "updateTime": {
  809. "type": "string"
  810. },
  811. "userId": {
  812. "type": "string"
  813. }
  814. }
  815. }
  816. },
  817. "pageSize": {
  818. "type": "integer"
  819. },
  820. "totalCount": {
  821. "type": "integer"
  822. },
  823. "totalPages": {
  824. "type": "integer"
  825. }
  826. },
  827. "required": [
  828. "currentPage",
  829. "hasNextPage",
  830. "hasPreviousPage",
  831. "model",
  832. "pageSize",
  833. "totalCount",
  834. "totalPages"
  835. ]
  836. },
  837. "isAuthorized": {
  838. "type": "boolean"
  839. }
  840. },
  841. "required": ["isSuccess", "code", "result", "isAuthorized"]
  842. },
  843. "example": {
  844. "isSuccess": true,
  845. "code": 1,
  846. "result": {
  847. "currentPage": 1,
  848. "hasNextPage": true,
  849. "hasPreviousPage": false,
  850. "model": [
  851. {
  852. "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这张图片包含了从游戏基本信息到用户个性化数据的完整链条,既展示了游戏本身的特色,也体现了平台与用户的交互关系。",
  853. "app": "ShaLu",
  854. "creationTime": "2026-05-17 11:00:43",
  855. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  856. "entityId": "Global",
  857. "id": "ebdb16da-cfa2-488f-9cc7-44d241349457",
  858. "isDeleted": false,
  859. "message_files": "f2048d34-0cee-4850-a280-70707f3d14e7",
  860. "msgId": "",
  861. "query": "帮我分析一下图片中有哪些信息?",
  862. "sessionId": "d24107a9-2a6f-4a8e-a95d-45a14f936db1",
  863. "taskId": "",
  864. "updateTime": "2026-05-17 11:00:43",
  865. "userId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993"
  866. }
  867. ],
  868. "pageSize": 20,
  869. "totalCount": 1,
  870. "totalPages": 1
  871. },
  872. "isAuthorized": true
  873. }
  874. }
  875. },
  876. "headers": {}
  877. }
  878. },
  879. "security": []
  880. }
  881. },
  882. "/api/ai/session/create": {
  883. "post": {
  884. "summary": "创建会话",
  885. "deprecated": false,
  886. "description": "",
  887. "tags": ["ai-chat"],
  888. "parameters": [
  889. {
  890. "name": "Authorization",
  891. "in": "header",
  892. "description": "",
  893. "example": "bpm_client_1513029045627916288",
  894. "schema": {
  895. "type": "string",
  896. "default": "bpm_client_1513029045627916288"
  897. }
  898. }
  899. ],
  900. "requestBody": {
  901. "content": {
  902. "application/json": {
  903. "schema": {
  904. "type": "object",
  905. "properties": {
  906. "name": {
  907. "type": "string"
  908. }
  909. },
  910. "required": ["name"]
  911. },
  912. "example": "{\r\n \"name\": \"\",\r\n}"
  913. }
  914. },
  915. "required": true
  916. },
  917. "responses": {
  918. "200": {
  919. "description": "",
  920. "content": {
  921. "application/json": {
  922. "schema": {
  923. "type": "object",
  924. "properties": {
  925. "isSuccess": {
  926. "type": "boolean"
  927. },
  928. "code": {
  929. "type": "integer"
  930. },
  931. "result": {
  932. "type": "string"
  933. },
  934. "isAuthorized": {
  935. "type": "boolean"
  936. }
  937. },
  938. "required": ["isSuccess", "code", "result", "isAuthorized"]
  939. },
  940. "example": {
  941. "isSuccess": true,
  942. "code": 1,
  943. "result": "965e68f8-4947-45d4-a800-df7c4e1ed7ea",
  944. "isAuthorized": true
  945. }
  946. }
  947. },
  948. "headers": {}
  949. }
  950. },
  951. "security": []
  952. }
  953. },
  954. "/api/ai/session/update": {
  955. "post": {
  956. "summary": "更新会话",
  957. "deprecated": false,
  958. "description": "",
  959. "tags": ["ai-chat"],
  960. "parameters": [
  961. {
  962. "name": "Authorization",
  963. "in": "header",
  964. "description": "",
  965. "example": "bpm_client_1513029045627916288",
  966. "schema": {
  967. "type": "string",
  968. "default": "bpm_client_1513029045627916288"
  969. }
  970. }
  971. ],
  972. "requestBody": {
  973. "content": {
  974. "application/json": {
  975. "schema": {
  976. "type": "object",
  977. "properties": {
  978. "id": {
  979. "type": "string"
  980. },
  981. "name": {
  982. "type": "string"
  983. }
  984. },
  985. "required": ["id", "name"]
  986. },
  987. "example": {
  988. "id": "965e68f8-4947-45d4-a800-df7c4e1ed7ea",
  989. "name": "修改会话名称"
  990. }
  991. }
  992. },
  993. "required": true
  994. },
  995. "responses": {
  996. "200": {
  997. "description": "",
  998. "content": {
  999. "application/json": {
  1000. "schema": {
  1001. "type": "object",
  1002. "properties": {
  1003. "isSuccess": {
  1004. "type": "boolean"
  1005. },
  1006. "code": {
  1007. "type": "integer"
  1008. },
  1009. "isAuthorized": {
  1010. "type": "boolean"
  1011. }
  1012. },
  1013. "required": ["isSuccess", "code", "isAuthorized"]
  1014. },
  1015. "example": {
  1016. "isSuccess": true,
  1017. "code": 1,
  1018. "isAuthorized": true
  1019. }
  1020. }
  1021. },
  1022. "headers": {}
  1023. }
  1024. },
  1025. "security": []
  1026. }
  1027. },
  1028. "/api/ai/session/delete": {
  1029. "post": {
  1030. "summary": "删除会话",
  1031. "deprecated": false,
  1032. "description": "",
  1033. "tags": ["ai-chat"],
  1034. "parameters": [
  1035. {
  1036. "name": "Authorization",
  1037. "in": "header",
  1038. "description": "",
  1039. "example": "bpm_client_1513029045627916288",
  1040. "schema": {
  1041. "type": "string",
  1042. "default": "bpm_client_1513029045627916288"
  1043. }
  1044. }
  1045. ],
  1046. "requestBody": {
  1047. "content": {
  1048. "application/json": {
  1049. "schema": {
  1050. "type": "object",
  1051. "properties": {
  1052. "id": {
  1053. "type": "string"
  1054. }
  1055. },
  1056. "required": ["id"]
  1057. },
  1058. "example": {
  1059. "id": "49b47841-7f5d-4899-adfb-358198543308"
  1060. }
  1061. }
  1062. },
  1063. "required": true
  1064. },
  1065. "responses": {
  1066. "200": {
  1067. "description": "",
  1068. "content": {
  1069. "application/json": {
  1070. "schema": {
  1071. "type": "object",
  1072. "properties": {
  1073. "isSuccess": {
  1074. "type": "boolean"
  1075. },
  1076. "code": {
  1077. "type": "integer"
  1078. },
  1079. "isAuthorized": {
  1080. "type": "boolean"
  1081. }
  1082. },
  1083. "required": ["isSuccess", "code", "isAuthorized"]
  1084. },
  1085. "example": {
  1086. "isSuccess": true,
  1087. "code": 1,
  1088. "isAuthorized": true
  1089. }
  1090. }
  1091. },
  1092. "headers": {}
  1093. }
  1094. },
  1095. "security": []
  1096. }
  1097. }
  1098. },
  1099. "components": {
  1100. "schemas": {
  1101. "AgentNode": {
  1102. "type": "object",
  1103. "properties": {
  1104. "appAgentId": {
  1105. "type": "string",
  1106. "format": "uuid"
  1107. },
  1108. "creationTime": {
  1109. "type": "string",
  1110. "format": "date-time"
  1111. },
  1112. "creatorUserId": {
  1113. "type": "string",
  1114. "format": "uuid"
  1115. },
  1116. "data": {
  1117. "$ref": "#/components/schemas/NodeData"
  1118. },
  1119. "height": {
  1120. "type": "integer"
  1121. },
  1122. "id": {
  1123. "type": "string",
  1124. "format": "uuid"
  1125. },
  1126. "isDeleted": {
  1127. "type": "boolean"
  1128. },
  1129. "position": {
  1130. "type": "object",
  1131. "properties": {
  1132. "x": {
  1133. "type": "integer"
  1134. },
  1135. "y": {
  1136. "type": "integer"
  1137. }
  1138. },
  1139. "required": ["x", "y"]
  1140. },
  1141. "selected": {
  1142. "type": "boolean"
  1143. },
  1144. "type": {
  1145. "type": "string",
  1146. "enum": ["custom", "start", "end", "condition", "task", "http-request"]
  1147. },
  1148. "updateTime": {
  1149. "type": "string",
  1150. "format": "date-time"
  1151. },
  1152. "width": {
  1153. "type": "integer"
  1154. },
  1155. "zIndex": {
  1156. "type": "integer"
  1157. }
  1158. },
  1159. "required": [
  1160. "appAgentId",
  1161. "creationTime",
  1162. "creatorUserId",
  1163. "data",
  1164. "id",
  1165. "position",
  1166. "type"
  1167. ]
  1168. },
  1169. "NodeData": {
  1170. "type": "object",
  1171. "properties": {
  1172. "outputs": {
  1173. "type": "array",
  1174. "items": {
  1175. "type": "object",
  1176. "properties": {
  1177. "name": {
  1178. "type": "string"
  1179. },
  1180. "describe": {
  1181. "type": "string"
  1182. },
  1183. "type": {
  1184. "type": "string",
  1185. "enum": ["string", "number", "boolean", "object", "array"]
  1186. }
  1187. },
  1188. "required": ["name", "describe", "type"]
  1189. }
  1190. },
  1191. "output_can_alter": {
  1192. "type": "boolean"
  1193. },
  1194. "variables": {
  1195. "type": "array",
  1196. "items": {
  1197. "type": "string"
  1198. }
  1199. },
  1200. "method": {
  1201. "type": "string",
  1202. "enum": ["get", "post", "put", "delete", "patch", "head", "options"]
  1203. },
  1204. "ssl_verify": {
  1205. "type": "boolean"
  1206. },
  1207. "isInIteration": {
  1208. "type": "boolean"
  1209. },
  1210. "default_value": {
  1211. "type": "array",
  1212. "items": {
  1213. "type": "string"
  1214. }
  1215. },
  1216. "body": {
  1217. "$ref": "#/components/schemas/RequestBody"
  1218. },
  1219. "params": {
  1220. "type": "array",
  1221. "items": {
  1222. "type": "string"
  1223. }
  1224. },
  1225. "title": {
  1226. "type": "string"
  1227. },
  1228. "type": {
  1229. "type": "string",
  1230. "enum": ["http-request", "condition", "task"]
  1231. },
  1232. "error_strategy": {
  1233. "type": "string",
  1234. "enum": ["none", "retry", "abort", "continue"]
  1235. },
  1236. "retry_config": {
  1237. "type": "object",
  1238. "properties": {
  1239. "max_retries": {
  1240. "type": "integer",
  1241. "minimum": 0,
  1242. "maximum": 10
  1243. },
  1244. "retry_enabled": {
  1245. "type": "boolean"
  1246. },
  1247. "retry_interval": {
  1248. "type": "integer",
  1249. "minimum": 0,
  1250. "maximum": 5000
  1251. }
  1252. },
  1253. "required": ["max_retries", "retry_enabled", "retry_interval"]
  1254. },
  1255. "url": {
  1256. "type": "string",
  1257. "format": "uri"
  1258. },
  1259. "authorization": {
  1260. "type": "object",
  1261. "properties": {
  1262. "type": {
  1263. "type": "string",
  1264. "enum": ["none", "bearer", "basic", "api-key"]
  1265. },
  1266. "config": {
  1267. "type": "object",
  1268. "properties": {
  1269. "api_key": {
  1270. "type": "string"
  1271. },
  1272. "header": {
  1273. "type": "string"
  1274. },
  1275. "type": {
  1276. "type": "string"
  1277. }
  1278. }
  1279. }
  1280. },
  1281. "required": ["type", "config"]
  1282. },
  1283. "timeout_config": {
  1284. "type": "object",
  1285. "properties": {
  1286. "max_write_timeout": {
  1287. "type": "integer",
  1288. "minimum": 0
  1289. },
  1290. "max_read_timeout": {
  1291. "type": "integer",
  1292. "minimum": 0
  1293. },
  1294. "max_connect_timeout": {
  1295. "type": "integer",
  1296. "minimum": 0
  1297. }
  1298. },
  1299. "required": ["max_write_timeout", "max_read_timeout", "max_connect_timeout"]
  1300. },
  1301. "heads": {
  1302. "type": "array",
  1303. "items": {
  1304. "$ref": "#/components/schemas/HttpHeader"
  1305. }
  1306. },
  1307. "selected": {
  1308. "type": "boolean"
  1309. },
  1310. "desc": {
  1311. "type": "string"
  1312. },
  1313. "isInLoop": {
  1314. "type": "boolean"
  1315. }
  1316. },
  1317. "required": ["outputs", "method", "title", "type", "url"]
  1318. },
  1319. "RequestBody": {
  1320. "type": "object",
  1321. "properties": {
  1322. "data": {
  1323. "type": "array",
  1324. "items": {
  1325. "$ref": "#/components/schemas/RequestDataItem"
  1326. }
  1327. },
  1328. "type": {
  1329. "type": "string",
  1330. "enum": ["json", "form-data", "x-www-form-urlencoded", "raw", "binary"]
  1331. }
  1332. },
  1333. "required": ["data", "type"]
  1334. },
  1335. "RequestDataItem": {
  1336. "type": "object",
  1337. "properties": {
  1338. "type": {
  1339. "type": "string",
  1340. "enum": ["text", "file", "json"]
  1341. },
  1342. "value": {
  1343. "type": "string"
  1344. },
  1345. "key": {
  1346. "type": "string"
  1347. }
  1348. },
  1349. "required": ["type", "value"]
  1350. },
  1351. "HttpHeader": {
  1352. "type": "object",
  1353. "properties": {
  1354. "name": {
  1355. "type": "string"
  1356. },
  1357. "value": {
  1358. "type": "string"
  1359. }
  1360. },
  1361. "required": ["name", "value"]
  1362. }
  1363. },
  1364. "securitySchemes": {
  1365. "ApiKeyAuth": {
  1366. "type": "apiKey",
  1367. "in": "header",
  1368. "name": "Authorization"
  1369. }
  1370. }
  1371. },
  1372. "security": [
  1373. {
  1374. "ApiKeyAuth": []
  1375. }
  1376. ]
  1377. }