agent.openapi.json 39 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685
  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/openapi/doBatchGenerateUUID": {
  26. "post": {
  27. "summary": "批量生成UUID",
  28. "deprecated": false,
  29. "description": "",
  30. "tags": ["tools"],
  31. "parameters": [
  32. {
  33. "name": "Authorization",
  34. "in": "header",
  35. "description": "",
  36. "example": "bpm_client_1485689273129635840",
  37. "schema": {
  38. "type": "string",
  39. "default": "bpm_client_1485689273129635840"
  40. }
  41. }
  42. ],
  43. "responses": {
  44. "200": {
  45. "description": "",
  46. "content": {
  47. "application/json": {
  48. "schema": {
  49. "type": "object",
  50. "properties": {
  51. "isSuccess": {
  52. "type": "boolean"
  53. },
  54. "code": {
  55. "type": "integer"
  56. },
  57. "result": {
  58. "type": "array",
  59. "items": {
  60. "type": "string"
  61. }
  62. },
  63. "isAuthorized": {
  64. "type": "boolean"
  65. }
  66. },
  67. "required": ["isSuccess", "code", "result", "isAuthorized"]
  68. },
  69. "example": {
  70. "isSuccess": true,
  71. "code": 1,
  72. "result": [
  73. "a33c9f0a-bc3a-4a25-86ba-080ee6772063",
  74. "efab3a9d-e5f6-4339-8d6c-6189b85d984f"
  75. ],
  76. "isAuthorized": true
  77. }
  78. }
  79. },
  80. "headers": {}
  81. }
  82. },
  83. "security": []
  84. }
  85. },
  86. "/api/agent/doEditAgent": {
  87. "post": {
  88. "summary": "智能体编辑",
  89. "description": "",
  90. "tags": ["Agent"],
  91. "parameters": [
  92. {
  93. "name": "Authorization",
  94. "in": "header",
  95. "description": "认证令牌",
  96. "required": false,
  97. "schema": {
  98. "type": "string",
  99. "default": "bpm_client_1473687766939209728",
  100. "example": "bpm_client_1473687766939209728"
  101. }
  102. }
  103. ],
  104. "responses": {
  105. "200": {
  106. "description": "成功响应",
  107. "content": {
  108. "application/json": {
  109. "example": {
  110. "isSuccess": true,
  111. "code": 1,
  112. "result": "20d31522-66e7-463e-81d7-7fb7fd5864f7",
  113. "isAuthorized": true
  114. },
  115. "schema": {
  116. "type": "object",
  117. "properties": {
  118. "isSuccess": {
  119. "type": "boolean"
  120. },
  121. "code": {
  122. "type": "integer",
  123. "format": "int32"
  124. },
  125. "result": {
  126. "type": "string",
  127. "format": "uuid"
  128. },
  129. "isAuthorized": {
  130. "type": "boolean"
  131. }
  132. },
  133. "required": ["isSuccess", "code", "result", "isAuthorized"]
  134. }
  135. }
  136. }
  137. }
  138. }
  139. }
  140. },
  141. "/api/agent/doSaveAgentVariables": {
  142. "post": {
  143. "summary": "保存智能体变量",
  144. "description": "",
  145. "tags": ["Agent"],
  146. "parameters": [
  147. {
  148. "name": "Authorization",
  149. "in": "header",
  150. "description": "认证令牌",
  151. "required": false,
  152. "schema": {
  153. "type": "string",
  154. "default": "bpm_client_1473687766939209728",
  155. "example": "bpm_client_1473687766939209728"
  156. }
  157. }
  158. ],
  159. "requestBody": {
  160. "required": true,
  161. "content": {
  162. "application/json": {
  163. "schema": {
  164. "type": "object",
  165. "properties": {
  166. "appAgentId": {
  167. "type": "string",
  168. "format": "uuid"
  169. },
  170. "conversation_variables": {
  171. "type": "array",
  172. "items": {
  173. "type": "string"
  174. }
  175. },
  176. "env_variables": {
  177. "type": "array",
  178. "items": {
  179. "type": "object",
  180. "properties": {
  181. "name": {
  182. "type": "string"
  183. },
  184. "value": {
  185. "type": "string"
  186. },
  187. "type": {
  188. "type": "string",
  189. "enum": ["string", "number", "boolean", "object", "array"]
  190. }
  191. },
  192. "required": ["name", "value", "type"]
  193. }
  194. }
  195. },
  196. "required": ["appAgentId", "conversation_variables", "env_variables"]
  197. }
  198. }
  199. }
  200. },
  201. "responses": {
  202. "200": {
  203. "description": "成功响应",
  204. "content": {
  205. "application/json": {
  206. "example": {
  207. "isSuccess": true,
  208. "code": 1,
  209. "isAuthorized": true
  210. },
  211. "schema": {
  212. "type": "object",
  213. "properties": {
  214. "isSuccess": {
  215. "type": "boolean"
  216. },
  217. "code": {
  218. "type": "integer",
  219. "format": "int32"
  220. },
  221. "result": {
  222. "type": "string"
  223. },
  224. "isAuthorized": {
  225. "type": "boolean"
  226. }
  227. },
  228. "required": ["isSuccess", "code", "result", "isAuthorized"]
  229. }
  230. }
  231. }
  232. }
  233. }
  234. }
  235. },
  236. "/api/agent/getAgentInfo": {
  237. "post": {
  238. "summary": "获取智能体信息",
  239. "description": "",
  240. "tags": ["Agent"],
  241. "parameters": [
  242. {
  243. "name": "Authorization",
  244. "in": "header",
  245. "description": "认证令牌",
  246. "required": false,
  247. "schema": {
  248. "type": "string",
  249. "default": "bpm_client_1473687766939209728",
  250. "example": "bpm_client_1473687766939209728"
  251. }
  252. }
  253. ],
  254. "requestBody": {
  255. "required": true,
  256. "content": {
  257. "application/json": {
  258. "schema": {
  259. "type": "object",
  260. "properties": {
  261. "id": {
  262. "type": "string",
  263. "format": "uuid"
  264. }
  265. },
  266. "required": ["id"]
  267. }
  268. }
  269. }
  270. },
  271. "responses": {
  272. "200": {
  273. "description": "成功响应",
  274. "content": {
  275. "application/json": {
  276. "example": {
  277. "isSuccess": true,
  278. "code": 1,
  279. "result": {
  280. "conversation_variables": [],
  281. "edges": [],
  282. "env_variables": [
  283. {
  284. "is_require": false,
  285. "name": "api_address",
  286. "type": "string",
  287. "value": "http://shalu-componenttesting-admin-dev.shalu.com"
  288. }
  289. ],
  290. "id": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  291. "name": "测试智能体",
  292. "nodes": [
  293. {
  294. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  295. "creationTime": "2026-01-28 10:24:45",
  296. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  297. "data": {
  298. "outputs": [
  299. {
  300. "name": "body",
  301. "describe": "响应内容",
  302. "type": "string"
  303. },
  304. {
  305. "name": "status_code",
  306. "describe": "响应状态码",
  307. "type": "number"
  308. },
  309. {
  310. "name": "headers",
  311. "describe": "响应头列表 JSON",
  312. "type": "object"
  313. }
  314. ],
  315. "output_can_alter": false,
  316. "variables": [],
  317. "method": "post",
  318. "ssl_verify": false,
  319. "isInIteration": false,
  320. "default_value": [],
  321. "body": {
  322. "data": [
  323. {
  324. "type": "text",
  325. "value": "{\"name\":\"测试智能体\",\"profilePhoto\":\"1111\",\"remark\":\"描述\",\"viewPort\":{\"x\":10,\"y\":\"10\",\"zoom\":1}}",
  326. "key": ""
  327. }
  328. ],
  329. "type": "json"
  330. },
  331. "params": [],
  332. "title": "HTTP 请求",
  333. "type": "http-request",
  334. "error_strategy": "none",
  335. "retry_config": {
  336. "max_retries": 3,
  337. "retry_enabled": false,
  338. "retry_interval": 100
  339. },
  340. "url": "http://shalu-componenttesting-admin-dev.shalu.com/api/agent/doEditAgent",
  341. "authorization": {
  342. "type": "none",
  343. "config": {
  344. "api_key": "",
  345. "header": "",
  346. "type": ""
  347. }
  348. },
  349. "timeout_config": {
  350. "max_write_timeout": 0,
  351. "max_read_timeout": 0,
  352. "max_connect_timeout": 0
  353. },
  354. "heads": [
  355. {
  356. "name": "Authorization",
  357. "value": "bpm_client_1473108597171818496"
  358. }
  359. ],
  360. "selected": true,
  361. "desc": "",
  362. "isInLoop": false
  363. },
  364. "height": 40,
  365. "id": "492048da-6f33-4a36-adc5-cff4b973b053",
  366. "isDeleted": false,
  367. "position": {
  368. "x": 20,
  369. "y": 30
  370. },
  371. "selected": true,
  372. "type": "custom",
  373. "updateTime": "2026-01-28 11:00:09",
  374. "width": 20,
  375. "zIndex": 1
  376. }
  377. ],
  378. "profilePhoto": "1111",
  379. "viewPort": {
  380. "x": 10,
  381. "y": 10,
  382. "zoom": 1
  383. }
  384. },
  385. "isAuthorized": true
  386. },
  387. "schema": {
  388. "type": "object",
  389. "properties": {
  390. "isSuccess": {
  391. "type": "boolean"
  392. },
  393. "code": {
  394. "type": "integer",
  395. "format": "int32"
  396. },
  397. "result": {
  398. "type": "object",
  399. "properties": {
  400. "conversation_variables": {
  401. "type": "array",
  402. "items": {
  403. "type": "string"
  404. }
  405. },
  406. "edges": {
  407. "type": "array",
  408. "items": {
  409. "type": "string"
  410. }
  411. },
  412. "env_variables": {
  413. "type": "array",
  414. "items": {
  415. "type": "object",
  416. "properties": {
  417. "is_require": {
  418. "type": "boolean"
  419. },
  420. "name": {
  421. "type": "string"
  422. },
  423. "type": {
  424. "type": "string",
  425. "enum": ["string", "number", "boolean", "object", "array"]
  426. },
  427. "value": {
  428. "type": "string"
  429. }
  430. },
  431. "required": ["name", "type", "value"]
  432. }
  433. },
  434. "id": {
  435. "type": "string",
  436. "format": "uuid"
  437. },
  438. "name": {
  439. "type": "string"
  440. },
  441. "nodes": {
  442. "type": "array",
  443. "items": {
  444. "$ref": "#/components/schemas/AgentNode"
  445. }
  446. },
  447. "profilePhoto": {
  448. "type": "string"
  449. },
  450. "viewPort": {
  451. "type": "object",
  452. "properties": {
  453. "x": {
  454. "type": "integer"
  455. },
  456. "y": {
  457. "type": "integer"
  458. },
  459. "zoom": {
  460. "type": "integer"
  461. }
  462. },
  463. "required": ["x", "y", "zoom"]
  464. }
  465. },
  466. "required": ["id", "name", "nodes", "profilePhoto", "viewPort"]
  467. },
  468. "isAuthorized": {
  469. "type": "boolean"
  470. }
  471. },
  472. "required": ["isSuccess", "code", "result", "isAuthorized"]
  473. }
  474. }
  475. }
  476. }
  477. }
  478. }
  479. },
  480. "/api/agent/doNewAgentNode": {
  481. "post": {
  482. "summary": "智能体添加节点",
  483. "description": "",
  484. "tags": ["Agent"],
  485. "parameters": [
  486. {
  487. "name": "Authorization",
  488. "in": "header",
  489. "description": "认证令牌",
  490. "required": false,
  491. "schema": {
  492. "type": "string",
  493. "default": "bpm_client_1473687766939209728",
  494. "example": "bpm_client_1473687766939209728"
  495. }
  496. }
  497. ],
  498. "requestBody": {
  499. "required": true,
  500. "content": {
  501. "application/json": {
  502. "schema": {
  503. "type": "object",
  504. "properties": {
  505. "appAgentId": {
  506. "type": "string",
  507. "format": "uuid"
  508. },
  509. "position": {
  510. "type": "object",
  511. "properties": {
  512. "x": {
  513. "type": "integer"
  514. },
  515. "y": {
  516. "type": "integer"
  517. }
  518. },
  519. "required": ["x", "y"]
  520. },
  521. "width": {
  522. "type": "integer"
  523. },
  524. "height": {
  525. "type": "integer"
  526. },
  527. "selected": {
  528. "type": "boolean"
  529. },
  530. "nodeType": {
  531. "type": "string",
  532. "enum": ["custom", "start", "end", "condition", "task", "http-request"]
  533. },
  534. "zIndex": {
  535. "type": "integer"
  536. },
  537. "parentId": {
  538. "type": "string",
  539. "format": "uuid"
  540. }
  541. },
  542. "required": [
  543. "appAgentId",
  544. "parentId",
  545. "position",
  546. "width",
  547. "height",
  548. "selected",
  549. "nodeType",
  550. "zIndex"
  551. ]
  552. }
  553. }
  554. }
  555. },
  556. "responses": {
  557. "200": {
  558. "description": "成功响应",
  559. "content": {
  560. "application/json": {
  561. "example": {
  562. "isSuccess": true,
  563. "code": 1,
  564. "isAuthorized": true
  565. },
  566. "schema": {
  567. "type": "object",
  568. "properties": {
  569. "isSuccess": {
  570. "type": "boolean"
  571. },
  572. "code": {
  573. "type": "integer",
  574. "format": "int32"
  575. },
  576. "isAuthorized": {
  577. "type": "boolean"
  578. }
  579. },
  580. "required": ["isSuccess", "code", "isAuthorized"]
  581. }
  582. }
  583. }
  584. }
  585. }
  586. }
  587. },
  588. "/api/agent/doUpdateAgentNode": {
  589. "post": {
  590. "summary": "更新智能体节点",
  591. "description": "",
  592. "tags": ["Agent"],
  593. "parameters": [
  594. {
  595. "name": "Authorization",
  596. "in": "header",
  597. "description": "认证令牌",
  598. "required": false,
  599. "schema": {
  600. "type": "string",
  601. "default": "bpm_client_1473687766939209728",
  602. "example": "bpm_client_1473687766939209728"
  603. }
  604. }
  605. ],
  606. "requestBody": {
  607. "required": true,
  608. "content": {
  609. "application/json": {
  610. "schema": {
  611. "type": "object",
  612. "properties": {
  613. "id": {
  614. "type": "string",
  615. "format": "uuid"
  616. },
  617. "appAgentId": {
  618. "type": "string",
  619. "format": "uuid"
  620. },
  621. "parentId": {
  622. "type": "string",
  623. "format": "uuid"
  624. },
  625. "position": {
  626. "type": "object",
  627. "properties": {
  628. "x": {
  629. "type": "integer"
  630. },
  631. "y": {
  632. "type": "integer"
  633. }
  634. },
  635. "required": ["x", "y"]
  636. },
  637. "width": {
  638. "type": "integer"
  639. },
  640. "height": {
  641. "type": "integer"
  642. },
  643. "selected": {
  644. "type": "boolean"
  645. },
  646. "nodeType": {
  647. "type": "string",
  648. "enum": ["custom", "start", "end", "condition", "task", "http-request"]
  649. },
  650. "zIndex": {
  651. "type": "integer"
  652. },
  653. "data": {
  654. "type": "object"
  655. }
  656. },
  657. "required": [
  658. "id",
  659. "appAgentId",
  660. "parentId",
  661. "position",
  662. "width",
  663. "height",
  664. "selected",
  665. "nodeType",
  666. "zIndex",
  667. "data"
  668. ]
  669. }
  670. }
  671. }
  672. },
  673. "responses": {
  674. "200": {
  675. "description": "成功响应",
  676. "content": {
  677. "application/json": {
  678. "example": {
  679. "isSuccess": true,
  680. "code": 1,
  681. "isAuthorized": true
  682. },
  683. "schema": {
  684. "type": "object",
  685. "properties": {
  686. "isSuccess": {
  687. "type": "boolean"
  688. },
  689. "code": {
  690. "type": "integer",
  691. "format": "int32"
  692. },
  693. "isAuthorized": {
  694. "type": "boolean"
  695. }
  696. },
  697. "required": ["isSuccess", "code", "isAuthorized"]
  698. }
  699. }
  700. }
  701. }
  702. }
  703. }
  704. },
  705. "/api/agent/doDeleteAgentNode": {
  706. "post": {
  707. "summary": "删除智能体节点",
  708. "deprecated": false,
  709. "description": "",
  710. "tags": ["Agent"],
  711. "parameters": [
  712. {
  713. "name": "Authorization",
  714. "in": "header",
  715. "description": "",
  716. "example": "bpm_client_1485689273129635840",
  717. "schema": {
  718. "type": "string",
  719. "default": "bpm_client_1485689273129635840"
  720. }
  721. }
  722. ],
  723. "requestBody": {
  724. "content": {
  725. "application/json": {
  726. "schema": {
  727. "type": "object",
  728. "properties": {
  729. "id": {
  730. "type": "string"
  731. }
  732. },
  733. "required": ["id"]
  734. },
  735. "example": {
  736. "id": "492048da-6f33-4a36-adc5-cff4b973b053"
  737. }
  738. }
  739. },
  740. "required": true
  741. },
  742. "responses": {
  743. "200": {
  744. "description": "",
  745. "content": {
  746. "application/json": {
  747. "schema": {
  748. "type": "object",
  749. "properties": {
  750. "isSuccess": {
  751. "type": "boolean"
  752. },
  753. "code": {
  754. "type": "integer"
  755. },
  756. "isAuthorized": {
  757. "type": "boolean"
  758. }
  759. },
  760. "required": ["isSuccess", "code", "isAuthorized"]
  761. },
  762. "example": {
  763. "isSuccess": true,
  764. "code": 1,
  765. "isAuthorized": true
  766. }
  767. }
  768. },
  769. "headers": {}
  770. }
  771. },
  772. "security": []
  773. }
  774. },
  775. "/api/agent/doNewEdge": {
  776. "post": {
  777. "summary": "新增智能体边缘信息",
  778. "deprecated": false,
  779. "description": "",
  780. "tags": ["Agent"],
  781. "parameters": [
  782. {
  783. "name": "Authorization",
  784. "in": "header",
  785. "description": "",
  786. "example": "bpm_client_1485689273129635840",
  787. "schema": {
  788. "type": "string",
  789. "default": "bpm_client_1485689273129635840"
  790. }
  791. }
  792. ],
  793. "requestBody": {
  794. "content": {
  795. "application/json": {
  796. "schema": {
  797. "type": "object",
  798. "properties": {
  799. "appAgentId": {
  800. "type": "string"
  801. },
  802. "source": {
  803. "type": "string"
  804. },
  805. "sourceHandle": {
  806. "type": "string"
  807. },
  808. "target": {
  809. "type": "string"
  810. },
  811. "zIndex": {
  812. "type": "integer"
  813. }
  814. },
  815. "required": ["appAgentId", "source", "target", "zIndex"]
  816. },
  817. "examples": {
  818. "1": {
  819. "value": {
  820. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  821. "source": "492048da-6f33-4a36-adc5-cff4b973b053",
  822. "target": "c91eb026-e86a-418f-a865-a98aa60bcf19",
  823. "zIndex": 0
  824. },
  825. "summary": "普通节点"
  826. },
  827. "2": {
  828. "value": {
  829. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  830. "source": "de35b389-3782-474c-9dd9-cb1356dea54b",
  831. "sourceHandle": "c2cb978e-fce8-11f0-a59d-266b7b87fca6-1",
  832. "target": "6764ede2-2c3d-46bb-ae9a-fb0a892aff84",
  833. "zIndex": 0
  834. },
  835. "summary": "条件分支节点边缘"
  836. }
  837. }
  838. }
  839. },
  840. "required": true
  841. },
  842. "responses": {
  843. "200": {
  844. "description": "",
  845. "content": {
  846. "application/json": {
  847. "schema": {
  848. "type": "object",
  849. "properties": {
  850. "isSuccess": {
  851. "type": "boolean"
  852. },
  853. "code": {
  854. "type": "integer"
  855. },
  856. "isAuthorized": {
  857. "type": "boolean"
  858. }
  859. },
  860. "required": ["isSuccess", "code", "isAuthorized"]
  861. },
  862. "example": {
  863. "isSuccess": true,
  864. "code": 1,
  865. "isAuthorized": true
  866. }
  867. }
  868. },
  869. "headers": {}
  870. }
  871. },
  872. "security": []
  873. }
  874. },
  875. "/api/agent/doDeleteEdge": {
  876. "post": {
  877. "summary": "删除智能体边缘信息",
  878. "deprecated": false,
  879. "description": "",
  880. "tags": ["Agent"],
  881. "parameters": [
  882. {
  883. "name": "Authorization",
  884. "in": "header",
  885. "description": "",
  886. "example": "bpm_client_1486435889042165760",
  887. "schema": {
  888. "type": "string",
  889. "default": "bpm_client_1486435889042165760"
  890. }
  891. }
  892. ],
  893. "requestBody": {
  894. "content": {
  895. "application/json": {
  896. "schema": {
  897. "type": "object",
  898. "properties": {
  899. "id": {
  900. "type": "string"
  901. }
  902. },
  903. "required": ["id"]
  904. },
  905. "example": {
  906. "id": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8"
  907. }
  908. }
  909. },
  910. "required": true
  911. },
  912. "responses": {
  913. "200": {
  914. "description": "",
  915. "content": {
  916. "application/json": {
  917. "schema": {
  918. "type": "object",
  919. "properties": {
  920. "isSuccess": {
  921. "type": "boolean"
  922. },
  923. "code": {
  924. "type": "integer"
  925. },
  926. "isAuthorized": {
  927. "type": "boolean"
  928. }
  929. },
  930. "required": ["isSuccess", "code", "isAuthorized"]
  931. },
  932. "example": {
  933. "isSuccess": true,
  934. "code": 1,
  935. "isAuthorized": true
  936. }
  937. }
  938. },
  939. "headers": {}
  940. }
  941. },
  942. "security": []
  943. }
  944. },
  945. "/api/agent/doSelectedEdge": {
  946. "post": {
  947. "summary": "选中智能体边缘",
  948. "deprecated": false,
  949. "description": "",
  950. "tags": ["Agent"],
  951. "parameters": [
  952. {
  953. "name": "Authorization",
  954. "in": "header",
  955. "description": "",
  956. "example": "bpm_client_1486435889042165760",
  957. "schema": {
  958. "type": "string",
  959. "default": "bpm_client_1486435889042165760"
  960. }
  961. }
  962. ],
  963. "requestBody": {
  964. "content": {
  965. "application/json": {
  966. "schema": {
  967. "type": "object",
  968. "properties": {
  969. "id": {
  970. "type": "string"
  971. }
  972. },
  973. "required": ["id"]
  974. },
  975. "example": {
  976. "id": "e518d540-2242-4def-8d42-381d9fab59ee"
  977. }
  978. }
  979. },
  980. "required": true
  981. },
  982. "responses": {
  983. "200": {
  984. "description": "",
  985. "content": {
  986. "application/json": {
  987. "schema": {
  988. "type": "object",
  989. "properties": {
  990. "isSuccess": {
  991. "type": "boolean"
  992. },
  993. "code": {
  994. "type": "integer"
  995. },
  996. "isAuthorized": {
  997. "type": "boolean"
  998. }
  999. },
  1000. "required": ["isSuccess", "code", "isAuthorized"]
  1001. },
  1002. "example": {
  1003. "isSuccess": true,
  1004. "code": 1,
  1005. "isAuthorized": true
  1006. }
  1007. }
  1008. },
  1009. "headers": {}
  1010. }
  1011. },
  1012. "security": []
  1013. }
  1014. },
  1015. "/api/agent/doExecute": {
  1016. "post": {
  1017. "summary": "运行智能体",
  1018. "deprecated": false,
  1019. "description": "",
  1020. "tags": ["Agent"],
  1021. "parameters": [
  1022. {
  1023. "name": "Authorization",
  1024. "in": "header",
  1025. "description": "",
  1026. "example": "bpm_client_1486435889042165760",
  1027. "schema": {
  1028. "type": "string",
  1029. "default": "bpm_client_1486435889042165760"
  1030. }
  1031. }
  1032. ],
  1033. "requestBody": {
  1034. "content": {
  1035. "application/json": {
  1036. "schema": {
  1037. "type": "object",
  1038. "properties": {
  1039. "appAgentId": {
  1040. "type": "string"
  1041. },
  1042. "start_node_id": {
  1043. "type": "string"
  1044. },
  1045. "is_debugger": {
  1046. "type": "boolean"
  1047. }
  1048. },
  1049. "required": ["appAgentId", "start_node_id", "is_debugger"]
  1050. },
  1051. "example": {
  1052. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  1053. "start_node_id": "492048da-6f33-4a36-adc5-cff4b973b053",
  1054. "is_debugger": true
  1055. }
  1056. }
  1057. },
  1058. "required": true
  1059. },
  1060. "responses": {
  1061. "200": {
  1062. "description": "",
  1063. "content": {
  1064. "application/json": {
  1065. "schema": {
  1066. "type": "object",
  1067. "properties": {
  1068. "isSuccess": {
  1069. "type": "boolean"
  1070. },
  1071. "code": {
  1072. "type": "integer"
  1073. },
  1074. "result": {
  1075. "type": "object",
  1076. "properties": {
  1077. "agent": {
  1078. "type": "object",
  1079. "properties": {
  1080. "conversation_variables": {
  1081. "type": "array",
  1082. "items": {
  1083. "type": "string"
  1084. }
  1085. },
  1086. "creationTime": {
  1087. "type": "string"
  1088. },
  1089. "creatorUserId": {
  1090. "type": "string"
  1091. },
  1092. "env_variables": {
  1093. "type": "array",
  1094. "items": {
  1095. "type": "object",
  1096. "properties": {
  1097. "is_require": {
  1098. "type": "boolean"
  1099. },
  1100. "name": {
  1101. "type": "string"
  1102. },
  1103. "type": {
  1104. "type": "string"
  1105. },
  1106. "value": {
  1107. "type": "string"
  1108. }
  1109. }
  1110. }
  1111. },
  1112. "id": {
  1113. "type": "string"
  1114. },
  1115. "isDeleted": {
  1116. "type": "boolean"
  1117. },
  1118. "name": {
  1119. "type": "string"
  1120. },
  1121. "profilePhoto": {
  1122. "type": "string"
  1123. },
  1124. "remark": {
  1125. "type": "string"
  1126. },
  1127. "updateTime": {
  1128. "type": "string"
  1129. },
  1130. "viewPort": {
  1131. "type": "object",
  1132. "properties": {
  1133. "x": {
  1134. "type": "integer"
  1135. },
  1136. "y": {
  1137. "type": "integer"
  1138. },
  1139. "zoom": {
  1140. "type": "integer"
  1141. }
  1142. },
  1143. "required": ["x", "y", "zoom"]
  1144. }
  1145. },
  1146. "required": [
  1147. "conversation_variables",
  1148. "creationTime",
  1149. "creatorUserId",
  1150. "env_variables",
  1151. "id",
  1152. "isDeleted",
  1153. "name",
  1154. "profilePhoto",
  1155. "remark",
  1156. "updateTime",
  1157. "viewPort"
  1158. ]
  1159. },
  1160. "runVariable": {
  1161. "type": "object",
  1162. "properties": {
  1163. "session": {
  1164. "type": "object",
  1165. "properties": {}
  1166. },
  1167. "492048da-6f33-4a36-adc5-cff4b973b053": {
  1168. "type": "object",
  1169. "properties": {
  1170. "headers": {
  1171. "type": "object",
  1172. "properties": {
  1173. "transfer-Encoding": {
  1174. "type": "string"
  1175. },
  1176. "access-Control-Expose-Headers": {
  1177. "type": "string"
  1178. },
  1179. "server": {
  1180. "type": "string"
  1181. },
  1182. "access-Control-Allow-Credentials": {
  1183. "type": "string"
  1184. },
  1185. "connection": {
  1186. "type": "string"
  1187. },
  1188. "access-Control-Max-Age": {
  1189. "type": "string"
  1190. },
  1191. "date": {
  1192. "type": "string"
  1193. },
  1194. "x-proxy-pass": {
  1195. "type": "string"
  1196. },
  1197. "content-Type": {
  1198. "type": "string"
  1199. }
  1200. },
  1201. "required": [
  1202. "transfer-Encoding",
  1203. "access-Control-Expose-Headers",
  1204. "server",
  1205. "access-Control-Allow-Credentials",
  1206. "connection",
  1207. "access-Control-Max-Age",
  1208. "date",
  1209. "x-proxy-pass",
  1210. "content-Type"
  1211. ]
  1212. },
  1213. "status_code": {
  1214. "type": "integer"
  1215. },
  1216. "body": {
  1217. "type": "string"
  1218. },
  1219. "$execute_result": {
  1220. "type": "object",
  1221. "properties": {
  1222. "code": {
  1223. "type": "integer"
  1224. },
  1225. "data": {
  1226. "type": "object",
  1227. "properties": {
  1228. "cookieList": {
  1229. "type": "array",
  1230. "items": {
  1231. "type": "string"
  1232. }
  1233. },
  1234. "error": {
  1235. "type": "boolean"
  1236. },
  1237. "statusCode": {
  1238. "type": "integer"
  1239. },
  1240. "success": {
  1241. "type": "boolean"
  1242. },
  1243. "throwableMsg": {
  1244. "type": "string"
  1245. }
  1246. },
  1247. "required": [
  1248. "cookieList",
  1249. "error",
  1250. "statusCode",
  1251. "success",
  1252. "throwableMsg"
  1253. ]
  1254. },
  1255. "error": {
  1256. "type": "boolean"
  1257. },
  1258. "isSelected": {
  1259. "type": "boolean"
  1260. },
  1261. "msg": {
  1262. "type": "string"
  1263. },
  1264. "success": {
  1265. "type": "boolean"
  1266. },
  1267. "ts": {
  1268. "type": "string"
  1269. }
  1270. },
  1271. "required": [
  1272. "code",
  1273. "data",
  1274. "error",
  1275. "isSelected",
  1276. "msg",
  1277. "success",
  1278. "ts"
  1279. ]
  1280. }
  1281. },
  1282. "required": ["headers", "status_code", "body", "$execute_result"]
  1283. },
  1284. "env": {
  1285. "type": "object",
  1286. "properties": {
  1287. "api_address": {
  1288. "type": "string"
  1289. }
  1290. },
  1291. "required": ["api_address"]
  1292. }
  1293. },
  1294. "required": ["session", "492048da-6f33-4a36-adc5-cff4b973b053", "env"]
  1295. },
  1296. "run_nodes": {
  1297. "type": "array",
  1298. "items": {
  1299. "type": "string"
  1300. }
  1301. }
  1302. },
  1303. "required": ["agent", "runVariable", "run_nodes"]
  1304. },
  1305. "isAuthorized": {
  1306. "type": "boolean"
  1307. }
  1308. },
  1309. "required": ["isSuccess", "code", "result", "isAuthorized"]
  1310. },
  1311. "example": {
  1312. "isSuccess": true,
  1313. "code": 1,
  1314. "result": {
  1315. "agent": {
  1316. "conversation_variables": [],
  1317. "creationTime": "2026-01-27 19:02:30",
  1318. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  1319. "env_variables": [
  1320. {
  1321. "is_require": false,
  1322. "name": "api_address",
  1323. "type": "string",
  1324. "value": "http://shalu-componenttesting-admin-dev.shalu.com"
  1325. }
  1326. ],
  1327. "id": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  1328. "isDeleted": false,
  1329. "name": "测试智能体",
  1330. "profilePhoto": "1111",
  1331. "remark": "描述",
  1332. "updateTime": "2026-01-27 19:02:30",
  1333. "viewPort": {
  1334. "x": 10,
  1335. "y": 10,
  1336. "zoom": 1
  1337. }
  1338. },
  1339. "runVariable": {
  1340. "c91eb026-e86a-418f-a865-a98aa60bcf19": {
  1341. "result": ["11", "22", "33"],
  1342. "$execute_result": {
  1343. "code": 1,
  1344. "error": false,
  1345. "isSelected": false,
  1346. "msg": "SUCCESS",
  1347. "success": true,
  1348. "ts": "2026-03-04 20:18:17"
  1349. }
  1350. },
  1351. "cae0c279-c1aa-40b6-9702-1df2af104a9b": {
  1352. "aa": [11, 22, 33],
  1353. "ifout": false
  1354. },
  1355. "session": {},
  1356. "492048da-6f33-4a36-adc5-cff4b973b053": {
  1357. "headers": {
  1358. "access-Control-Expose-Headers": "*,Content-Disposition",
  1359. "server": "nginx/1.26.1",
  1360. "access-Control-Allow-Credentials": "true",
  1361. "connection": "keep-alive",
  1362. "content-Length": "0",
  1363. "access-Control-Max-Age": "18000L",
  1364. "date": "Wed, 04 Mar 2026 12:18:17 GMT",
  1365. "x-proxy-pass": "shalu-componenttesting-admin-dev.shalu.com"
  1366. },
  1367. "status_code": 200,
  1368. "body": "",
  1369. "$execute_result": {
  1370. "code": 1,
  1371. "data": {
  1372. "cookieList": [],
  1373. "error": false,
  1374. "statusCode": 200,
  1375. "success": true,
  1376. "throwableMsg": ""
  1377. },
  1378. "error": false,
  1379. "isSelected": false,
  1380. "msg": "SUCCESS",
  1381. "success": true,
  1382. "ts": "2026-03-04 20:18:17"
  1383. }
  1384. },
  1385. "env": {
  1386. "api_address": "http://shalu-componenttesting-admin-dev.shalu.com"
  1387. }
  1388. },
  1389. "run_nodes": [
  1390. "492048da-6f33-4a36-adc5-cff4b973b053",
  1391. "c91eb026-e86a-418f-a865-a98aa60bcf19",
  1392. "cae0c279-c1aa-40b6-9702-1df2af104a9b"
  1393. ]
  1394. },
  1395. "isAuthorized": true
  1396. }
  1397. }
  1398. },
  1399. "headers": {}
  1400. }
  1401. },
  1402. "security": []
  1403. }
  1404. }
  1405. },
  1406. "components": {
  1407. "schemas": {
  1408. "AgentNode": {
  1409. "type": "object",
  1410. "properties": {
  1411. "appAgentId": {
  1412. "type": "string",
  1413. "format": "uuid"
  1414. },
  1415. "creationTime": {
  1416. "type": "string",
  1417. "format": "date-time"
  1418. },
  1419. "creatorUserId": {
  1420. "type": "string",
  1421. "format": "uuid"
  1422. },
  1423. "data": {
  1424. "$ref": "#/components/schemas/NodeData"
  1425. },
  1426. "height": {
  1427. "type": "integer"
  1428. },
  1429. "id": {
  1430. "type": "string",
  1431. "format": "uuid"
  1432. },
  1433. "isDeleted": {
  1434. "type": "boolean"
  1435. },
  1436. "position": {
  1437. "type": "object",
  1438. "properties": {
  1439. "x": {
  1440. "type": "integer"
  1441. },
  1442. "y": {
  1443. "type": "integer"
  1444. }
  1445. },
  1446. "required": ["x", "y"]
  1447. },
  1448. "selected": {
  1449. "type": "boolean"
  1450. },
  1451. "type": {
  1452. "type": "string",
  1453. "enum": ["custom", "start", "end", "condition", "task", "http-request"]
  1454. },
  1455. "updateTime": {
  1456. "type": "string",
  1457. "format": "date-time"
  1458. },
  1459. "width": {
  1460. "type": "integer"
  1461. },
  1462. "zIndex": {
  1463. "type": "integer"
  1464. }
  1465. },
  1466. "required": [
  1467. "appAgentId",
  1468. "creationTime",
  1469. "creatorUserId",
  1470. "data",
  1471. "id",
  1472. "position",
  1473. "type"
  1474. ]
  1475. },
  1476. "NodeData": {
  1477. "type": "object",
  1478. "properties": {
  1479. "outputs": {
  1480. "type": "array",
  1481. "items": {
  1482. "type": "object",
  1483. "properties": {
  1484. "name": {
  1485. "type": "string"
  1486. },
  1487. "describe": {
  1488. "type": "string"
  1489. },
  1490. "type": {
  1491. "type": "string",
  1492. "enum": ["string", "number", "boolean", "object", "array"]
  1493. }
  1494. },
  1495. "required": ["name", "describe", "type"]
  1496. }
  1497. },
  1498. "output_can_alter": {
  1499. "type": "boolean"
  1500. },
  1501. "variables": {
  1502. "type": "array",
  1503. "items": {
  1504. "type": "string"
  1505. }
  1506. },
  1507. "method": {
  1508. "type": "string",
  1509. "enum": ["get", "post", "put", "delete", "patch", "head", "options"]
  1510. },
  1511. "ssl_verify": {
  1512. "type": "boolean"
  1513. },
  1514. "isInIteration": {
  1515. "type": "boolean"
  1516. },
  1517. "default_value": {
  1518. "type": "array",
  1519. "items": {
  1520. "type": "string"
  1521. }
  1522. },
  1523. "body": {
  1524. "$ref": "#/components/schemas/RequestBody"
  1525. },
  1526. "params": {
  1527. "type": "array",
  1528. "items": {
  1529. "type": "string"
  1530. }
  1531. },
  1532. "title": {
  1533. "type": "string"
  1534. },
  1535. "type": {
  1536. "type": "string",
  1537. "enum": ["http-request", "condition", "task"]
  1538. },
  1539. "error_strategy": {
  1540. "type": "string",
  1541. "enum": ["none", "retry", "abort", "continue"]
  1542. },
  1543. "retry_config": {
  1544. "type": "object",
  1545. "properties": {
  1546. "max_retries": {
  1547. "type": "integer",
  1548. "minimum": 0,
  1549. "maximum": 10
  1550. },
  1551. "retry_enabled": {
  1552. "type": "boolean"
  1553. },
  1554. "retry_interval": {
  1555. "type": "integer",
  1556. "minimum": 0,
  1557. "maximum": 5000
  1558. }
  1559. },
  1560. "required": ["max_retries", "retry_enabled", "retry_interval"]
  1561. },
  1562. "url": {
  1563. "type": "string",
  1564. "format": "uri"
  1565. },
  1566. "authorization": {
  1567. "type": "object",
  1568. "properties": {
  1569. "type": {
  1570. "type": "string",
  1571. "enum": ["none", "bearer", "basic", "api-key"]
  1572. },
  1573. "config": {
  1574. "type": "object",
  1575. "properties": {
  1576. "api_key": {
  1577. "type": "string"
  1578. },
  1579. "header": {
  1580. "type": "string"
  1581. },
  1582. "type": {
  1583. "type": "string"
  1584. }
  1585. }
  1586. }
  1587. },
  1588. "required": ["type", "config"]
  1589. },
  1590. "timeout_config": {
  1591. "type": "object",
  1592. "properties": {
  1593. "max_write_timeout": {
  1594. "type": "integer",
  1595. "minimum": 0
  1596. },
  1597. "max_read_timeout": {
  1598. "type": "integer",
  1599. "minimum": 0
  1600. },
  1601. "max_connect_timeout": {
  1602. "type": "integer",
  1603. "minimum": 0
  1604. }
  1605. },
  1606. "required": ["max_write_timeout", "max_read_timeout", "max_connect_timeout"]
  1607. },
  1608. "heads": {
  1609. "type": "array",
  1610. "items": {
  1611. "$ref": "#/components/schemas/HttpHeader"
  1612. }
  1613. },
  1614. "selected": {
  1615. "type": "boolean"
  1616. },
  1617. "desc": {
  1618. "type": "string"
  1619. },
  1620. "isInLoop": {
  1621. "type": "boolean"
  1622. }
  1623. },
  1624. "required": ["outputs", "method", "title", "type", "url"]
  1625. },
  1626. "RequestBody": {
  1627. "type": "object",
  1628. "properties": {
  1629. "data": {
  1630. "type": "array",
  1631. "items": {
  1632. "$ref": "#/components/schemas/RequestDataItem"
  1633. }
  1634. },
  1635. "type": {
  1636. "type": "string",
  1637. "enum": ["json", "form-data", "x-www-form-urlencoded", "raw", "binary"]
  1638. }
  1639. },
  1640. "required": ["data", "type"]
  1641. },
  1642. "RequestDataItem": {
  1643. "type": "object",
  1644. "properties": {
  1645. "type": {
  1646. "type": "string",
  1647. "enum": ["text", "file", "json"]
  1648. },
  1649. "value": {
  1650. "type": "string"
  1651. },
  1652. "key": {
  1653. "type": "string"
  1654. }
  1655. },
  1656. "required": ["type", "value"]
  1657. },
  1658. "HttpHeader": {
  1659. "type": "object",
  1660. "properties": {
  1661. "name": {
  1662. "type": "string"
  1663. },
  1664. "value": {
  1665. "type": "string"
  1666. }
  1667. },
  1668. "required": ["name", "value"]
  1669. }
  1670. },
  1671. "securitySchemes": {
  1672. "ApiKeyAuth": {
  1673. "type": "apiKey",
  1674. "in": "header",
  1675. "name": "Authorization"
  1676. }
  1677. }
  1678. },
  1679. "security": [
  1680. {
  1681. "ApiKeyAuth": []
  1682. }
  1683. ]
  1684. }