agent.openapi.json 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296
  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": "Agent",
  17. "description": "智能体相关接口"
  18. },
  19. {
  20. "name": "tools",
  21. "description": "工具相关接口"
  22. }
  23. ],
  24. "paths": {
  25. "/api/agent/doEditAgent": {
  26. "post": {
  27. "summary": "智能体编辑",
  28. "description": "",
  29. "tags": ["Agent"],
  30. "parameters": [
  31. {
  32. "name": "Authorization",
  33. "in": "header",
  34. "description": "认证令牌",
  35. "required": false,
  36. "schema": {
  37. "type": "string",
  38. "default": "bpm_client_1473687766939209728",
  39. "example": "bpm_client_1473687766939209728"
  40. }
  41. }
  42. ],
  43. "responses": {
  44. "200": {
  45. "description": "成功响应",
  46. "content": {
  47. "application/json": {
  48. "example": {
  49. "isSuccess": true,
  50. "code": 1,
  51. "result": "20d31522-66e7-463e-81d7-7fb7fd5864f7",
  52. "isAuthorized": true
  53. },
  54. "schema": {
  55. "type": "object",
  56. "properties": {
  57. "isSuccess": {
  58. "type": "boolean"
  59. },
  60. "code": {
  61. "type": "integer",
  62. "format": "int32"
  63. },
  64. "result": {
  65. "type": "string",
  66. "format": "uuid"
  67. },
  68. "isAuthorized": {
  69. "type": "boolean"
  70. }
  71. },
  72. "required": ["isSuccess", "code", "result", "isAuthorized"]
  73. }
  74. }
  75. }
  76. }
  77. }
  78. }
  79. },
  80. "/api/agent/doSaveAgentVariables": {
  81. "post": {
  82. "summary": "保存智能体变量",
  83. "description": "",
  84. "tags": ["Agent"],
  85. "parameters": [
  86. {
  87. "name": "Authorization",
  88. "in": "header",
  89. "description": "认证令牌",
  90. "required": false,
  91. "schema": {
  92. "type": "string",
  93. "default": "bpm_client_1473687766939209728",
  94. "example": "bpm_client_1473687766939209728"
  95. }
  96. }
  97. ],
  98. "requestBody": {
  99. "required": true,
  100. "content": {
  101. "application/json": {
  102. "schema": {
  103. "type": "object",
  104. "properties": {
  105. "appAgentId": {
  106. "type": "string",
  107. "format": "uuid"
  108. },
  109. "conversation_variables": {
  110. "type": "array",
  111. "items": {
  112. "type": "string"
  113. }
  114. },
  115. "env_variables": {
  116. "type": "array",
  117. "items": {
  118. "type": "object",
  119. "properties": {
  120. "name": {
  121. "type": "string"
  122. },
  123. "value": {
  124. "type": "string"
  125. },
  126. "type": {
  127. "type": "string",
  128. "enum": ["string", "number", "boolean", "object", "array"]
  129. }
  130. },
  131. "required": ["name", "value", "type"]
  132. }
  133. }
  134. },
  135. "required": ["appAgentId", "conversation_variables", "env_variables"]
  136. }
  137. }
  138. }
  139. },
  140. "responses": {
  141. "200": {
  142. "description": "成功响应",
  143. "content": {
  144. "application/json": {
  145. "example": {
  146. "isSuccess": true,
  147. "code": 1,
  148. "isAuthorized": true
  149. },
  150. "schema": {
  151. "type": "object",
  152. "properties": {
  153. "isSuccess": {
  154. "type": "boolean"
  155. },
  156. "code": {
  157. "type": "integer",
  158. "format": "int32"
  159. },
  160. "result": {
  161. "type": "string"
  162. },
  163. "isAuthorized": {
  164. "type": "boolean"
  165. }
  166. },
  167. "required": ["isSuccess", "code", "result", "isAuthorized"]
  168. }
  169. }
  170. }
  171. }
  172. }
  173. }
  174. },
  175. "/api/agent/getAgentInfo": {
  176. "post": {
  177. "summary": "获取智能体信息",
  178. "description": "",
  179. "tags": ["Agent"],
  180. "parameters": [
  181. {
  182. "name": "Authorization",
  183. "in": "header",
  184. "description": "认证令牌",
  185. "required": false,
  186. "schema": {
  187. "type": "string",
  188. "default": "bpm_client_1473687766939209728",
  189. "example": "bpm_client_1473687766939209728"
  190. }
  191. }
  192. ],
  193. "requestBody": {
  194. "required": true,
  195. "content": {
  196. "application/json": {
  197. "schema": {
  198. "type": "object",
  199. "properties": {
  200. "id": {
  201. "type": "string",
  202. "format": "uuid"
  203. }
  204. },
  205. "required": ["id"]
  206. }
  207. }
  208. }
  209. },
  210. "responses": {
  211. "200": {
  212. "description": "成功响应",
  213. "content": {
  214. "application/json": {
  215. "example": {
  216. "isSuccess": true,
  217. "code": 1,
  218. "result": {
  219. "conversation_variables": [],
  220. "edges": [],
  221. "env_variables": [
  222. {
  223. "is_require": false,
  224. "name": "api_address",
  225. "type": "string",
  226. "value": "http://shalu-componenttesting-admin-dev.shalu.com"
  227. }
  228. ],
  229. "id": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  230. "name": "测试智能体",
  231. "nodes": [
  232. {
  233. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  234. "creationTime": "2026-01-28 10:24:45",
  235. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  236. "data": {
  237. "outputs": [
  238. {
  239. "name": "body",
  240. "describe": "响应内容",
  241. "type": "string"
  242. },
  243. {
  244. "name": "status_code",
  245. "describe": "响应状态码",
  246. "type": "number"
  247. },
  248. {
  249. "name": "headers",
  250. "describe": "响应头列表 JSON",
  251. "type": "object"
  252. }
  253. ],
  254. "output_can_alter": false,
  255. "variables": [],
  256. "method": "post",
  257. "ssl_verify": false,
  258. "isInIteration": false,
  259. "default_value": [],
  260. "body": {
  261. "data": [
  262. {
  263. "type": "text",
  264. "value": "{\"name\":\"测试智能体\",\"profilePhoto\":\"1111\",\"remark\":\"描述\",\"viewPort\":{\"x\":10,\"y\":\"10\",\"zoom\":1}}",
  265. "key": ""
  266. }
  267. ],
  268. "type": "json"
  269. },
  270. "params": [],
  271. "title": "HTTP 请求",
  272. "type": "http-request",
  273. "error_strategy": "none",
  274. "retry_config": {
  275. "max_retries": 3,
  276. "retry_enabled": false,
  277. "retry_interval": 100
  278. },
  279. "url": "http://shalu-componenttesting-admin-dev.shalu.com/api/agent/doEditAgent",
  280. "authorization": {
  281. "type": "none",
  282. "config": {
  283. "api_key": "",
  284. "header": "",
  285. "type": ""
  286. }
  287. },
  288. "timeout_config": {
  289. "max_write_timeout": 0,
  290. "max_read_timeout": 0,
  291. "max_connect_timeout": 0
  292. },
  293. "heads": [
  294. {
  295. "name": "Authorization",
  296. "value": "bpm_client_1473108597171818496"
  297. }
  298. ],
  299. "selected": true,
  300. "desc": "",
  301. "isInLoop": false
  302. },
  303. "height": 40,
  304. "id": "492048da-6f33-4a36-adc5-cff4b973b053",
  305. "isDeleted": false,
  306. "position": {
  307. "x": 20,
  308. "y": 30
  309. },
  310. "selected": true,
  311. "type": "custom",
  312. "updateTime": "2026-01-28 11:00:09",
  313. "width": 20,
  314. "zIndex": 1
  315. }
  316. ],
  317. "profilePhoto": "1111",
  318. "viewPort": {
  319. "x": 10,
  320. "y": 10,
  321. "zoom": 1
  322. }
  323. },
  324. "isAuthorized": true
  325. },
  326. "schema": {
  327. "type": "object",
  328. "properties": {
  329. "isSuccess": {
  330. "type": "boolean"
  331. },
  332. "code": {
  333. "type": "integer",
  334. "format": "int32"
  335. },
  336. "result": {
  337. "type": "object",
  338. "properties": {
  339. "conversation_variables": {
  340. "type": "array",
  341. "items": {
  342. "type": "string"
  343. }
  344. },
  345. "edges": {
  346. "type": "array",
  347. "items": {
  348. "type": "string"
  349. }
  350. },
  351. "env_variables": {
  352. "type": "array",
  353. "items": {
  354. "type": "object",
  355. "properties": {
  356. "is_require": {
  357. "type": "boolean"
  358. },
  359. "name": {
  360. "type": "string"
  361. },
  362. "type": {
  363. "type": "string",
  364. "enum": ["string", "number", "boolean", "object", "array"]
  365. },
  366. "value": {
  367. "type": "string"
  368. }
  369. },
  370. "required": ["name", "type", "value"]
  371. }
  372. },
  373. "id": {
  374. "type": "string",
  375. "format": "uuid"
  376. },
  377. "name": {
  378. "type": "string"
  379. },
  380. "nodes": {
  381. "type": "array",
  382. "items": {
  383. "$ref": "#/components/schemas/AgentNode"
  384. }
  385. },
  386. "profilePhoto": {
  387. "type": "string"
  388. },
  389. "viewPort": {
  390. "type": "object",
  391. "properties": {
  392. "x": {
  393. "type": "integer"
  394. },
  395. "y": {
  396. "type": "integer"
  397. },
  398. "zoom": {
  399. "type": "integer"
  400. }
  401. },
  402. "required": ["x", "y", "zoom"]
  403. }
  404. },
  405. "required": ["id", "name", "nodes", "profilePhoto", "viewPort"]
  406. },
  407. "isAuthorized": {
  408. "type": "boolean"
  409. }
  410. },
  411. "required": ["isSuccess", "code", "result", "isAuthorized"]
  412. }
  413. }
  414. }
  415. }
  416. }
  417. }
  418. },
  419. "/api/agent/doNewAgentNode": {
  420. "post": {
  421. "summary": "智能体添加节点",
  422. "description": "",
  423. "tags": ["Agent"],
  424. "parameters": [
  425. {
  426. "name": "Authorization",
  427. "in": "header",
  428. "description": "认证令牌",
  429. "required": false,
  430. "schema": {
  431. "type": "string",
  432. "default": "bpm_client_1473687766939209728",
  433. "example": "bpm_client_1473687766939209728"
  434. }
  435. }
  436. ],
  437. "requestBody": {
  438. "required": true,
  439. "content": {
  440. "application/json": {
  441. "schema": {
  442. "type": "object",
  443. "properties": {
  444. "appAgentId": {
  445. "type": "string",
  446. "format": "uuid"
  447. },
  448. "position": {
  449. "type": "object",
  450. "properties": {
  451. "x": {
  452. "type": "integer"
  453. },
  454. "y": {
  455. "type": "integer"
  456. }
  457. },
  458. "required": ["x", "y"]
  459. },
  460. "width": {
  461. "type": "integer"
  462. },
  463. "height": {
  464. "type": "integer"
  465. },
  466. "selected": {
  467. "type": "boolean"
  468. },
  469. "nodeType": {
  470. "type": "string",
  471. "enum": ["custom", "start", "end", "condition", "task", "http-request"]
  472. },
  473. "zIndex": {
  474. "type": "integer"
  475. },
  476. "parentId": {
  477. "type": "string",
  478. "format": "uuid"
  479. }
  480. },
  481. "required": [
  482. "appAgentId",
  483. "parentId",
  484. "position",
  485. "width",
  486. "height",
  487. "selected",
  488. "nodeType",
  489. "zIndex"
  490. ]
  491. }
  492. }
  493. }
  494. },
  495. "responses": {
  496. "200": {
  497. "description": "成功响应",
  498. "content": {
  499. "application/json": {
  500. "example": {
  501. "isSuccess": true,
  502. "code": 1,
  503. "isAuthorized": true
  504. },
  505. "schema": {
  506. "type": "object",
  507. "properties": {
  508. "isSuccess": {
  509. "type": "boolean"
  510. },
  511. "code": {
  512. "type": "integer",
  513. "format": "int32"
  514. },
  515. "isAuthorized": {
  516. "type": "boolean"
  517. }
  518. },
  519. "required": ["isSuccess", "code", "isAuthorized"]
  520. }
  521. }
  522. }
  523. }
  524. }
  525. }
  526. },
  527. "/api/agent/doUpdateAgentNode": {
  528. "post": {
  529. "summary": "更新智能体节点",
  530. "description": "",
  531. "tags": ["Agent"],
  532. "parameters": [
  533. {
  534. "name": "Authorization",
  535. "in": "header",
  536. "description": "认证令牌",
  537. "required": false,
  538. "schema": {
  539. "type": "string",
  540. "default": "bpm_client_1473687766939209728",
  541. "example": "bpm_client_1473687766939209728"
  542. }
  543. }
  544. ],
  545. "requestBody": {
  546. "required": true,
  547. "content": {
  548. "application/json": {
  549. "schema": {
  550. "type": "object",
  551. "properties": {
  552. "id": {
  553. "type": "string",
  554. "format": "uuid"
  555. },
  556. "appAgentId": {
  557. "type": "string",
  558. "format": "uuid"
  559. },
  560. "parentId": {
  561. "type": "string",
  562. "format": "uuid"
  563. },
  564. "position": {
  565. "type": "object",
  566. "properties": {
  567. "x": {
  568. "type": "integer"
  569. },
  570. "y": {
  571. "type": "integer"
  572. }
  573. },
  574. "required": ["x", "y"]
  575. },
  576. "width": {
  577. "type": "integer"
  578. },
  579. "height": {
  580. "type": "integer"
  581. },
  582. "selected": {
  583. "type": "boolean"
  584. },
  585. "nodeType": {
  586. "type": "string",
  587. "enum": ["custom", "start", "end", "condition", "task", "http-request"]
  588. },
  589. "zIndex": {
  590. "type": "integer"
  591. },
  592. "data": {
  593. "type": "object"
  594. }
  595. },
  596. "required": [
  597. "id",
  598. "appAgentId",
  599. "parentId",
  600. "position",
  601. "width",
  602. "height",
  603. "selected",
  604. "nodeType",
  605. "zIndex",
  606. "data"
  607. ]
  608. }
  609. }
  610. }
  611. },
  612. "responses": {
  613. "200": {
  614. "description": "成功响应",
  615. "content": {
  616. "application/json": {
  617. "example": {
  618. "isSuccess": true,
  619. "code": 1,
  620. "isAuthorized": true
  621. },
  622. "schema": {
  623. "type": "object",
  624. "properties": {
  625. "isSuccess": {
  626. "type": "boolean"
  627. },
  628. "code": {
  629. "type": "integer",
  630. "format": "int32"
  631. },
  632. "isAuthorized": {
  633. "type": "boolean"
  634. }
  635. },
  636. "required": ["isSuccess", "code", "isAuthorized"]
  637. }
  638. }
  639. }
  640. }
  641. }
  642. }
  643. },
  644. "/api/agent/doTestNodeRunner": {
  645. "post": {
  646. "summary": "测试运行智能体节点",
  647. "description": "",
  648. "tags": ["Agent"],
  649. "parameters": [
  650. {
  651. "name": "Authorization",
  652. "in": "header",
  653. "description": "认证令牌",
  654. "required": false,
  655. "schema": {
  656. "type": "string",
  657. "default": "bpm_client_1473687766939209728",
  658. "example": "bpm_client_1473687766939209728"
  659. }
  660. }
  661. ],
  662. "requestBody": {
  663. "required": true,
  664. "content": {
  665. "application/json": {
  666. "schema": {
  667. "type": "object",
  668. "properties": {
  669. "id": {
  670. "type": "string",
  671. "format": "uuid"
  672. },
  673. "appAgentId": {
  674. "type": "string",
  675. "format": "uuid"
  676. }
  677. },
  678. "required": ["id", "appAgentId"]
  679. }
  680. }
  681. }
  682. },
  683. "responses": {
  684. "200": {
  685. "description": "成功响应",
  686. "content": {
  687. "application/json": {
  688. "example": {
  689. "isSuccess": true,
  690. "code": 1,
  691. "isAuthorized": true
  692. },
  693. "schema": {
  694. "type": "object",
  695. "properties": {
  696. "isSuccess": {
  697. "type": "boolean"
  698. },
  699. "code": {
  700. "type": "integer",
  701. "format": "int32"
  702. },
  703. "isAuthorized": {
  704. "type": "boolean"
  705. }
  706. },
  707. "required": ["isSuccess", "code", "isAuthorized"]
  708. }
  709. }
  710. }
  711. }
  712. }
  713. }
  714. },
  715. "/api/agent/doDeleteAgentNode": {
  716. "post": {
  717. "summary": "删除智能体节点",
  718. "deprecated": false,
  719. "description": "",
  720. "tags": ["Agent"],
  721. "parameters": [
  722. {
  723. "name": "Authorization",
  724. "in": "header",
  725. "description": "",
  726. "example": "bpm_client_1485689273129635840",
  727. "schema": {
  728. "type": "string",
  729. "default": "bpm_client_1485689273129635840"
  730. }
  731. }
  732. ],
  733. "requestBody": {
  734. "content": {
  735. "application/json": {
  736. "schema": {
  737. "type": "object",
  738. "properties": {
  739. "id": {
  740. "type": "string"
  741. }
  742. },
  743. "required": ["id"]
  744. },
  745. "example": {
  746. "id": "492048da-6f33-4a36-adc5-cff4b973b053"
  747. }
  748. }
  749. },
  750. "required": true
  751. },
  752. "responses": {
  753. "200": {
  754. "description": "",
  755. "content": {
  756. "application/json": {
  757. "schema": {
  758. "type": "object",
  759. "properties": {
  760. "isSuccess": {
  761. "type": "boolean"
  762. },
  763. "code": {
  764. "type": "integer"
  765. },
  766. "isAuthorized": {
  767. "type": "boolean"
  768. }
  769. },
  770. "required": ["isSuccess", "code", "isAuthorized"]
  771. },
  772. "example": {
  773. "isSuccess": true,
  774. "code": 1,
  775. "isAuthorized": true
  776. }
  777. }
  778. },
  779. "headers": {}
  780. }
  781. },
  782. "security": []
  783. }
  784. },
  785. "/api/agent/doNewEdge": {
  786. "post": {
  787. "summary": "新增智能体边缘信息",
  788. "deprecated": false,
  789. "description": "",
  790. "tags": ["Agent"],
  791. "parameters": [
  792. {
  793. "name": "Authorization",
  794. "in": "header",
  795. "description": "",
  796. "example": "bpm_client_1485689273129635840",
  797. "schema": {
  798. "type": "string",
  799. "default": "bpm_client_1485689273129635840"
  800. }
  801. }
  802. ],
  803. "requestBody": {
  804. "content": {
  805. "application/json": {
  806. "schema": {
  807. "type": "object",
  808. "properties": {
  809. "appAgentId": {
  810. "type": "string"
  811. },
  812. "source": {
  813. "type": "string"
  814. },
  815. "sourceHandle": {
  816. "type": "string"
  817. },
  818. "target": {
  819. "type": "string"
  820. },
  821. "zIndex": {
  822. "type": "integer"
  823. }
  824. },
  825. "required": ["appAgentId", "source", "target", "zIndex"]
  826. },
  827. "examples": {
  828. "1": {
  829. "value": {
  830. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  831. "source": "492048da-6f33-4a36-adc5-cff4b973b053",
  832. "target": "c91eb026-e86a-418f-a865-a98aa60bcf19",
  833. "zIndex": 0
  834. },
  835. "summary": "普通节点"
  836. },
  837. "2": {
  838. "value": {
  839. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  840. "source": "de35b389-3782-474c-9dd9-cb1356dea54b",
  841. "sourceHandle": "c2cb978e-fce8-11f0-a59d-266b7b87fca6-1",
  842. "target": "6764ede2-2c3d-46bb-ae9a-fb0a892aff84",
  843. "zIndex": 0
  844. },
  845. "summary": "条件分支节点边缘"
  846. }
  847. }
  848. }
  849. },
  850. "required": true
  851. },
  852. "responses": {
  853. "200": {
  854. "description": "",
  855. "content": {
  856. "application/json": {
  857. "schema": {
  858. "type": "object",
  859. "properties": {
  860. "isSuccess": {
  861. "type": "boolean"
  862. },
  863. "code": {
  864. "type": "integer"
  865. },
  866. "isAuthorized": {
  867. "type": "boolean"
  868. }
  869. },
  870. "required": ["isSuccess", "code", "isAuthorized"]
  871. },
  872. "example": {
  873. "isSuccess": true,
  874. "code": 1,
  875. "isAuthorized": true
  876. }
  877. }
  878. },
  879. "headers": {}
  880. }
  881. },
  882. "security": []
  883. }
  884. },
  885. "/api/agent/doSelectedEdge": {
  886. "post": {
  887. "summary": "选中智能体边缘",
  888. "deprecated": false,
  889. "description": "",
  890. "tags": ["Agent"],
  891. "parameters": [
  892. {
  893. "name": "Authorization",
  894. "in": "header",
  895. "description": "",
  896. "example": "bpm_client_1485689273129635840",
  897. "schema": {
  898. "type": "string",
  899. "default": "bpm_client_1485689273129635840"
  900. }
  901. }
  902. ],
  903. "requestBody": {
  904. "content": {
  905. "application/json": {
  906. "schema": {
  907. "type": "object",
  908. "properties": {
  909. "id": {
  910. "type": "string"
  911. }
  912. },
  913. "required": ["id"]
  914. },
  915. "example": {
  916. "id": "e518d540-2242-4def-8d42-381d9fab59ee"
  917. }
  918. }
  919. },
  920. "required": true
  921. },
  922. "responses": {
  923. "200": {
  924. "description": "",
  925. "content": {
  926. "application/json": {
  927. "schema": {
  928. "type": "object",
  929. "properties": {
  930. "isSuccess": {
  931. "type": "boolean"
  932. },
  933. "code": {
  934. "type": "integer"
  935. },
  936. "isAuthorized": {
  937. "type": "boolean"
  938. }
  939. },
  940. "required": ["isSuccess", "code", "isAuthorized"]
  941. },
  942. "example": {
  943. "isSuccess": true,
  944. "code": 1,
  945. "isAuthorized": true
  946. }
  947. }
  948. },
  949. "headers": {}
  950. }
  951. },
  952. "security": []
  953. }
  954. },
  955. "/api/openapi/doBatchGenerateUUID": {
  956. "post": {
  957. "summary": "批量生成UUID",
  958. "deprecated": false,
  959. "description": "",
  960. "tags": ["tools"],
  961. "parameters": [
  962. {
  963. "name": "Authorization",
  964. "in": "header",
  965. "description": "",
  966. "example": "bpm_client_1485689273129635840",
  967. "schema": {
  968. "type": "string",
  969. "default": "bpm_client_1485689273129635840"
  970. }
  971. }
  972. ],
  973. "responses": {
  974. "200": {
  975. "description": "",
  976. "content": {
  977. "application/json": {
  978. "schema": {
  979. "type": "object",
  980. "properties": {
  981. "isSuccess": {
  982. "type": "boolean"
  983. },
  984. "code": {
  985. "type": "integer"
  986. },
  987. "result": {
  988. "type": "array",
  989. "items": {
  990. "type": "string"
  991. }
  992. },
  993. "isAuthorized": {
  994. "type": "boolean"
  995. }
  996. },
  997. "required": ["isSuccess", "code", "result", "isAuthorized"]
  998. },
  999. "example": {
  1000. "isSuccess": true,
  1001. "code": 1,
  1002. "result": [
  1003. "a33c9f0a-bc3a-4a25-86ba-080ee6772063",
  1004. "efab3a9d-e5f6-4339-8d6c-6189b85d984f"
  1005. ],
  1006. "isAuthorized": true
  1007. }
  1008. }
  1009. },
  1010. "headers": {}
  1011. }
  1012. },
  1013. "security": []
  1014. }
  1015. }
  1016. },
  1017. "components": {
  1018. "schemas": {
  1019. "AgentNode": {
  1020. "type": "object",
  1021. "properties": {
  1022. "appAgentId": {
  1023. "type": "string",
  1024. "format": "uuid"
  1025. },
  1026. "creationTime": {
  1027. "type": "string",
  1028. "format": "date-time"
  1029. },
  1030. "creatorUserId": {
  1031. "type": "string",
  1032. "format": "uuid"
  1033. },
  1034. "data": {
  1035. "$ref": "#/components/schemas/NodeData"
  1036. },
  1037. "height": {
  1038. "type": "integer"
  1039. },
  1040. "id": {
  1041. "type": "string",
  1042. "format": "uuid"
  1043. },
  1044. "isDeleted": {
  1045. "type": "boolean"
  1046. },
  1047. "position": {
  1048. "type": "object",
  1049. "properties": {
  1050. "x": {
  1051. "type": "integer"
  1052. },
  1053. "y": {
  1054. "type": "integer"
  1055. }
  1056. },
  1057. "required": ["x", "y"]
  1058. },
  1059. "selected": {
  1060. "type": "boolean"
  1061. },
  1062. "type": {
  1063. "type": "string",
  1064. "enum": ["custom", "start", "end", "condition", "task", "http-request"]
  1065. },
  1066. "updateTime": {
  1067. "type": "string",
  1068. "format": "date-time"
  1069. },
  1070. "width": {
  1071. "type": "integer"
  1072. },
  1073. "zIndex": {
  1074. "type": "integer"
  1075. }
  1076. },
  1077. "required": [
  1078. "appAgentId",
  1079. "creationTime",
  1080. "creatorUserId",
  1081. "data",
  1082. "id",
  1083. "position",
  1084. "type"
  1085. ]
  1086. },
  1087. "NodeData": {
  1088. "type": "object",
  1089. "properties": {
  1090. "outputs": {
  1091. "type": "array",
  1092. "items": {
  1093. "type": "object",
  1094. "properties": {
  1095. "name": {
  1096. "type": "string"
  1097. },
  1098. "describe": {
  1099. "type": "string"
  1100. },
  1101. "type": {
  1102. "type": "string",
  1103. "enum": ["string", "number", "boolean", "object", "array"]
  1104. }
  1105. },
  1106. "required": ["name", "describe", "type"]
  1107. }
  1108. },
  1109. "output_can_alter": {
  1110. "type": "boolean"
  1111. },
  1112. "variables": {
  1113. "type": "array",
  1114. "items": {
  1115. "type": "string"
  1116. }
  1117. },
  1118. "method": {
  1119. "type": "string",
  1120. "enum": ["get", "post", "put", "delete", "patch", "head", "options"]
  1121. },
  1122. "ssl_verify": {
  1123. "type": "boolean"
  1124. },
  1125. "isInIteration": {
  1126. "type": "boolean"
  1127. },
  1128. "default_value": {
  1129. "type": "array",
  1130. "items": {
  1131. "type": "string"
  1132. }
  1133. },
  1134. "body": {
  1135. "$ref": "#/components/schemas/RequestBody"
  1136. },
  1137. "params": {
  1138. "type": "array",
  1139. "items": {
  1140. "type": "string"
  1141. }
  1142. },
  1143. "title": {
  1144. "type": "string"
  1145. },
  1146. "type": {
  1147. "type": "string",
  1148. "enum": ["http-request", "condition", "task"]
  1149. },
  1150. "error_strategy": {
  1151. "type": "string",
  1152. "enum": ["none", "retry", "abort", "continue"]
  1153. },
  1154. "retry_config": {
  1155. "type": "object",
  1156. "properties": {
  1157. "max_retries": {
  1158. "type": "integer",
  1159. "minimum": 0,
  1160. "maximum": 10
  1161. },
  1162. "retry_enabled": {
  1163. "type": "boolean"
  1164. },
  1165. "retry_interval": {
  1166. "type": "integer",
  1167. "minimum": 0,
  1168. "maximum": 5000
  1169. }
  1170. },
  1171. "required": ["max_retries", "retry_enabled", "retry_interval"]
  1172. },
  1173. "url": {
  1174. "type": "string",
  1175. "format": "uri"
  1176. },
  1177. "authorization": {
  1178. "type": "object",
  1179. "properties": {
  1180. "type": {
  1181. "type": "string",
  1182. "enum": ["none", "bearer", "basic", "api-key"]
  1183. },
  1184. "config": {
  1185. "type": "object",
  1186. "properties": {
  1187. "api_key": {
  1188. "type": "string"
  1189. },
  1190. "header": {
  1191. "type": "string"
  1192. },
  1193. "type": {
  1194. "type": "string"
  1195. }
  1196. }
  1197. }
  1198. },
  1199. "required": ["type", "config"]
  1200. },
  1201. "timeout_config": {
  1202. "type": "object",
  1203. "properties": {
  1204. "max_write_timeout": {
  1205. "type": "integer",
  1206. "minimum": 0
  1207. },
  1208. "max_read_timeout": {
  1209. "type": "integer",
  1210. "minimum": 0
  1211. },
  1212. "max_connect_timeout": {
  1213. "type": "integer",
  1214. "minimum": 0
  1215. }
  1216. },
  1217. "required": ["max_write_timeout", "max_read_timeout", "max_connect_timeout"]
  1218. },
  1219. "heads": {
  1220. "type": "array",
  1221. "items": {
  1222. "$ref": "#/components/schemas/HttpHeader"
  1223. }
  1224. },
  1225. "selected": {
  1226. "type": "boolean"
  1227. },
  1228. "desc": {
  1229. "type": "string"
  1230. },
  1231. "isInLoop": {
  1232. "type": "boolean"
  1233. }
  1234. },
  1235. "required": ["outputs", "method", "title", "type", "url"]
  1236. },
  1237. "RequestBody": {
  1238. "type": "object",
  1239. "properties": {
  1240. "data": {
  1241. "type": "array",
  1242. "items": {
  1243. "$ref": "#/components/schemas/RequestDataItem"
  1244. }
  1245. },
  1246. "type": {
  1247. "type": "string",
  1248. "enum": ["json", "form-data", "x-www-form-urlencoded", "raw", "binary"]
  1249. }
  1250. },
  1251. "required": ["data", "type"]
  1252. },
  1253. "RequestDataItem": {
  1254. "type": "object",
  1255. "properties": {
  1256. "type": {
  1257. "type": "string",
  1258. "enum": ["text", "file", "json"]
  1259. },
  1260. "value": {
  1261. "type": "string"
  1262. },
  1263. "key": {
  1264. "type": "string"
  1265. }
  1266. },
  1267. "required": ["type", "value"]
  1268. },
  1269. "HttpHeader": {
  1270. "type": "object",
  1271. "properties": {
  1272. "name": {
  1273. "type": "string"
  1274. },
  1275. "value": {
  1276. "type": "string"
  1277. }
  1278. },
  1279. "required": ["name", "value"]
  1280. }
  1281. },
  1282. "securitySchemes": {
  1283. "ApiKeyAuth": {
  1284. "type": "apiKey",
  1285. "in": "header",
  1286. "name": "Authorization"
  1287. }
  1288. }
  1289. },
  1290. "security": [
  1291. {
  1292. "ApiKeyAuth": []
  1293. }
  1294. ]
  1295. }