ai.openapi.json 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284
  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/session/pageList": {
  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_client_1513029045627916288",
  389. "schema": {
  390. "type": "string",
  391. "default": "bpm_client_1513029045627916288"
  392. }
  393. }
  394. ],
  395. "requestBody": {
  396. "content": {
  397. "application/json": {
  398. "schema": {
  399. "type": "object",
  400. "properties": {
  401. "pageIndex": {
  402. "type": "integer"
  403. },
  404. "pageSize": {
  405. "type": "integer"
  406. }
  407. },
  408. "required": ["pageIndex", "pageSize"]
  409. },
  410. "example": {
  411. "pageIndex": 1,
  412. "pageSize": 20
  413. }
  414. }
  415. },
  416. "required": true
  417. },
  418. "responses": {
  419. "200": {
  420. "description": "",
  421. "content": {
  422. "application/json": {
  423. "schema": {
  424. "type": "object",
  425. "properties": {
  426. "isSuccess": {
  427. "type": "boolean"
  428. },
  429. "code": {
  430. "type": "integer"
  431. },
  432. "result": {
  433. "type": "object",
  434. "properties": {
  435. "currentPage": {
  436. "type": "integer"
  437. },
  438. "hasNextPage": {
  439. "type": "boolean"
  440. },
  441. "hasPreviousPage": {
  442. "type": "boolean"
  443. },
  444. "model": {
  445. "type": "array",
  446. "items": {
  447. "type": "object",
  448. "properties": {
  449. "app": {
  450. "type": "string"
  451. },
  452. "creationTime": {
  453. "type": "string"
  454. },
  455. "entityId": {
  456. "type": "string"
  457. },
  458. "id": {
  459. "type": "string"
  460. },
  461. "isDeleted": {
  462. "type": "boolean"
  463. },
  464. "name": {
  465. "type": "string"
  466. },
  467. "sessionId": {
  468. "type": "string"
  469. },
  470. "updateTime": {
  471. "type": "string"
  472. },
  473. "userId": {
  474. "type": "string"
  475. },
  476. "creatorUserId": {
  477. "type": "string"
  478. }
  479. },
  480. "required": [
  481. "app",
  482. "creationTime",
  483. "entityId",
  484. "id",
  485. "isDeleted",
  486. "name",
  487. "sessionId",
  488. "updateTime",
  489. "userId",
  490. "creatorUserId"
  491. ]
  492. }
  493. },
  494. "pageSize": {
  495. "type": "integer"
  496. },
  497. "totalCount": {
  498. "type": "integer"
  499. },
  500. "totalPages": {
  501. "type": "integer"
  502. }
  503. },
  504. "required": [
  505. "currentPage",
  506. "hasNextPage",
  507. "hasPreviousPage",
  508. "model",
  509. "pageSize",
  510. "totalCount",
  511. "totalPages"
  512. ]
  513. },
  514. "isAuthorized": {
  515. "type": "boolean"
  516. }
  517. },
  518. "required": ["isSuccess", "code", "result", "isAuthorized"]
  519. },
  520. "example": {
  521. "isSuccess": true,
  522. "code": 1,
  523. "result": {
  524. "currentPage": 1,
  525. "hasNextPage": true,
  526. "hasPreviousPage": false,
  527. "model": [
  528. {
  529. "app": "ShaLu",
  530. "creationTime": "2026-05-17 09:49:34",
  531. "entityId": "Global",
  532. "id": "965e68f8-4947-45d4-a800-df7c4e1ed7ea",
  533. "isDeleted": false,
  534. "name": "修改会话名称",
  535. "sessionId": "ea9e1f06-0017-4544-b769-2d2d7b5ac3ec",
  536. "updateTime": "2026-05-17 09:54:29",
  537. "userId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993"
  538. },
  539. {
  540. "app": "shalu",
  541. "creationTime": "2026-05-16 14:17:23",
  542. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  543. "entityId": "GLOBAL",
  544. "id": "84434a22-24ac-4d6b-a0c6-f08cdba0cc03",
  545. "isDeleted": false,
  546. "name": "新的会话",
  547. "sessionId": "45e3b97e-dc67-486a-aeac-87093f5727ba",
  548. "updateTime": "2026-05-16 14:17:23",
  549. "userId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993"
  550. },
  551. {
  552. "app": "shalu",
  553. "creationTime": "2026-05-16 14:05:51",
  554. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  555. "entityId": "GLOBAL",
  556. "id": "29026a3d-6dd7-4cd9-9dae-755439b81fae",
  557. "isDeleted": false,
  558. "name": "新的会话",
  559. "sessionId": "6cae1573-f97b-4423-8df5-c4a62b3ca87a",
  560. "updateTime": "2026-05-16 14:05:51",
  561. "userId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993"
  562. },
  563. {
  564. "app": "shalu",
  565. "creationTime": "2026-05-16 14:04:43",
  566. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  567. "entityId": "GLOBAL",
  568. "id": "5309f00d-6ff4-468c-bde1-140aeab5cb63",
  569. "isDeleted": false,
  570. "name": "新的会话",
  571. "sessionId": "95ed68d9-9e62-427a-bfe0-c70531fcc482",
  572. "updateTime": "2026-05-16 14:04:43",
  573. "userId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993"
  574. },
  575. {
  576. "app": "shalu",
  577. "creationTime": "2026-05-16 13:53:01",
  578. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  579. "entityId": "GLOBAL",
  580. "id": "acb4b3cf-2fe3-462d-9727-c9c41177edd8",
  581. "isDeleted": false,
  582. "name": "新的会话",
  583. "sessionId": "714836a0-3f1b-47af-87e9-81c46024c9c5",
  584. "updateTime": "2026-05-16 13:53:01",
  585. "userId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993"
  586. }
  587. ],
  588. "pageSize": 20,
  589. "totalCount": 5,
  590. "totalPages": 1
  591. },
  592. "isAuthorized": true
  593. }
  594. }
  595. },
  596. "headers": {}
  597. }
  598. },
  599. "security": []
  600. }
  601. },
  602. "/api/ai/session/sessionMessages": {
  603. "post": {
  604. "summary": "获取消息分页列表",
  605. "deprecated": false,
  606. "description": "",
  607. "tags": ["ai-chat"],
  608. "parameters": [
  609. {
  610. "name": "Authorization",
  611. "in": "header",
  612. "description": "",
  613. "example": "bpm_client_1513029045627916288",
  614. "schema": {
  615. "type": "string",
  616. "default": "bpm_client_1513029045627916288"
  617. }
  618. }
  619. ],
  620. "requestBody": {
  621. "content": {
  622. "application/json": {
  623. "schema": {
  624. "type": "object",
  625. "properties": {
  626. "sessionId": {
  627. "type": "string"
  628. },
  629. "pageIndex": {
  630. "type": "integer"
  631. },
  632. "pageSize": {
  633. "type": "integer"
  634. }
  635. },
  636. "required": ["sessionId", "pageIndex", "pageSize"]
  637. },
  638. "example": {
  639. "sessionId": "d24107a9-2a6f-4a8e-a95d-45a14f936db1",
  640. "pageIndex": 1,
  641. "pageSize": 20
  642. }
  643. }
  644. },
  645. "required": true
  646. },
  647. "responses": {
  648. "200": {
  649. "description": "",
  650. "content": {
  651. "application/json": {
  652. "schema": {
  653. "type": "object",
  654. "properties": {
  655. "isSuccess": {
  656. "type": "boolean"
  657. },
  658. "code": {
  659. "type": "integer"
  660. },
  661. "result": {
  662. "type": "object",
  663. "properties": {
  664. "currentPage": {
  665. "type": "integer"
  666. },
  667. "hasNextPage": {
  668. "type": "boolean"
  669. },
  670. "hasPreviousPage": {
  671. "type": "boolean"
  672. },
  673. "model": {
  674. "type": "array",
  675. "items": {
  676. "type": "object",
  677. "properties": {
  678. "answer": {
  679. "type": "string"
  680. },
  681. "app": {
  682. "type": "string"
  683. },
  684. "creationTime": {
  685. "type": "string"
  686. },
  687. "creatorUserId": {
  688. "type": "string"
  689. },
  690. "entityId": {
  691. "type": "string"
  692. },
  693. "id": {
  694. "type": "string"
  695. },
  696. "isDeleted": {
  697. "type": "boolean"
  698. },
  699. "message_files": {
  700. "type": "string"
  701. },
  702. "msgId": {
  703. "type": "string"
  704. },
  705. "query": {
  706. "type": "string"
  707. },
  708. "sessionId": {
  709. "type": "string"
  710. },
  711. "taskId": {
  712. "type": "string"
  713. },
  714. "updateTime": {
  715. "type": "string"
  716. },
  717. "userId": {
  718. "type": "string"
  719. }
  720. }
  721. }
  722. },
  723. "pageSize": {
  724. "type": "integer"
  725. },
  726. "totalCount": {
  727. "type": "integer"
  728. },
  729. "totalPages": {
  730. "type": "integer"
  731. }
  732. },
  733. "required": [
  734. "currentPage",
  735. "hasNextPage",
  736. "hasPreviousPage",
  737. "model",
  738. "pageSize",
  739. "totalCount",
  740. "totalPages"
  741. ]
  742. },
  743. "isAuthorized": {
  744. "type": "boolean"
  745. }
  746. },
  747. "required": ["isSuccess", "code", "result", "isAuthorized"]
  748. },
  749. "example": {
  750. "isSuccess": true,
  751. "code": 1,
  752. "result": {
  753. "currentPage": 1,
  754. "hasNextPage": true,
  755. "hasPreviousPage": false,
  756. "model": [
  757. {
  758. "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这张图片包含了从游戏基本信息到用户个性化数据的完整链条,既展示了游戏本身的特色,也体现了平台与用户的交互关系。",
  759. "app": "ShaLu",
  760. "creationTime": "2026-05-17 11:00:43",
  761. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  762. "entityId": "Global",
  763. "id": "ebdb16da-cfa2-488f-9cc7-44d241349457",
  764. "isDeleted": false,
  765. "message_files": "f2048d34-0cee-4850-a280-70707f3d14e7",
  766. "msgId": "",
  767. "query": "帮我分析一下图片中有哪些信息?",
  768. "sessionId": "d24107a9-2a6f-4a8e-a95d-45a14f936db1",
  769. "taskId": "",
  770. "updateTime": "2026-05-17 11:00:43",
  771. "userId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993"
  772. }
  773. ],
  774. "pageSize": 20,
  775. "totalCount": 1,
  776. "totalPages": 1
  777. },
  778. "isAuthorized": true
  779. }
  780. }
  781. },
  782. "headers": {}
  783. }
  784. },
  785. "security": []
  786. }
  787. },
  788. "/api/ai/session/create": {
  789. "post": {
  790. "summary": "创建会话",
  791. "deprecated": false,
  792. "description": "",
  793. "tags": ["ai-chat"],
  794. "parameters": [
  795. {
  796. "name": "Authorization",
  797. "in": "header",
  798. "description": "",
  799. "example": "bpm_client_1513029045627916288",
  800. "schema": {
  801. "type": "string",
  802. "default": "bpm_client_1513029045627916288"
  803. }
  804. }
  805. ],
  806. "requestBody": {
  807. "content": {
  808. "application/json": {
  809. "schema": {
  810. "type": "object",
  811. "properties": {
  812. "name": {
  813. "type": "string"
  814. }
  815. },
  816. "required": ["name"]
  817. },
  818. "example": "{\r\n \"name\": \"\",\r\n}"
  819. }
  820. },
  821. "required": true
  822. },
  823. "responses": {
  824. "200": {
  825. "description": "",
  826. "content": {
  827. "application/json": {
  828. "schema": {
  829. "type": "object",
  830. "properties": {
  831. "isSuccess": {
  832. "type": "boolean"
  833. },
  834. "code": {
  835. "type": "integer"
  836. },
  837. "result": {
  838. "type": "string"
  839. },
  840. "isAuthorized": {
  841. "type": "boolean"
  842. }
  843. },
  844. "required": ["isSuccess", "code", "result", "isAuthorized"]
  845. },
  846. "example": {
  847. "isSuccess": true,
  848. "code": 1,
  849. "result": "965e68f8-4947-45d4-a800-df7c4e1ed7ea",
  850. "isAuthorized": true
  851. }
  852. }
  853. },
  854. "headers": {}
  855. }
  856. },
  857. "security": []
  858. }
  859. },
  860. "/api/ai/session/update": {
  861. "post": {
  862. "summary": "更新会话",
  863. "deprecated": false,
  864. "description": "",
  865. "tags": ["ai-chat"],
  866. "parameters": [
  867. {
  868. "name": "Authorization",
  869. "in": "header",
  870. "description": "",
  871. "example": "bpm_client_1513029045627916288",
  872. "schema": {
  873. "type": "string",
  874. "default": "bpm_client_1513029045627916288"
  875. }
  876. }
  877. ],
  878. "requestBody": {
  879. "content": {
  880. "application/json": {
  881. "schema": {
  882. "type": "object",
  883. "properties": {
  884. "id": {
  885. "type": "string"
  886. },
  887. "name": {
  888. "type": "string"
  889. }
  890. },
  891. "required": ["id", "name"]
  892. },
  893. "example": {
  894. "id": "965e68f8-4947-45d4-a800-df7c4e1ed7ea",
  895. "name": "修改会话名称"
  896. }
  897. }
  898. },
  899. "required": true
  900. },
  901. "responses": {
  902. "200": {
  903. "description": "",
  904. "content": {
  905. "application/json": {
  906. "schema": {
  907. "type": "object",
  908. "properties": {
  909. "isSuccess": {
  910. "type": "boolean"
  911. },
  912. "code": {
  913. "type": "integer"
  914. },
  915. "isAuthorized": {
  916. "type": "boolean"
  917. }
  918. },
  919. "required": ["isSuccess", "code", "isAuthorized"]
  920. },
  921. "example": {
  922. "isSuccess": true,
  923. "code": 1,
  924. "isAuthorized": true
  925. }
  926. }
  927. },
  928. "headers": {}
  929. }
  930. },
  931. "security": []
  932. }
  933. },
  934. "/api/ai/session/delete": {
  935. "post": {
  936. "summary": "删除会话",
  937. "deprecated": false,
  938. "description": "",
  939. "tags": ["ai-chat"],
  940. "parameters": [
  941. {
  942. "name": "Authorization",
  943. "in": "header",
  944. "description": "",
  945. "example": "bpm_client_1513029045627916288",
  946. "schema": {
  947. "type": "string",
  948. "default": "bpm_client_1513029045627916288"
  949. }
  950. }
  951. ],
  952. "requestBody": {
  953. "content": {
  954. "application/json": {
  955. "schema": {
  956. "type": "object",
  957. "properties": {
  958. "id": {
  959. "type": "string"
  960. }
  961. },
  962. "required": ["id"]
  963. },
  964. "example": {
  965. "id": "49b47841-7f5d-4899-adfb-358198543308"
  966. }
  967. }
  968. },
  969. "required": true
  970. },
  971. "responses": {
  972. "200": {
  973. "description": "",
  974. "content": {
  975. "application/json": {
  976. "schema": {
  977. "type": "object",
  978. "properties": {
  979. "isSuccess": {
  980. "type": "boolean"
  981. },
  982. "code": {
  983. "type": "integer"
  984. },
  985. "isAuthorized": {
  986. "type": "boolean"
  987. }
  988. },
  989. "required": ["isSuccess", "code", "isAuthorized"]
  990. },
  991. "example": {
  992. "isSuccess": true,
  993. "code": 1,
  994. "isAuthorized": true
  995. }
  996. }
  997. },
  998. "headers": {}
  999. }
  1000. },
  1001. "security": []
  1002. }
  1003. }
  1004. },
  1005. "components": {
  1006. "schemas": {
  1007. "AgentNode": {
  1008. "type": "object",
  1009. "properties": {
  1010. "appAgentId": {
  1011. "type": "string",
  1012. "format": "uuid"
  1013. },
  1014. "creationTime": {
  1015. "type": "string",
  1016. "format": "date-time"
  1017. },
  1018. "creatorUserId": {
  1019. "type": "string",
  1020. "format": "uuid"
  1021. },
  1022. "data": {
  1023. "$ref": "#/components/schemas/NodeData"
  1024. },
  1025. "height": {
  1026. "type": "integer"
  1027. },
  1028. "id": {
  1029. "type": "string",
  1030. "format": "uuid"
  1031. },
  1032. "isDeleted": {
  1033. "type": "boolean"
  1034. },
  1035. "position": {
  1036. "type": "object",
  1037. "properties": {
  1038. "x": {
  1039. "type": "integer"
  1040. },
  1041. "y": {
  1042. "type": "integer"
  1043. }
  1044. },
  1045. "required": ["x", "y"]
  1046. },
  1047. "selected": {
  1048. "type": "boolean"
  1049. },
  1050. "type": {
  1051. "type": "string",
  1052. "enum": ["custom", "start", "end", "condition", "task", "http-request"]
  1053. },
  1054. "updateTime": {
  1055. "type": "string",
  1056. "format": "date-time"
  1057. },
  1058. "width": {
  1059. "type": "integer"
  1060. },
  1061. "zIndex": {
  1062. "type": "integer"
  1063. }
  1064. },
  1065. "required": [
  1066. "appAgentId",
  1067. "creationTime",
  1068. "creatorUserId",
  1069. "data",
  1070. "id",
  1071. "position",
  1072. "type"
  1073. ]
  1074. },
  1075. "NodeData": {
  1076. "type": "object",
  1077. "properties": {
  1078. "outputs": {
  1079. "type": "array",
  1080. "items": {
  1081. "type": "object",
  1082. "properties": {
  1083. "name": {
  1084. "type": "string"
  1085. },
  1086. "describe": {
  1087. "type": "string"
  1088. },
  1089. "type": {
  1090. "type": "string",
  1091. "enum": ["string", "number", "boolean", "object", "array"]
  1092. }
  1093. },
  1094. "required": ["name", "describe", "type"]
  1095. }
  1096. },
  1097. "output_can_alter": {
  1098. "type": "boolean"
  1099. },
  1100. "variables": {
  1101. "type": "array",
  1102. "items": {
  1103. "type": "string"
  1104. }
  1105. },
  1106. "method": {
  1107. "type": "string",
  1108. "enum": ["get", "post", "put", "delete", "patch", "head", "options"]
  1109. },
  1110. "ssl_verify": {
  1111. "type": "boolean"
  1112. },
  1113. "isInIteration": {
  1114. "type": "boolean"
  1115. },
  1116. "default_value": {
  1117. "type": "array",
  1118. "items": {
  1119. "type": "string"
  1120. }
  1121. },
  1122. "body": {
  1123. "$ref": "#/components/schemas/RequestBody"
  1124. },
  1125. "params": {
  1126. "type": "array",
  1127. "items": {
  1128. "type": "string"
  1129. }
  1130. },
  1131. "title": {
  1132. "type": "string"
  1133. },
  1134. "type": {
  1135. "type": "string",
  1136. "enum": ["http-request", "condition", "task"]
  1137. },
  1138. "error_strategy": {
  1139. "type": "string",
  1140. "enum": ["none", "retry", "abort", "continue"]
  1141. },
  1142. "retry_config": {
  1143. "type": "object",
  1144. "properties": {
  1145. "max_retries": {
  1146. "type": "integer",
  1147. "minimum": 0,
  1148. "maximum": 10
  1149. },
  1150. "retry_enabled": {
  1151. "type": "boolean"
  1152. },
  1153. "retry_interval": {
  1154. "type": "integer",
  1155. "minimum": 0,
  1156. "maximum": 5000
  1157. }
  1158. },
  1159. "required": ["max_retries", "retry_enabled", "retry_interval"]
  1160. },
  1161. "url": {
  1162. "type": "string",
  1163. "format": "uri"
  1164. },
  1165. "authorization": {
  1166. "type": "object",
  1167. "properties": {
  1168. "type": {
  1169. "type": "string",
  1170. "enum": ["none", "bearer", "basic", "api-key"]
  1171. },
  1172. "config": {
  1173. "type": "object",
  1174. "properties": {
  1175. "api_key": {
  1176. "type": "string"
  1177. },
  1178. "header": {
  1179. "type": "string"
  1180. },
  1181. "type": {
  1182. "type": "string"
  1183. }
  1184. }
  1185. }
  1186. },
  1187. "required": ["type", "config"]
  1188. },
  1189. "timeout_config": {
  1190. "type": "object",
  1191. "properties": {
  1192. "max_write_timeout": {
  1193. "type": "integer",
  1194. "minimum": 0
  1195. },
  1196. "max_read_timeout": {
  1197. "type": "integer",
  1198. "minimum": 0
  1199. },
  1200. "max_connect_timeout": {
  1201. "type": "integer",
  1202. "minimum": 0
  1203. }
  1204. },
  1205. "required": ["max_write_timeout", "max_read_timeout", "max_connect_timeout"]
  1206. },
  1207. "heads": {
  1208. "type": "array",
  1209. "items": {
  1210. "$ref": "#/components/schemas/HttpHeader"
  1211. }
  1212. },
  1213. "selected": {
  1214. "type": "boolean"
  1215. },
  1216. "desc": {
  1217. "type": "string"
  1218. },
  1219. "isInLoop": {
  1220. "type": "boolean"
  1221. }
  1222. },
  1223. "required": ["outputs", "method", "title", "type", "url"]
  1224. },
  1225. "RequestBody": {
  1226. "type": "object",
  1227. "properties": {
  1228. "data": {
  1229. "type": "array",
  1230. "items": {
  1231. "$ref": "#/components/schemas/RequestDataItem"
  1232. }
  1233. },
  1234. "type": {
  1235. "type": "string",
  1236. "enum": ["json", "form-data", "x-www-form-urlencoded", "raw", "binary"]
  1237. }
  1238. },
  1239. "required": ["data", "type"]
  1240. },
  1241. "RequestDataItem": {
  1242. "type": "object",
  1243. "properties": {
  1244. "type": {
  1245. "type": "string",
  1246. "enum": ["text", "file", "json"]
  1247. },
  1248. "value": {
  1249. "type": "string"
  1250. },
  1251. "key": {
  1252. "type": "string"
  1253. }
  1254. },
  1255. "required": ["type", "value"]
  1256. },
  1257. "HttpHeader": {
  1258. "type": "object",
  1259. "properties": {
  1260. "name": {
  1261. "type": "string"
  1262. },
  1263. "value": {
  1264. "type": "string"
  1265. }
  1266. },
  1267. "required": ["name", "value"]
  1268. }
  1269. },
  1270. "securitySchemes": {
  1271. "ApiKeyAuth": {
  1272. "type": "apiKey",
  1273. "in": "header",
  1274. "name": "Authorization"
  1275. }
  1276. }
  1277. },
  1278. "security": [
  1279. {
  1280. "ApiKeyAuth": []
  1281. }
  1282. ]
  1283. }