agent.openapi.json 115 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207
  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_1490845225663336448",
  37. "schema": {
  38. "type": "string",
  39. "default": "bpm_client_1490845225663336448"
  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/getAgentList": {
  87. "post": {
  88. "summary": "获取智能体列表",
  89. "deprecated": false,
  90. "description": "",
  91. "tags": ["Agent"],
  92. "parameters": [
  93. {
  94. "name": "pageIndex",
  95. "in": "query",
  96. "description": "",
  97. "required": true,
  98. "example": 1,
  99. "schema": {
  100. "type": "number"
  101. }
  102. },
  103. {
  104. "name": "Authorization",
  105. "in": "header",
  106. "description": "",
  107. "example": "bpm_client_1490845225663336448",
  108. "schema": {
  109. "type": "string",
  110. "default": "bpm_client_1490845225663336448"
  111. }
  112. }
  113. ],
  114. "responses": {
  115. "200": {
  116. "description": "",
  117. "content": {
  118. "application/json": {
  119. "schema": {
  120. "type": "object",
  121. "properties": {
  122. "isSuccess": {
  123. "type": "boolean"
  124. },
  125. "code": {
  126. "type": "integer"
  127. },
  128. "result": {
  129. "type": "object",
  130. "properties": {
  131. "currentPage": {
  132. "type": "integer"
  133. },
  134. "hasNextPage": {
  135. "type": "boolean"
  136. },
  137. "hasPreviousPage": {
  138. "type": "boolean"
  139. },
  140. "model": {
  141. "type": "array",
  142. "items": {
  143. "type": "object",
  144. "properties": {
  145. "conversation_variables": {
  146. "type": "array",
  147. "items": {
  148. "type": "string"
  149. }
  150. },
  151. "env_variables": {
  152. "type": "array",
  153. "items": {
  154. "type": "object",
  155. "properties": {
  156. "name": {
  157. "type": "string"
  158. },
  159. "type": {
  160. "type": "string"
  161. },
  162. "value": {
  163. "type": "string"
  164. }
  165. },
  166. "required": ["name", "type", "value"]
  167. }
  168. },
  169. "id": {
  170. "type": "string"
  171. },
  172. "name": {
  173. "type": "string"
  174. },
  175. "profilePhoto": {
  176. "type": "string"
  177. },
  178. "viewPort": {
  179. "type": "object",
  180. "properties": {
  181. "x": {
  182. "type": "integer"
  183. },
  184. "y": {
  185. "type": "integer"
  186. },
  187. "zoom": {
  188. "type": "integer"
  189. }
  190. },
  191. "required": ["x", "y", "zoom"]
  192. }
  193. },
  194. "required": [
  195. "conversation_variables",
  196. "env_variables",
  197. "id",
  198. "name",
  199. "profilePhoto",
  200. "viewPort"
  201. ]
  202. }
  203. },
  204. "pageSize": {
  205. "type": "integer"
  206. },
  207. "totalCount": {
  208. "type": "integer"
  209. },
  210. "totalPages": {
  211. "type": "integer"
  212. }
  213. },
  214. "required": [
  215. "currentPage",
  216. "hasNextPage",
  217. "hasPreviousPage",
  218. "model",
  219. "pageSize",
  220. "totalCount",
  221. "totalPages"
  222. ]
  223. },
  224. "isAuthorized": {
  225. "type": "boolean"
  226. }
  227. },
  228. "required": ["isSuccess", "code", "result", "isAuthorized"]
  229. },
  230. "example": {
  231. "isSuccess": true,
  232. "code": 1,
  233. "result": {
  234. "currentPage": 1,
  235. "hasNextPage": true,
  236. "hasPreviousPage": false,
  237. "model": [
  238. {
  239. "conversation_variables": [],
  240. "env_variables": [],
  241. "id": "00601f51-1cc8-4370-b2c5-876a970cf43b",
  242. "name": "test2",
  243. "profilePhoto": "111",
  244. "viewPort": {
  245. "x": 0,
  246. "y": 0,
  247. "zoom": 1
  248. }
  249. },
  250. {
  251. "conversation_variables": [],
  252. "env_variables": [],
  253. "id": "06335124-1342-47b8-9720-9a7da7b807aa",
  254. "name": "test2",
  255. "profilePhoto": "asdfasdf",
  256. "viewPort": {
  257. "x": 0,
  258. "y": 0,
  259. "zoom": 1
  260. }
  261. },
  262. {
  263. "conversation_variables": [],
  264. "env_variables": [],
  265. "id": "11b85594-463e-4296-b2bd-9312343750e8",
  266. "name": "test",
  267. "profilePhoto": "111",
  268. "viewPort": {
  269. "x": 0,
  270. "y": 0,
  271. "zoom": 1
  272. }
  273. },
  274. {
  275. "conversation_variables": [],
  276. "env_variables": [],
  277. "id": "45b8d1f1-422c-4e96-95a3-5d3f97f1b46a",
  278. "name": "test1",
  279. "profilePhoto": "sdfasdfaf",
  280. "viewPort": {
  281. "x": 0,
  282. "y": 0,
  283. "zoom": 1
  284. }
  285. },
  286. {
  287. "conversation_variables": [],
  288. "env_variables": [
  289. {
  290. "name": "api_address",
  291. "type": "string",
  292. "value": "http://shalu-componenttesting-admin-dev.shalu.com"
  293. }
  294. ],
  295. "id": "899be084-f363-4275-b5ba-7ddbb1ca8bef",
  296. "name": "test3",
  297. "profilePhoto": "11",
  298. "viewPort": {
  299. "x": 0,
  300. "y": 0,
  301. "zoom": 1
  302. }
  303. },
  304. {
  305. "conversation_variables": [],
  306. "env_variables": [
  307. {
  308. "name": "test",
  309. "type": "string",
  310. "value": "aaaa"
  311. },
  312. {
  313. "name": "bbb",
  314. "type": "string",
  315. "value": "afasdf"
  316. },
  317. {
  318. "name": "test",
  319. "type": "string",
  320. "value": "aaaa"
  321. },
  322. {
  323. "name": "test22",
  324. "type": "string",
  325. "value": "344334"
  326. }
  327. ],
  328. "id": "8ad90e7a-cd4d-432a-83f5-49ba43ddd59d",
  329. "name": "test1",
  330. "profilePhoto": "22",
  331. "viewPort": {
  332. "x": 0,
  333. "y": 0,
  334. "zoom": 1
  335. }
  336. },
  337. {
  338. "conversation_variables": [],
  339. "env_variables": [
  340. {
  341. "name": "api_address",
  342. "type": "string",
  343. "value": "http://shalu-componenttesting-admin-dev.shalu.com"
  344. }
  345. ],
  346. "id": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  347. "name": "测试智能体",
  348. "profilePhoto": "1111",
  349. "viewPort": {
  350. "x": 10,
  351. "y": 10,
  352. "zoom": 1
  353. }
  354. },
  355. {
  356. "conversation_variables": [],
  357. "env_variables": [],
  358. "id": "d576a5a3-204b-4233-af8d-4358c774cc57",
  359. "name": "test",
  360. "profilePhoto": "232323",
  361. "viewPort": {
  362. "x": 0,
  363. "y": 0,
  364. "zoom": 1
  365. }
  366. },
  367. {
  368. "conversation_variables": [],
  369. "env_variables": [],
  370. "id": "e0a7e5e0-7923-4607-a60a-0dc35f0d7797",
  371. "name": "222",
  372. "profilePhoto": "sdfasdf",
  373. "viewPort": {
  374. "x": 0,
  375. "y": 0,
  376. "zoom": 1
  377. }
  378. }
  379. ],
  380. "pageSize": 20,
  381. "totalCount": 9,
  382. "totalPages": 1
  383. },
  384. "isAuthorized": true
  385. }
  386. }
  387. },
  388. "headers": {}
  389. }
  390. },
  391. "security": []
  392. }
  393. },
  394. "/api/agent/doEditAgent": {
  395. "post": {
  396. "summary": "智能体编辑",
  397. "deprecated": false,
  398. "description": "",
  399. "tags": ["Agent"],
  400. "parameters": [
  401. {
  402. "name": "Authorization",
  403. "in": "header",
  404. "description": "",
  405. "example": "bpm_client_1490845225663336448",
  406. "schema": {
  407. "type": "string",
  408. "default": "bpm_client_1490845225663336448"
  409. }
  410. }
  411. ],
  412. "responses": {
  413. "200": {
  414. "description": "",
  415. "content": {
  416. "application/json": {
  417. "schema": {
  418. "type": "object",
  419. "properties": {
  420. "isSuccess": {
  421. "type": "boolean"
  422. },
  423. "code": {
  424. "type": "integer"
  425. },
  426. "result": {
  427. "type": "string"
  428. },
  429. "isAuthorized": {
  430. "type": "boolean"
  431. }
  432. },
  433. "required": ["isSuccess", "code", "result", "isAuthorized"]
  434. },
  435. "example": {
  436. "isSuccess": true,
  437. "code": 1,
  438. "result": "20d31522-66e7-463e-81d7-7fb7fd5864f7",
  439. "isAuthorized": true
  440. }
  441. }
  442. },
  443. "headers": {}
  444. }
  445. },
  446. "security": []
  447. }
  448. },
  449. "/api/agent/doSaveAgentVariables": {
  450. "post": {
  451. "summary": "保存智能体变量",
  452. "deprecated": false,
  453. "description": "",
  454. "tags": ["Agent"],
  455. "parameters": [
  456. {
  457. "name": "Authorization",
  458. "in": "header",
  459. "description": "",
  460. "example": "bpm_client_1490845225663336448",
  461. "schema": {
  462. "type": "string",
  463. "default": "bpm_client_1490845225663336448"
  464. }
  465. }
  466. ],
  467. "requestBody": {
  468. "content": {
  469. "application/json": {
  470. "schema": {
  471. "type": "object",
  472. "properties": {
  473. "appAgentId": {
  474. "type": "string"
  475. },
  476. "conversation_variables": {
  477. "type": "array",
  478. "items": {
  479. "type": "string"
  480. }
  481. },
  482. "env_variables": {
  483. "type": "array",
  484. "items": {
  485. "type": "object",
  486. "properties": {
  487. "name": {
  488. "type": "string"
  489. },
  490. "value": {
  491. "type": "string"
  492. },
  493. "type": {
  494. "type": "string"
  495. }
  496. }
  497. }
  498. }
  499. },
  500. "required": ["appAgentId", "conversation_variables", "env_variables"]
  501. },
  502. "example": {
  503. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  504. "conversation_variables": [],
  505. "env_variables": [
  506. {
  507. "name": "api_address",
  508. "value": "http://shalu-componenttesting-admin-dev.shalu.com",
  509. "type": "string"
  510. }
  511. ]
  512. }
  513. }
  514. },
  515. "required": true
  516. },
  517. "responses": {
  518. "200": {
  519. "description": "",
  520. "content": {
  521. "application/json": {
  522. "schema": {
  523. "type": "object",
  524. "properties": {
  525. "isSuccess": {
  526. "type": "boolean"
  527. },
  528. "code": {
  529. "type": "integer"
  530. },
  531. "result": {
  532. "type": "string"
  533. },
  534. "isAuthorized": {
  535. "type": "boolean"
  536. }
  537. },
  538. "required": ["isSuccess", "code", "result", "isAuthorized"]
  539. },
  540. "example": {
  541. "isSuccess": true,
  542. "code": 1,
  543. "isAuthorized": true
  544. }
  545. }
  546. },
  547. "headers": {}
  548. }
  549. },
  550. "security": []
  551. }
  552. },
  553. "/api/agent/getAgentInfo": {
  554. "post": {
  555. "summary": "获取智能体信息",
  556. "deprecated": false,
  557. "description": "",
  558. "tags": ["Agent"],
  559. "parameters": [
  560. {
  561. "name": "Authorization",
  562. "in": "header",
  563. "description": "",
  564. "example": "bpm_client_1490845225663336448",
  565. "schema": {
  566. "type": "string",
  567. "default": "bpm_client_1490845225663336448"
  568. }
  569. }
  570. ],
  571. "requestBody": {
  572. "content": {
  573. "application/json": {
  574. "schema": {
  575. "type": "object",
  576. "properties": {
  577. "id": {
  578. "type": "string"
  579. }
  580. },
  581. "required": ["id"]
  582. },
  583. "example": {
  584. "id": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8"
  585. }
  586. }
  587. },
  588. "required": true
  589. },
  590. "responses": {
  591. "200": {
  592. "description": "",
  593. "content": {
  594. "application/json": {
  595. "schema": {
  596. "type": "object",
  597. "properties": {
  598. "isSuccess": {
  599. "type": "boolean"
  600. },
  601. "code": {
  602. "type": "integer"
  603. },
  604. "result": {
  605. "type": "object",
  606. "properties": {
  607. "conversation_variables": {
  608. "type": "array",
  609. "items": {
  610. "type": "string"
  611. }
  612. },
  613. "edges": {
  614. "type": "array",
  615. "items": {
  616. "type": "object",
  617. "properties": {
  618. "appAgentId": {
  619. "type": "string"
  620. },
  621. "creationTime": {
  622. "type": "string"
  623. },
  624. "data": {
  625. "type": "object",
  626. "properties": {
  627. "isInLoop": {
  628. "type": "boolean"
  629. },
  630. "sourceType": {
  631. "type": "string"
  632. },
  633. "targetType": {
  634. "type": "string"
  635. }
  636. },
  637. "required": ["isInLoop", "sourceType", "targetType"]
  638. },
  639. "id": {
  640. "type": "string"
  641. },
  642. "isDeleted": {
  643. "type": "boolean"
  644. },
  645. "selected": {
  646. "type": "boolean"
  647. },
  648. "source": {
  649. "type": "string"
  650. },
  651. "sourceHandle": {
  652. "type": "string"
  653. },
  654. "target": {
  655. "type": "string"
  656. },
  657. "targetHandle": {
  658. "type": "string"
  659. },
  660. "type": {
  661. "type": "string"
  662. },
  663. "updateTime": {
  664. "type": "string"
  665. },
  666. "zIndex": {
  667. "type": "integer"
  668. }
  669. },
  670. "required": [
  671. "appAgentId",
  672. "creationTime",
  673. "data",
  674. "id",
  675. "isDeleted",
  676. "selected",
  677. "source",
  678. "sourceHandle",
  679. "target",
  680. "targetHandle",
  681. "type",
  682. "updateTime",
  683. "zIndex"
  684. ]
  685. }
  686. },
  687. "env_variables": {
  688. "type": "array",
  689. "items": {
  690. "type": "object",
  691. "properties": {
  692. "is_require": {
  693. "type": "boolean"
  694. },
  695. "name": {
  696. "type": "string"
  697. },
  698. "type": {
  699. "type": "string"
  700. },
  701. "value": {
  702. "type": "string"
  703. }
  704. }
  705. }
  706. },
  707. "id": {
  708. "type": "string"
  709. },
  710. "name": {
  711. "type": "string"
  712. },
  713. "nodes": {
  714. "type": "array",
  715. "items": {
  716. "type": "object",
  717. "properties": {
  718. "appAgentId": {
  719. "type": "string"
  720. },
  721. "creationTime": {
  722. "type": "string"
  723. },
  724. "creatorUserId": {
  725. "type": "string"
  726. },
  727. "data": {
  728. "type": "object",
  729. "properties": {
  730. "outputs": {
  731. "type": "array",
  732. "items": {
  733. "type": "object",
  734. "properties": {
  735. "name": {
  736. "type": "string"
  737. },
  738. "describe": {
  739. "type": "string"
  740. },
  741. "is_require": {
  742. "type": "boolean"
  743. },
  744. "type": {
  745. "type": "string"
  746. }
  747. },
  748. "required": ["name", "describe", "is_require", "type"]
  749. }
  750. },
  751. "bodyType": {
  752. "type": "string"
  753. },
  754. "exception": {
  755. "type": "string"
  756. },
  757. "ssl_verify": {
  758. "type": "boolean"
  759. },
  760. "body": {
  761. "type": "object",
  762. "properties": {
  763. "data": {
  764. "type": "array",
  765. "items": {
  766. "type": "object",
  767. "properties": {
  768. "type": {
  769. "type": "string"
  770. },
  771. "value": {
  772. "type": "string"
  773. },
  774. "key": {
  775. "type": "string"
  776. }
  777. },
  778. "required": ["type", "value", "key"]
  779. }
  780. },
  781. "type": {
  782. "type": "string"
  783. }
  784. },
  785. "required": ["data", "type"]
  786. },
  787. "title": {
  788. "type": "string"
  789. },
  790. "type": {
  791. "type": "string"
  792. },
  793. "error_strategy": {
  794. "type": "string"
  795. },
  796. "retry_config": {
  797. "type": "object",
  798. "properties": {
  799. "max_retries": {
  800. "type": "integer"
  801. },
  802. "retry_enabled": {
  803. "type": "boolean"
  804. },
  805. "retry_interval": {
  806. "type": "integer"
  807. }
  808. },
  809. "required": ["max_retries", "retry_enabled", "retry_interval"]
  810. },
  811. "authorization": {
  812. "type": "object",
  813. "properties": {
  814. "type": {
  815. "type": "string"
  816. },
  817. "config": {
  818. "type": "object",
  819. "properties": {
  820. "api_key": {
  821. "type": "string"
  822. },
  823. "header": {
  824. "type": "string"
  825. },
  826. "type": {
  827. "type": "string"
  828. }
  829. },
  830. "required": ["api_key", "header", "type"]
  831. }
  832. },
  833. "required": ["type", "config"]
  834. },
  835. "output": {
  836. "type": "object",
  837. "properties": {
  838. "headers": {
  839. "type": "array",
  840. "items": {
  841. "type": "string"
  842. }
  843. },
  844. "status_code": {
  845. "type": "integer"
  846. },
  847. "files": {
  848. "type": "array",
  849. "items": {
  850. "type": "string"
  851. }
  852. },
  853. "body": {
  854. "type": "string"
  855. }
  856. },
  857. "required": ["headers", "status_code", "files", "body"]
  858. },
  859. "timeout_config": {
  860. "type": "object",
  861. "properties": {
  862. "max_write_timeout": {
  863. "type": "integer"
  864. },
  865. "max_read_timeout": {
  866. "type": "integer"
  867. },
  868. "max_connect_timeout": {
  869. "type": "integer"
  870. }
  871. },
  872. "required": [
  873. "max_write_timeout",
  874. "max_read_timeout",
  875. "max_connect_timeout"
  876. ]
  877. },
  878. "exceptionDefaultValue": {
  879. "type": "object",
  880. "properties": {
  881. "headers": {
  882. "type": "string"
  883. },
  884. "status_code": {
  885. "type": "integer"
  886. },
  887. "body": {
  888. "type": "string"
  889. }
  890. },
  891. "required": ["headers", "status_code", "body"]
  892. },
  893. "id": {
  894. "type": "string"
  895. },
  896. "selected": {
  897. "type": "boolean"
  898. },
  899. "height": {
  900. "type": "integer"
  901. },
  902. "errorConfig": {
  903. "type": "object",
  904. "properties": {
  905. "retry_delay": {
  906. "type": "integer"
  907. },
  908. "retry": {
  909. "type": "boolean"
  910. },
  911. "max_retry": {
  912. "type": "integer"
  913. }
  914. },
  915. "required": ["retry_delay", "retry", "max_retry"]
  916. },
  917. "output_can_alter": {
  918. "type": "boolean"
  919. },
  920. "timeoutConfig": {
  921. "type": "object",
  922. "properties": {
  923. "read": {
  924. "type": "integer"
  925. },
  926. "write": {
  927. "type": "integer"
  928. },
  929. "connect": {
  930. "type": "integer"
  931. }
  932. },
  933. "required": ["read", "write", "connect"]
  934. },
  935. "variables": {
  936. "type": "array",
  937. "items": {
  938. "type": "object",
  939. "properties": {
  940. "name": {
  941. "type": "string"
  942. },
  943. "type": {
  944. "type": "string"
  945. },
  946. "value": {
  947. "type": "string"
  948. }
  949. },
  950. "required": ["name", "type", "value"]
  951. }
  952. },
  953. "method": {
  954. "type": "string"
  955. },
  956. "isInIteration": {
  957. "type": "boolean"
  958. },
  959. "default_value": {
  960. "type": "array",
  961. "items": {
  962. "type": "string"
  963. }
  964. },
  965. "params": {
  966. "type": "array",
  967. "items": {
  968. "type": "string"
  969. }
  970. },
  971. "nodeType": {
  972. "type": "string"
  973. },
  974. "url": {
  975. "type": "string"
  976. },
  977. "width": {
  978. "type": "integer"
  979. },
  980. "verifySSL": {
  981. "type": "boolean"
  982. },
  983. "heads": {
  984. "type": "array",
  985. "items": {
  986. "type": "string"
  987. }
  988. },
  989. "position": {
  990. "type": "object",
  991. "properties": {
  992. "x": {
  993. "type": "integer"
  994. },
  995. "y": {
  996. "type": "integer"
  997. }
  998. },
  999. "required": ["x", "y"]
  1000. },
  1001. "desc": {
  1002. "type": "string"
  1003. },
  1004. "isInLoop": {
  1005. "type": "boolean"
  1006. },
  1007. "filter_by": {
  1008. "type": "object",
  1009. "properties": {
  1010. "conditions": {
  1011. "type": "array",
  1012. "items": {
  1013. "type": "object",
  1014. "properties": {
  1015. "varType": {
  1016. "type": "string"
  1017. },
  1018. "comparison_operator": {
  1019. "type": "string"
  1020. },
  1021. "right_value": {
  1022. "type": "string"
  1023. }
  1024. }
  1025. }
  1026. },
  1027. "enabled": {
  1028. "type": "boolean"
  1029. }
  1030. },
  1031. "required": ["conditions", "enabled"]
  1032. },
  1033. "limit": {
  1034. "type": "object",
  1035. "properties": {
  1036. "size": {
  1037. "type": "integer"
  1038. },
  1039. "enabled": {
  1040. "type": "boolean"
  1041. }
  1042. },
  1043. "required": ["size", "enabled"]
  1044. },
  1045. "order_by": {
  1046. "type": "object",
  1047. "properties": {
  1048. "value": {
  1049. "type": "string"
  1050. },
  1051. "enabled": {
  1052. "type": "boolean"
  1053. },
  1054. "key": {
  1055. "type": "string"
  1056. }
  1057. },
  1058. "required": ["value", "enabled", "key"]
  1059. },
  1060. "extract_by": {
  1061. "type": "object",
  1062. "properties": {
  1063. "serial": {
  1064. "type": "string"
  1065. },
  1066. "enabled": {
  1067. "type": "boolean"
  1068. }
  1069. },
  1070. "required": ["serial", "enabled"]
  1071. },
  1072. "code": {
  1073. "type": "string"
  1074. },
  1075. "code_language": {
  1076. "type": "string"
  1077. },
  1078. "cases": {
  1079. "type": "array",
  1080. "items": {
  1081. "type": "object",
  1082. "properties": {
  1083. "logical_operator": {
  1084. "type": "string"
  1085. },
  1086. "id": {
  1087. "type": "string"
  1088. },
  1089. "conditions": {
  1090. "type": "array",
  1091. "items": {
  1092. "type": "object",
  1093. "properties": {
  1094. "varType": {
  1095. "type": "string"
  1096. },
  1097. "left_value": {
  1098. "type": "string"
  1099. },
  1100. "comparison_operator": {
  1101. "type": "string"
  1102. },
  1103. "right_value": {
  1104. "type": "string"
  1105. }
  1106. },
  1107. "required": [
  1108. "varType",
  1109. "left_value",
  1110. "comparison_operator",
  1111. "right_value"
  1112. ]
  1113. }
  1114. }
  1115. },
  1116. "required": ["logical_operator", "id", "conditions"]
  1117. }
  1118. }
  1119. },
  1120. "required": [
  1121. "outputs",
  1122. "bodyType",
  1123. "exception",
  1124. "ssl_verify",
  1125. "body",
  1126. "title",
  1127. "type",
  1128. "error_strategy",
  1129. "retry_config",
  1130. "authorization",
  1131. "output",
  1132. "timeout_config",
  1133. "exceptionDefaultValue",
  1134. "id",
  1135. "selected",
  1136. "height",
  1137. "errorConfig",
  1138. "output_can_alter",
  1139. "timeoutConfig",
  1140. "variables",
  1141. "method",
  1142. "isInIteration",
  1143. "default_value",
  1144. "params",
  1145. "nodeType",
  1146. "url",
  1147. "width",
  1148. "verifySSL",
  1149. "heads",
  1150. "position",
  1151. "desc",
  1152. "isInLoop"
  1153. ]
  1154. },
  1155. "height": {
  1156. "type": "integer"
  1157. },
  1158. "id": {
  1159. "type": "string"
  1160. },
  1161. "isDeleted": {
  1162. "type": "boolean"
  1163. },
  1164. "position": {
  1165. "type": "object",
  1166. "properties": {
  1167. "x": {
  1168. "type": "integer"
  1169. },
  1170. "y": {
  1171. "type": "integer"
  1172. }
  1173. },
  1174. "required": ["x", "y"]
  1175. },
  1176. "selected": {
  1177. "type": "boolean"
  1178. },
  1179. "type": {
  1180. "type": "string"
  1181. },
  1182. "updateTime": {
  1183. "type": "string"
  1184. },
  1185. "width": {
  1186. "type": "integer"
  1187. },
  1188. "zIndex": {
  1189. "type": "integer"
  1190. },
  1191. "deleterUserId": {
  1192. "type": "string"
  1193. },
  1194. "deletionTime": {
  1195. "type": "string"
  1196. }
  1197. },
  1198. "required": [
  1199. "appAgentId",
  1200. "creationTime",
  1201. "creatorUserId",
  1202. "data",
  1203. "height",
  1204. "id",
  1205. "isDeleted",
  1206. "position",
  1207. "selected",
  1208. "type",
  1209. "updateTime",
  1210. "width",
  1211. "zIndex"
  1212. ]
  1213. }
  1214. },
  1215. "profilePhoto": {
  1216. "type": "string"
  1217. },
  1218. "viewPort": {
  1219. "type": "object",
  1220. "properties": {
  1221. "x": {
  1222. "type": "integer"
  1223. },
  1224. "y": {
  1225. "type": "integer"
  1226. },
  1227. "zoom": {
  1228. "type": "integer"
  1229. }
  1230. },
  1231. "required": ["x", "y", "zoom"]
  1232. }
  1233. },
  1234. "required": [
  1235. "conversation_variables",
  1236. "edges",
  1237. "env_variables",
  1238. "id",
  1239. "name",
  1240. "nodes",
  1241. "profilePhoto",
  1242. "viewPort"
  1243. ]
  1244. },
  1245. "isAuthorized": {
  1246. "type": "boolean"
  1247. }
  1248. },
  1249. "required": ["isSuccess", "code", "result", "isAuthorized"]
  1250. },
  1251. "example": {
  1252. "isSuccess": true,
  1253. "code": 1,
  1254. "result": {
  1255. "conversation_variables": [],
  1256. "edges": [
  1257. {
  1258. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  1259. "creationTime": "2026-03-02 17:55:12",
  1260. "data": {
  1261. "isInLoop": false,
  1262. "sourceType": "if-else",
  1263. "targetType": "list-operator"
  1264. },
  1265. "id": "7e6724f3-296b-4390-99cf-d8f680f80bc4",
  1266. "isDeleted": false,
  1267. "selected": false,
  1268. "source": "de35b389-3782-474c-9dd9-cb1356dea54b",
  1269. "sourceHandle": "c2cb978e-fce8-11f0-a59d-266b7b87fca6-1",
  1270. "target": "6764ede2-2c3d-46bb-ae9a-fb0a892aff84",
  1271. "targetHandle": "target",
  1272. "type": "custom",
  1273. "updateTime": "2026-03-02 17:55:12",
  1274. "zIndex": 0
  1275. },
  1276. {
  1277. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  1278. "creationTime": "2026-03-03 11:34:27",
  1279. "data": {
  1280. "isInLoop": false,
  1281. "sourceType": "http-request",
  1282. "targetType": "code"
  1283. },
  1284. "id": "b81ae979-bf7c-412f-9fa3-948094be68d3",
  1285. "isDeleted": false,
  1286. "selected": true,
  1287. "source": "492048da-6f33-4a36-adc5-cff4b973b053",
  1288. "sourceHandle": "source",
  1289. "target": "c91eb026-e86a-418f-a865-a98aa60bcf19",
  1290. "targetHandle": "target",
  1291. "type": "custom",
  1292. "updateTime": "2026-03-03 11:34:27",
  1293. "zIndex": 0
  1294. }
  1295. ],
  1296. "env_variables": [
  1297. {
  1298. "is_require": false,
  1299. "name": "api_address",
  1300. "type": "string",
  1301. "value": "http://shalu-componenttesting-admin-dev.shalu.com"
  1302. }
  1303. ],
  1304. "id": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  1305. "name": "测试智能体",
  1306. "nodes": [
  1307. {
  1308. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  1309. "creationTime": "2026-02-24 16:44:21",
  1310. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  1311. "data": {
  1312. "outputs": [
  1313. {
  1314. "name": "body",
  1315. "describe": "响应内容",
  1316. "is_require": false,
  1317. "type": "string"
  1318. },
  1319. {
  1320. "name": "status_code",
  1321. "describe": "响应状态码",
  1322. "is_require": false,
  1323. "type": "number"
  1324. },
  1325. {
  1326. "name": "headers",
  1327. "describe": "响应头列表 JSON",
  1328. "is_require": false,
  1329. "type": "object"
  1330. }
  1331. ],
  1332. "bodyType": "json",
  1333. "exception": "none",
  1334. "ssl_verify": false,
  1335. "body": {
  1336. "data": [
  1337. {
  1338. "type": "text",
  1339. "value": "",
  1340. "key": ""
  1341. }
  1342. ],
  1343. "type": "json"
  1344. },
  1345. "title": "HTTP 请求",
  1346. "type": "http-request",
  1347. "error_strategy": "none",
  1348. "retry_config": {
  1349. "max_retries": 3,
  1350. "retry_enabled": false,
  1351. "retry_interval": 100
  1352. },
  1353. "authorization": {
  1354. "type": "none",
  1355. "config": {}
  1356. },
  1357. "output": {
  1358. "headers": [],
  1359. "status_code": 200,
  1360. "files": [],
  1361. "body": ""
  1362. },
  1363. "timeout_config": {
  1364. "max_write_timeout": 1,
  1365. "max_read_timeout": 1,
  1366. "max_connect_timeout": 1
  1367. },
  1368. "exceptionDefaultValue": {
  1369. "headers": "{}",
  1370. "status_code": 0,
  1371. "body": ""
  1372. },
  1373. "id": "03d43e1a-5e10-4456-a188-c5507ef373ee",
  1374. "selected": false,
  1375. "height": 96,
  1376. "errorConfig": {
  1377. "retry_delay": 100,
  1378. "retry": false,
  1379. "max_retry": 3
  1380. },
  1381. "output_can_alter": false,
  1382. "timeoutConfig": {
  1383. "read": 1,
  1384. "write": 1,
  1385. "connect": 1
  1386. },
  1387. "variables": [],
  1388. "method": "get",
  1389. "isInIteration": false,
  1390. "default_value": [],
  1391. "params": [],
  1392. "nodeType": "http-request",
  1393. "url": "1",
  1394. "width": 96,
  1395. "verifySSL": false,
  1396. "heads": [],
  1397. "position": {
  1398. "x": 256,
  1399. "y": -560
  1400. },
  1401. "desc": "",
  1402. "isInLoop": false
  1403. },
  1404. "height": 96,
  1405. "id": "03d43e1a-5e10-4456-a188-c5507ef373ee",
  1406. "isDeleted": false,
  1407. "position": {
  1408. "x": 288,
  1409. "y": -496
  1410. },
  1411. "selected": false,
  1412. "type": "custom",
  1413. "updateTime": "2026-02-24 17:02:57",
  1414. "width": 96,
  1415. "zIndex": 1
  1416. },
  1417. {
  1418. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  1419. "creationTime": "2026-02-24 16:44:03",
  1420. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  1421. "data": {
  1422. "outputs": [
  1423. {
  1424. "name": "body",
  1425. "describe": "响应内容",
  1426. "is_require": false,
  1427. "type": "string"
  1428. },
  1429. {
  1430. "name": "status_code",
  1431. "describe": "响应状态码",
  1432. "is_require": false,
  1433. "type": "number"
  1434. },
  1435. {
  1436. "name": "headers",
  1437. "describe": "响应头列表 JSON",
  1438. "is_require": false,
  1439. "type": "object"
  1440. }
  1441. ],
  1442. "bodyType": "json",
  1443. "exception": "none",
  1444. "ssl_verify": false,
  1445. "body": {
  1446. "data": [
  1447. {
  1448. "type": "text",
  1449. "value": "",
  1450. "key": ""
  1451. }
  1452. ],
  1453. "type": "json"
  1454. },
  1455. "title": "HTTP 请求",
  1456. "type": "http-request",
  1457. "error_strategy": "none",
  1458. "retry_config": {
  1459. "max_retries": 3,
  1460. "retry_enabled": false,
  1461. "retry_interval": 100
  1462. },
  1463. "authorization": {
  1464. "type": "none",
  1465. "config": {}
  1466. },
  1467. "output": {
  1468. "headers": [],
  1469. "status_code": 200,
  1470. "files": [],
  1471. "body": ""
  1472. },
  1473. "timeout_config": {
  1474. "max_write_timeout": 1,
  1475. "max_read_timeout": 1,
  1476. "max_connect_timeout": 1
  1477. },
  1478. "exceptionDefaultValue": {
  1479. "headers": "{}",
  1480. "status_code": 0,
  1481. "body": ""
  1482. },
  1483. "id": "094df381-3fb4-4a24-a47a-32540ff8a30f",
  1484. "selected": false,
  1485. "height": 96,
  1486. "errorConfig": {
  1487. "retry_delay": 100,
  1488. "retry": false,
  1489. "max_retry": 3
  1490. },
  1491. "output_can_alter": false,
  1492. "timeoutConfig": {
  1493. "read": 1,
  1494. "write": 1,
  1495. "connect": 1
  1496. },
  1497. "variables": [],
  1498. "method": "get",
  1499. "isInIteration": false,
  1500. "default_value": [],
  1501. "params": [],
  1502. "nodeType": "http-request",
  1503. "url": "",
  1504. "width": 96,
  1505. "verifySSL": false,
  1506. "heads": [],
  1507. "position": {
  1508. "x": -192,
  1509. "y": -560
  1510. },
  1511. "desc": "",
  1512. "isInLoop": false
  1513. },
  1514. "height": 96,
  1515. "id": "094df381-3fb4-4a24-a47a-32540ff8a30f",
  1516. "isDeleted": false,
  1517. "position": {
  1518. "x": -192,
  1519. "y": -560
  1520. },
  1521. "selected": false,
  1522. "type": "custom",
  1523. "updateTime": "2026-02-24 17:07:33",
  1524. "width": 96,
  1525. "zIndex": 1
  1526. },
  1527. {
  1528. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  1529. "creationTime": "2026-02-24 16:36:51",
  1530. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  1531. "data": {
  1532. "outputs": [
  1533. {
  1534. "name": "body",
  1535. "describe": "响应内容",
  1536. "is_require": false,
  1537. "type": "string"
  1538. },
  1539. {
  1540. "name": "status_code",
  1541. "describe": "响应状态码",
  1542. "is_require": false,
  1543. "type": "number"
  1544. },
  1545. {
  1546. "name": "headers",
  1547. "describe": "响应头列表 JSON",
  1548. "is_require": false,
  1549. "type": "object"
  1550. }
  1551. ],
  1552. "bodyType": "json",
  1553. "exception": "none",
  1554. "ssl_verify": false,
  1555. "body": {
  1556. "data": [
  1557. {
  1558. "type": "text",
  1559. "value": "",
  1560. "key": ""
  1561. }
  1562. ],
  1563. "type": "json"
  1564. },
  1565. "title": "HTTP 请求",
  1566. "type": "http-request",
  1567. "error_strategy": "none",
  1568. "retry_config": {
  1569. "max_retries": 3,
  1570. "retry_enabled": false,
  1571. "retry_interval": 100
  1572. },
  1573. "authorization": {
  1574. "type": "none",
  1575. "config": {}
  1576. },
  1577. "output": {
  1578. "headers": [],
  1579. "status_code": 200,
  1580. "files": [],
  1581. "body": ""
  1582. },
  1583. "timeout_config": {
  1584. "max_write_timeout": 1,
  1585. "max_read_timeout": 1,
  1586. "max_connect_timeout": 1
  1587. },
  1588. "exceptionDefaultValue": {
  1589. "headers": "{}",
  1590. "status_code": 0,
  1591. "body": ""
  1592. },
  1593. "id": "0f5242d7-67c4-4181-aa92-135ad2ee7049",
  1594. "selected": false,
  1595. "height": 96,
  1596. "errorConfig": {
  1597. "retry_delay": 100,
  1598. "retry": false,
  1599. "max_retry": 3
  1600. },
  1601. "output_can_alter": false,
  1602. "timeoutConfig": {
  1603. "read": 1,
  1604. "write": 1,
  1605. "connect": 1
  1606. },
  1607. "variables": [],
  1608. "method": "get",
  1609. "isInIteration": false,
  1610. "default_value": [],
  1611. "params": [],
  1612. "nodeType": "http-request",
  1613. "url": "13",
  1614. "width": 96,
  1615. "verifySSL": false,
  1616. "heads": [],
  1617. "position": {
  1618. "x": 1008,
  1619. "y": -80
  1620. },
  1621. "desc": "",
  1622. "isInLoop": false
  1623. },
  1624. "height": 96,
  1625. "id": "0f5242d7-67c4-4181-aa92-135ad2ee7049",
  1626. "isDeleted": false,
  1627. "position": {
  1628. "x": 816,
  1629. "y": -352
  1630. },
  1631. "selected": false,
  1632. "type": "custom",
  1633. "updateTime": "2026-02-24 17:01:59",
  1634. "width": 96,
  1635. "zIndex": 1
  1636. },
  1637. {
  1638. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  1639. "creationTime": "2026-02-24 16:40:29",
  1640. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  1641. "data": {
  1642. "outputs": [
  1643. {
  1644. "name": "body",
  1645. "describe": "响应内容",
  1646. "is_require": false,
  1647. "type": "string"
  1648. },
  1649. {
  1650. "name": "status_code",
  1651. "describe": "响应状态码",
  1652. "is_require": false,
  1653. "type": "number"
  1654. },
  1655. {
  1656. "name": "headers",
  1657. "describe": "响应头列表 JSON",
  1658. "is_require": false,
  1659. "type": "object"
  1660. }
  1661. ],
  1662. "bodyType": "json",
  1663. "exception": "none",
  1664. "ssl_verify": false,
  1665. "body": {
  1666. "data": [
  1667. {
  1668. "type": "text",
  1669. "value": "",
  1670. "key": ""
  1671. }
  1672. ],
  1673. "type": "json"
  1674. },
  1675. "title": "HTTP 请求",
  1676. "type": "http-request",
  1677. "error_strategy": "none",
  1678. "retry_config": {
  1679. "max_retries": 3,
  1680. "retry_enabled": false,
  1681. "retry_interval": 100
  1682. },
  1683. "authorization": {
  1684. "type": "none",
  1685. "config": {}
  1686. },
  1687. "output": {
  1688. "headers": [],
  1689. "status_code": 200,
  1690. "files": [],
  1691. "body": ""
  1692. },
  1693. "timeout_config": {
  1694. "max_write_timeout": 1,
  1695. "max_read_timeout": 1,
  1696. "max_connect_timeout": 1
  1697. },
  1698. "exceptionDefaultValue": {
  1699. "headers": "{}",
  1700. "status_code": 0,
  1701. "body": ""
  1702. },
  1703. "id": "3b9c1266-2120-4df8-a1fe-f31b90890f1a",
  1704. "selected": false,
  1705. "height": 96,
  1706. "errorConfig": {
  1707. "retry_delay": 100,
  1708. "retry": false,
  1709. "max_retry": 3
  1710. },
  1711. "output_can_alter": false,
  1712. "timeoutConfig": {
  1713. "read": 1,
  1714. "write": 1,
  1715. "connect": 1
  1716. },
  1717. "variables": [],
  1718. "method": "get",
  1719. "isInIteration": false,
  1720. "default_value": [],
  1721. "params": [],
  1722. "nodeType": "http-request",
  1723. "url": "123",
  1724. "width": 96,
  1725. "verifySSL": false,
  1726. "heads": [],
  1727. "position": {
  1728. "x": -560,
  1729. "y": -16
  1730. },
  1731. "desc": "",
  1732. "isInLoop": false
  1733. },
  1734. "height": 96,
  1735. "id": "3b9c1266-2120-4df8-a1fe-f31b90890f1a",
  1736. "isDeleted": false,
  1737. "position": {
  1738. "x": -560,
  1739. "y": -16
  1740. },
  1741. "selected": false,
  1742. "type": "custom",
  1743. "updateTime": "2026-02-25 11:01:24",
  1744. "width": 96,
  1745. "zIndex": 1
  1746. },
  1747. {
  1748. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  1749. "creationTime": "2026-01-28 10:24:45",
  1750. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  1751. "data": {
  1752. "outputs": [
  1753. {
  1754. "name": "body",
  1755. "describe": "响应内容",
  1756. "type": "string"
  1757. },
  1758. {
  1759. "name": "status_code",
  1760. "describe": "响应状态码",
  1761. "type": "number"
  1762. },
  1763. {
  1764. "name": "headers",
  1765. "describe": "响应头列表 JSON",
  1766. "type": "object"
  1767. }
  1768. ],
  1769. "bodyType": "json",
  1770. "exception": "none",
  1771. "ssl_verify": false,
  1772. "body": {
  1773. "data": [
  1774. {
  1775. "type": "text",
  1776. "value": "",
  1777. "key": ""
  1778. }
  1779. ],
  1780. "type": "json"
  1781. },
  1782. "title": "HTTP 请求",
  1783. "type": "http-request",
  1784. "error_strategy": "none",
  1785. "retry_config": {
  1786. "max_retries": 3,
  1787. "retry_enabled": false,
  1788. "retry_interval": 100
  1789. },
  1790. "authorization": {
  1791. "type": "none",
  1792. "config": {
  1793. "api_key": "",
  1794. "header": "",
  1795. "type": ""
  1796. }
  1797. },
  1798. "output": {
  1799. "headers": [],
  1800. "status_code": 200,
  1801. "files": [],
  1802. "body": ""
  1803. },
  1804. "timeout_config": {
  1805. "max_write_timeout": 1,
  1806. "max_read_timeout": 1,
  1807. "max_connect_timeout": 1
  1808. },
  1809. "exceptionDefaultValue": {
  1810. "headers": "{}",
  1811. "status_code": 0,
  1812. "body": ""
  1813. },
  1814. "id": "492048da-6f33-4a36-adc5-cff4b973b053",
  1815. "selected": true,
  1816. "height": 40,
  1817. "errorConfig": {
  1818. "retry_delay": 100,
  1819. "retry": false,
  1820. "max_retry": 3
  1821. },
  1822. "output_can_alter": false,
  1823. "timeoutConfig": {
  1824. "read": 1,
  1825. "write": 1,
  1826. "connect": 1
  1827. },
  1828. "variables": [],
  1829. "method": "post",
  1830. "isInIteration": false,
  1831. "default_value": [],
  1832. "params": [],
  1833. "nodeType": "http-request",
  1834. "url": "#{env.api_address}/api/agent/getAgentInfo",
  1835. "width": 20,
  1836. "verifySSL": false,
  1837. "heads": [],
  1838. "position": {
  1839. "x": 64,
  1840. "y": -400
  1841. },
  1842. "desc": "",
  1843. "isInLoop": false
  1844. },
  1845. "deleterUserId": "",
  1846. "deletionTime": "2026-03-03 11:32:46",
  1847. "height": 40,
  1848. "id": "492048da-6f33-4a36-adc5-cff4b973b053",
  1849. "isDeleted": false,
  1850. "position": {
  1851. "x": 64,
  1852. "y": -400
  1853. },
  1854. "selected": true,
  1855. "type": "custom",
  1856. "updateTime": "2026-02-25 11:02:50",
  1857. "width": 20,
  1858. "zIndex": 1
  1859. },
  1860. {
  1861. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  1862. "creationTime": "2026-02-24 16:44:27",
  1863. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  1864. "data": {
  1865. "outputs": [
  1866. {
  1867. "name": "body",
  1868. "describe": "响应内容",
  1869. "is_require": false,
  1870. "type": "string"
  1871. },
  1872. {
  1873. "name": "status_code",
  1874. "describe": "响应状态码",
  1875. "is_require": false,
  1876. "type": "number"
  1877. },
  1878. {
  1879. "name": "headers",
  1880. "describe": "响应头列表 JSON",
  1881. "is_require": false,
  1882. "type": "object"
  1883. }
  1884. ],
  1885. "bodyType": "json",
  1886. "exception": "none",
  1887. "ssl_verify": false,
  1888. "body": {
  1889. "data": [
  1890. {
  1891. "type": "text",
  1892. "value": "",
  1893. "key": ""
  1894. }
  1895. ],
  1896. "type": "json"
  1897. },
  1898. "title": "HTTP 请求",
  1899. "type": "http-request",
  1900. "error_strategy": "none",
  1901. "retry_config": {
  1902. "max_retries": 3,
  1903. "retry_enabled": false,
  1904. "retry_interval": 100
  1905. },
  1906. "authorization": {
  1907. "type": "none",
  1908. "config": {}
  1909. },
  1910. "output": {
  1911. "headers": [],
  1912. "status_code": 200,
  1913. "files": [],
  1914. "body": ""
  1915. },
  1916. "timeout_config": {
  1917. "max_write_timeout": 1,
  1918. "max_read_timeout": 1,
  1919. "max_connect_timeout": 1
  1920. },
  1921. "exceptionDefaultValue": {
  1922. "headers": "{}",
  1923. "status_code": 0,
  1924. "body": ""
  1925. },
  1926. "id": "50e48fcf-ce68-49a4-923e-87b05f8d22b8",
  1927. "selected": false,
  1928. "height": 96,
  1929. "errorConfig": {
  1930. "retry_delay": 100,
  1931. "retry": false,
  1932. "max_retry": 3
  1933. },
  1934. "output_can_alter": false,
  1935. "timeoutConfig": {
  1936. "read": 1,
  1937. "write": 1,
  1938. "connect": 1
  1939. },
  1940. "variables": [],
  1941. "method": "get",
  1942. "isInIteration": false,
  1943. "default_value": [],
  1944. "params": [],
  1945. "nodeType": "http-request",
  1946. "url": "",
  1947. "width": 96,
  1948. "verifySSL": false,
  1949. "heads": [],
  1950. "position": {
  1951. "x": -256,
  1952. "y": -32
  1953. },
  1954. "desc": "",
  1955. "isInLoop": false
  1956. },
  1957. "height": 96,
  1958. "id": "50e48fcf-ce68-49a4-923e-87b05f8d22b8",
  1959. "isDeleted": false,
  1960. "position": {
  1961. "x": -256,
  1962. "y": -32
  1963. },
  1964. "selected": false,
  1965. "type": "custom",
  1966. "updateTime": "2026-02-25 11:01:09",
  1967. "width": 96,
  1968. "zIndex": 1
  1969. },
  1970. {
  1971. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  1972. "creationTime": "2026-02-24 16:40:59",
  1973. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  1974. "data": {
  1975. "outputs": [
  1976. {
  1977. "name": "body",
  1978. "describe": "响应内容",
  1979. "is_require": false,
  1980. "type": "string"
  1981. },
  1982. {
  1983. "name": "status_code",
  1984. "describe": "响应状态码",
  1985. "is_require": false,
  1986. "type": "number"
  1987. },
  1988. {
  1989. "name": "headers",
  1990. "describe": "响应头列表 JSON",
  1991. "is_require": false,
  1992. "type": "object"
  1993. }
  1994. ],
  1995. "bodyType": "json",
  1996. "exception": "none",
  1997. "ssl_verify": false,
  1998. "body": {
  1999. "data": [
  2000. {
  2001. "type": "text",
  2002. "value": "",
  2003. "key": ""
  2004. }
  2005. ],
  2006. "type": "json"
  2007. },
  2008. "title": "HTTP 请求",
  2009. "type": "http-request",
  2010. "error_strategy": "none",
  2011. "retry_config": {
  2012. "max_retries": 3,
  2013. "retry_enabled": false,
  2014. "retry_interval": 100
  2015. },
  2016. "authorization": {
  2017. "type": "none",
  2018. "config": {}
  2019. },
  2020. "output": {
  2021. "headers": [],
  2022. "status_code": 200,
  2023. "files": [],
  2024. "body": ""
  2025. },
  2026. "timeout_config": {
  2027. "max_write_timeout": 1,
  2028. "max_read_timeout": 1,
  2029. "max_connect_timeout": 1
  2030. },
  2031. "exceptionDefaultValue": {
  2032. "headers": "{}",
  2033. "status_code": 0,
  2034. "body": ""
  2035. },
  2036. "id": "672d51a1-15d0-4c07-9536-8bdc1c5dc929",
  2037. "selected": false,
  2038. "height": 96,
  2039. "errorConfig": {
  2040. "retry_delay": 100,
  2041. "retry": false,
  2042. "max_retry": 3
  2043. },
  2044. "output_can_alter": false,
  2045. "timeoutConfig": {
  2046. "read": 1,
  2047. "write": 1,
  2048. "connect": 1
  2049. },
  2050. "variables": [],
  2051. "method": "get",
  2052. "isInIteration": false,
  2053. "default_value": [],
  2054. "params": [],
  2055. "nodeType": "http-request",
  2056. "url": "",
  2057. "width": 96,
  2058. "verifySSL": false,
  2059. "heads": [],
  2060. "position": {
  2061. "x": -496,
  2062. "y": -240
  2063. },
  2064. "desc": "",
  2065. "isInLoop": false
  2066. },
  2067. "height": 96,
  2068. "id": "672d51a1-15d0-4c07-9536-8bdc1c5dc929",
  2069. "isDeleted": false,
  2070. "position": {
  2071. "x": -368,
  2072. "y": -576
  2073. },
  2074. "selected": false,
  2075. "type": "custom",
  2076. "updateTime": "2026-02-24 17:02:03",
  2077. "width": 96,
  2078. "zIndex": 1
  2079. },
  2080. {
  2081. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2082. "creationTime": "2026-01-29 16:24:26",
  2083. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  2084. "data": {
  2085. "outputs": [
  2086. {
  2087. "name": "result",
  2088. "describe": "过滤结果",
  2089. "is_require": false,
  2090. "type": "array[string]"
  2091. },
  2092. {
  2093. "name": "first_record",
  2094. "describe": "第一条记录",
  2095. "is_require": false,
  2096. "type": ""
  2097. },
  2098. {
  2099. "name": "last_record",
  2100. "describe": "最后一条记录",
  2101. "is_require": false,
  2102. "type": ""
  2103. }
  2104. ],
  2105. "output_can_alter": false,
  2106. "variables": [
  2107. {
  2108. "name": "",
  2109. "type": "array[string]",
  2110. "value": "#{c91eb026-e86a-418f-a865-a98aa60bcf19.result}"
  2111. }
  2112. ],
  2113. "filter_by": {
  2114. "conditions": [
  2115. {
  2116. "varType": "string",
  2117. "comparison_operator": "contains",
  2118. "right_value": "22"
  2119. }
  2120. ],
  2121. "enabled": false
  2122. },
  2123. "isInIteration": false,
  2124. "default_value": [],
  2125. "title": "列表操作",
  2126. "type": "list-operator",
  2127. "nodeType": "list-operator",
  2128. "error_strategy": "none",
  2129. "retry_config": {
  2130. "max_retries": 3,
  2131. "retry_enabled": false,
  2132. "retry_interval": 100
  2133. },
  2134. "timeout_config": {
  2135. "max_write_timeout": 0,
  2136. "max_read_timeout": 0,
  2137. "max_connect_timeout": 0
  2138. },
  2139. "limit": {
  2140. "size": 2,
  2141. "enabled": true
  2142. },
  2143. "width": 20,
  2144. "order_by": {
  2145. "value": "asc",
  2146. "enabled": true,
  2147. "key": ""
  2148. },
  2149. "id": "6764ede2-2c3d-46bb-ae9a-fb0a892aff84",
  2150. "position": {
  2151. "x": 368,
  2152. "y": -656
  2153. },
  2154. "extract_by": {
  2155. "serial": "1",
  2156. "enabled": true
  2157. },
  2158. "selected": false,
  2159. "desc": "",
  2160. "isInLoop": false,
  2161. "height": 40
  2162. },
  2163. "height": 40,
  2164. "id": "6764ede2-2c3d-46bb-ae9a-fb0a892aff84",
  2165. "isDeleted": false,
  2166. "position": {
  2167. "x": 32,
  2168. "y": -816
  2169. },
  2170. "selected": true,
  2171. "type": "custom",
  2172. "updateTime": "2026-02-24 17:02:01",
  2173. "width": 20,
  2174. "zIndex": 1
  2175. },
  2176. {
  2177. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2178. "creationTime": "2026-02-24 16:37:19",
  2179. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  2180. "data": {
  2181. "outputs": [
  2182. {
  2183. "name": "body",
  2184. "describe": "响应内容",
  2185. "is_require": false,
  2186. "type": "string"
  2187. },
  2188. {
  2189. "name": "status_code",
  2190. "describe": "响应状态码",
  2191. "is_require": false,
  2192. "type": "number"
  2193. },
  2194. {
  2195. "name": "headers",
  2196. "describe": "响应头列表 JSON",
  2197. "is_require": false,
  2198. "type": "object"
  2199. }
  2200. ],
  2201. "bodyType": "json",
  2202. "exception": "none",
  2203. "ssl_verify": false,
  2204. "body": {
  2205. "data": [
  2206. {
  2207. "type": "text",
  2208. "value": "",
  2209. "key": ""
  2210. }
  2211. ],
  2212. "type": "json"
  2213. },
  2214. "title": "HTTP 请求",
  2215. "type": "http-request",
  2216. "error_strategy": "none",
  2217. "retry_config": {
  2218. "max_retries": 3,
  2219. "retry_enabled": false,
  2220. "retry_interval": 100
  2221. },
  2222. "authorization": {
  2223. "type": "none",
  2224. "config": {}
  2225. },
  2226. "output": {
  2227. "headers": [],
  2228. "status_code": 200,
  2229. "files": [],
  2230. "body": ""
  2231. },
  2232. "timeout_config": {
  2233. "max_write_timeout": 1,
  2234. "max_read_timeout": 1,
  2235. "max_connect_timeout": 1
  2236. },
  2237. "exceptionDefaultValue": {
  2238. "headers": "{}",
  2239. "status_code": 0,
  2240. "body": ""
  2241. },
  2242. "id": "9b31887b-fdd6-47f1-9eaa-59c17c1b48e3",
  2243. "selected": false,
  2244. "height": 96,
  2245. "errorConfig": {
  2246. "retry_delay": 100,
  2247. "retry": false,
  2248. "max_retry": 3
  2249. },
  2250. "output_can_alter": false,
  2251. "timeoutConfig": {
  2252. "read": 1,
  2253. "write": 1,
  2254. "connect": 1
  2255. },
  2256. "variables": [],
  2257. "method": "get",
  2258. "isInIteration": false,
  2259. "default_value": [],
  2260. "params": [],
  2261. "nodeType": "http-request",
  2262. "url": "",
  2263. "width": 96,
  2264. "verifySSL": false,
  2265. "heads": [],
  2266. "position": {
  2267. "x": 1088,
  2268. "y": 160
  2269. },
  2270. "desc": "",
  2271. "isInLoop": false
  2272. },
  2273. "height": 96,
  2274. "id": "9b31887b-fdd6-47f1-9eaa-59c17c1b48e3",
  2275. "isDeleted": false,
  2276. "position": {
  2277. "x": 624,
  2278. "y": -128
  2279. },
  2280. "selected": false,
  2281. "type": "custom",
  2282. "updateTime": "2026-02-24 17:01:59",
  2283. "width": 96,
  2284. "zIndex": 1
  2285. },
  2286. {
  2287. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2288. "creationTime": "2026-01-28 19:54:03",
  2289. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  2290. "data": {
  2291. "outputs": [
  2292. {
  2293. "name": "result",
  2294. "type": "array[string]"
  2295. }
  2296. ],
  2297. "output_can_alter": true,
  2298. "variables": [
  2299. {
  2300. "name": "str",
  2301. "type": "string",
  2302. "value": ""
  2303. }
  2304. ],
  2305. "code": "\nfunction main(str) {\n return {\n result: ['11','22','33']\n }\n}\n",
  2306. "isInIteration": false,
  2307. "default_value": [],
  2308. "title": "代码执行",
  2309. "type": "code",
  2310. "nodeType": "code",
  2311. "error_strategy": "none",
  2312. "retry_config": {
  2313. "max_retries": 3,
  2314. "retry_enabled": false,
  2315. "retry_interval": 100
  2316. },
  2317. "timeout_config": {
  2318. "max_write_timeout": 0,
  2319. "max_read_timeout": 0,
  2320. "max_connect_timeout": 0
  2321. },
  2322. "code_language": "javascript",
  2323. "width": 20,
  2324. "id": "c91eb026-e86a-418f-a865-a98aa60bcf19",
  2325. "position": {
  2326. "x": 976,
  2327. "y": -256
  2328. },
  2329. "selected": false,
  2330. "desc": "",
  2331. "isInLoop": false,
  2332. "height": 40
  2333. },
  2334. "height": 40,
  2335. "id": "c91eb026-e86a-418f-a865-a98aa60bcf19",
  2336. "isDeleted": false,
  2337. "position": {
  2338. "x": 816,
  2339. "y": -496
  2340. },
  2341. "selected": true,
  2342. "type": "custom",
  2343. "updateTime": "2026-02-24 17:01:58",
  2344. "width": 20,
  2345. "zIndex": 1
  2346. },
  2347. {
  2348. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2349. "creationTime": "2026-01-29 13:07:48",
  2350. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  2351. "data": {
  2352. "outputs": [],
  2353. "output_can_alter": true,
  2354. "variables": [],
  2355. "cases": [
  2356. {
  2357. "logical_operator": "and",
  2358. "id": "c2cb978e-fce8-11f0-a59d-266b7b87fca6-1",
  2359. "conditions": [
  2360. {
  2361. "varType": "string",
  2362. "left_value": "#{c91eb026-e86a-418f-a865-a98aa60bcf19.result.result.name}",
  2363. "comparison_operator": "is",
  2364. "right_value": "智能"
  2365. }
  2366. ]
  2367. },
  2368. {
  2369. "logical_operator": "and",
  2370. "id": "c2cb978e-fce8-11f0-a59d-266b7b87fca6-2",
  2371. "conditions": [
  2372. {
  2373. "varType": "string",
  2374. "left_value": "#{c91eb026-e86a-418f-a865-a98aa60bcf19.result.result.name}",
  2375. "comparison_operator": "is",
  2376. "right_value": "测试智能体"
  2377. }
  2378. ]
  2379. }
  2380. ],
  2381. "isInIteration": false,
  2382. "default_value": [],
  2383. "title": "条件分支",
  2384. "type": "if-else",
  2385. "nodeType": "condition",
  2386. "error_strategy": "none",
  2387. "retry_config": {
  2388. "max_retries": 3,
  2389. "retry_enabled": false,
  2390. "retry_interval": 100
  2391. },
  2392. "timeout_config": {
  2393. "max_write_timeout": 0,
  2394. "max_read_timeout": 0,
  2395. "max_connect_timeout": 0
  2396. },
  2397. "width": 20,
  2398. "id": "de35b389-3782-474c-9dd9-cb1356dea54b",
  2399. "position": {
  2400. "x": 1088,
  2401. "y": -768
  2402. },
  2403. "selected": false,
  2404. "desc": "",
  2405. "isInLoop": false,
  2406. "height": 40
  2407. },
  2408. "height": 40,
  2409. "id": "de35b389-3782-474c-9dd9-cb1356dea54b",
  2410. "isDeleted": false,
  2411. "position": {
  2412. "x": 800,
  2413. "y": -784
  2414. },
  2415. "selected": true,
  2416. "type": "custom",
  2417. "updateTime": "2026-02-24 17:02:00",
  2418. "width": 20,
  2419. "zIndex": 1
  2420. },
  2421. {
  2422. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2423. "creationTime": "2026-02-24 16:43:53",
  2424. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  2425. "data": {
  2426. "outputs": [
  2427. {
  2428. "name": "body",
  2429. "describe": "响应内容",
  2430. "is_require": false,
  2431. "type": "string"
  2432. },
  2433. {
  2434. "name": "status_code",
  2435. "describe": "响应状态码",
  2436. "is_require": false,
  2437. "type": "number"
  2438. },
  2439. {
  2440. "name": "headers",
  2441. "describe": "响应头列表 JSON",
  2442. "is_require": false,
  2443. "type": "object"
  2444. }
  2445. ],
  2446. "bodyType": "json",
  2447. "exception": "none",
  2448. "ssl_verify": false,
  2449. "body": {
  2450. "data": [
  2451. {
  2452. "type": "text",
  2453. "value": "",
  2454. "key": ""
  2455. }
  2456. ],
  2457. "type": "json"
  2458. },
  2459. "title": "HTTP 请求",
  2460. "type": "http-request",
  2461. "error_strategy": "none",
  2462. "retry_config": {
  2463. "max_retries": 3,
  2464. "retry_enabled": false,
  2465. "retry_interval": 100
  2466. },
  2467. "authorization": {
  2468. "type": "none",
  2469. "config": {}
  2470. },
  2471. "output": {
  2472. "headers": [],
  2473. "status_code": 200,
  2474. "files": [],
  2475. "body": ""
  2476. },
  2477. "timeout_config": {
  2478. "max_write_timeout": 1,
  2479. "max_read_timeout": 1,
  2480. "max_connect_timeout": 1
  2481. },
  2482. "exceptionDefaultValue": {
  2483. "headers": "{}",
  2484. "status_code": 0,
  2485. "body": ""
  2486. },
  2487. "id": "e0af10b6-2675-4b46-becb-f4efceb6e1df",
  2488. "selected": false,
  2489. "height": 96,
  2490. "errorConfig": {
  2491. "retry_delay": 100,
  2492. "retry": false,
  2493. "max_retry": 3
  2494. },
  2495. "output_can_alter": false,
  2496. "timeoutConfig": {
  2497. "read": 1,
  2498. "write": 1,
  2499. "connect": 1
  2500. },
  2501. "variables": [],
  2502. "method": "get",
  2503. "isInIteration": false,
  2504. "default_value": [],
  2505. "params": [],
  2506. "nodeType": "http-request",
  2507. "url": "1",
  2508. "width": 96,
  2509. "verifySSL": false,
  2510. "heads": [],
  2511. "position": {
  2512. "x": -32,
  2513. "y": -16
  2514. },
  2515. "desc": "",
  2516. "isInLoop": false
  2517. },
  2518. "height": 96,
  2519. "id": "e0af10b6-2675-4b46-becb-f4efceb6e1df",
  2520. "isDeleted": false,
  2521. "position": {
  2522. "x": -32,
  2523. "y": -16
  2524. },
  2525. "selected": false,
  2526. "type": "custom",
  2527. "updateTime": "2026-02-25 11:01:27",
  2528. "width": 96,
  2529. "zIndex": 1
  2530. },
  2531. {
  2532. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2533. "creationTime": "2026-02-24 16:43:48",
  2534. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  2535. "data": {
  2536. "outputs": [
  2537. {
  2538. "name": "body",
  2539. "describe": "响应内容",
  2540. "is_require": false,
  2541. "type": "string"
  2542. },
  2543. {
  2544. "name": "status_code",
  2545. "describe": "响应状态码",
  2546. "is_require": false,
  2547. "type": "number"
  2548. },
  2549. {
  2550. "name": "headers",
  2551. "describe": "响应头列表 JSON",
  2552. "is_require": false,
  2553. "type": "object"
  2554. }
  2555. ],
  2556. "bodyType": "json",
  2557. "exception": "none",
  2558. "ssl_verify": false,
  2559. "body": {
  2560. "data": [
  2561. {
  2562. "type": "text",
  2563. "value": "",
  2564. "key": ""
  2565. }
  2566. ],
  2567. "type": "json"
  2568. },
  2569. "title": "HTTP 请求",
  2570. "type": "http-request",
  2571. "error_strategy": "none",
  2572. "retry_config": {
  2573. "max_retries": 3,
  2574. "retry_enabled": false,
  2575. "retry_interval": 100
  2576. },
  2577. "authorization": {
  2578. "type": "none",
  2579. "config": {}
  2580. },
  2581. "output": {
  2582. "headers": [],
  2583. "status_code": 200,
  2584. "files": [],
  2585. "body": ""
  2586. },
  2587. "timeout_config": {
  2588. "max_write_timeout": 1,
  2589. "max_read_timeout": 1,
  2590. "max_connect_timeout": 1
  2591. },
  2592. "exceptionDefaultValue": {
  2593. "headers": "{}",
  2594. "status_code": 0,
  2595. "body": ""
  2596. },
  2597. "id": "ea894ed1-5de4-411f-9917-0828c6f0f15d",
  2598. "selected": false,
  2599. "height": 96,
  2600. "errorConfig": {
  2601. "retry_delay": 100,
  2602. "retry": false,
  2603. "max_retry": 3
  2604. },
  2605. "output_can_alter": false,
  2606. "timeoutConfig": {
  2607. "read": 1,
  2608. "write": 1,
  2609. "connect": 1
  2610. },
  2611. "variables": [],
  2612. "method": "get",
  2613. "isInIteration": false,
  2614. "default_value": [],
  2615. "params": [],
  2616. "nodeType": "http-request",
  2617. "url": "",
  2618. "width": 96,
  2619. "verifySSL": false,
  2620. "heads": [],
  2621. "position": {
  2622. "x": -208,
  2623. "y": 304
  2624. },
  2625. "desc": "",
  2626. "isInLoop": false
  2627. },
  2628. "height": 96,
  2629. "id": "ea894ed1-5de4-411f-9917-0828c6f0f15d",
  2630. "isDeleted": false,
  2631. "position": {
  2632. "x": -208,
  2633. "y": 304
  2634. },
  2635. "selected": false,
  2636. "type": "custom",
  2637. "updateTime": "2026-02-25 11:02:57",
  2638. "width": 96,
  2639. "zIndex": 1
  2640. }
  2641. ],
  2642. "profilePhoto": "1111",
  2643. "viewPort": {
  2644. "x": 10,
  2645. "y": 10,
  2646. "zoom": 1
  2647. }
  2648. },
  2649. "isAuthorized": true
  2650. }
  2651. }
  2652. },
  2653. "headers": {}
  2654. }
  2655. },
  2656. "security": []
  2657. }
  2658. },
  2659. "/api/agent/doNewAgentNode": {
  2660. "post": {
  2661. "summary": "智能体添加节点",
  2662. "deprecated": false,
  2663. "description": "",
  2664. "tags": ["Agent"],
  2665. "parameters": [
  2666. {
  2667. "name": "Authorization",
  2668. "in": "header",
  2669. "description": "",
  2670. "example": "bpm_client_1490845225663336448",
  2671. "schema": {
  2672. "type": "string",
  2673. "default": "bpm_client_1490845225663336448"
  2674. }
  2675. }
  2676. ],
  2677. "requestBody": {
  2678. "content": {
  2679. "application/json": {
  2680. "schema": {
  2681. "type": "object",
  2682. "properties": {
  2683. "appAgentId": {
  2684. "type": "string"
  2685. },
  2686. "position": {
  2687. "type": "object",
  2688. "properties": {
  2689. "x": {
  2690. "type": "integer"
  2691. },
  2692. "y": {
  2693. "type": "integer"
  2694. }
  2695. },
  2696. "required": ["x", "y"]
  2697. },
  2698. "width": {
  2699. "type": "integer"
  2700. },
  2701. "height": {
  2702. "type": "integer"
  2703. },
  2704. "selected": {
  2705. "type": "boolean"
  2706. },
  2707. "nodeType": {
  2708. "type": "string"
  2709. },
  2710. "zIndex": {
  2711. "type": "integer"
  2712. },
  2713. "parentId": {
  2714. "type": "string"
  2715. }
  2716. },
  2717. "required": [
  2718. "appAgentId",
  2719. "parentId",
  2720. "position",
  2721. "width",
  2722. "height",
  2723. "selected",
  2724. "nodeType",
  2725. "zIndex"
  2726. ]
  2727. },
  2728. "examples": {
  2729. "1": {
  2730. "value": {
  2731. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2732. "parentId": "",
  2733. "position": {
  2734. "x": 20,
  2735. "y": 30
  2736. },
  2737. "width": 20,
  2738. "height": 40,
  2739. "selected": true,
  2740. "nodeType": "http-request",
  2741. "zIndex": 1
  2742. },
  2743. "summary": "HTTP请求"
  2744. },
  2745. "2": {
  2746. "value": {
  2747. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2748. "parentId": "",
  2749. "position": {
  2750. "x": 20,
  2751. "y": 30
  2752. },
  2753. "width": 20,
  2754. "height": 40,
  2755. "selected": true,
  2756. "nodeType": "code",
  2757. "zIndex": 1
  2758. },
  2759. "summary": "代码执行"
  2760. },
  2761. "3": {
  2762. "value": {
  2763. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2764. "parentId": "",
  2765. "position": {
  2766. "x": 20,
  2767. "y": 30
  2768. },
  2769. "width": 20,
  2770. "height": 40,
  2771. "selected": true,
  2772. "nodeType": "if-else",
  2773. "zIndex": 1
  2774. },
  2775. "summary": "条件分支"
  2776. },
  2777. "4": {
  2778. "value": {
  2779. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2780. "parentId": "",
  2781. "position": {
  2782. "x": 20,
  2783. "y": 30
  2784. },
  2785. "width": 20,
  2786. "height": 40,
  2787. "selected": true,
  2788. "nodeType": "iteration",
  2789. "zIndex": 1
  2790. },
  2791. "summary": "迭代"
  2792. },
  2793. "5": {
  2794. "value": {
  2795. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2796. "parentId": "",
  2797. "position": {
  2798. "x": 20,
  2799. "y": 30
  2800. },
  2801. "width": 20,
  2802. "height": 40,
  2803. "selected": true,
  2804. "nodeType": "list-operator",
  2805. "zIndex": 1
  2806. },
  2807. "summary": "列表操作"
  2808. },
  2809. "6": {
  2810. "value": {
  2811. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2812. "parentId": "",
  2813. "position": {
  2814. "x": 20,
  2815. "y": 30
  2816. },
  2817. "width": 20,
  2818. "height": 40,
  2819. "selected": true,
  2820. "nodeType": "loop",
  2821. "zIndex": 1
  2822. },
  2823. "summary": "循环"
  2824. },
  2825. "7": {
  2826. "value": {
  2827. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2828. "parentId": "74bc1d79-b51e-4279-b7e9-c0029a1ac154",
  2829. "position": {
  2830. "x": 20,
  2831. "y": 30
  2832. },
  2833. "width": 20,
  2834. "height": 40,
  2835. "selected": true,
  2836. "nodeType": "code",
  2837. "zIndex": 1
  2838. },
  2839. "summary": "代码(迭代内)"
  2840. },
  2841. "8": {
  2842. "value": {
  2843. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2844. "parentId": "74bc1d79-b51e-4279-b7e9-c0029a1ac154",
  2845. "position": {
  2846. "x": 20,
  2847. "y": 30
  2848. },
  2849. "width": 20,
  2850. "height": 40,
  2851. "selected": true,
  2852. "nodeType": "end",
  2853. "zIndex": 1
  2854. },
  2855. "summary": "结束输出"
  2856. },
  2857. "9": {
  2858. "value": {
  2859. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2860. "parentId": "",
  2861. "position": {
  2862. "x": 20,
  2863. "y": 30
  2864. },
  2865. "width": 20,
  2866. "height": 40,
  2867. "selected": true,
  2868. "nodeType": "start",
  2869. "zIndex": 1
  2870. },
  2871. "summary": "用户输入"
  2872. }
  2873. }
  2874. }
  2875. },
  2876. "required": true
  2877. },
  2878. "responses": {
  2879. "200": {
  2880. "description": "",
  2881. "content": {
  2882. "application/json": {
  2883. "schema": {
  2884. "type": "object",
  2885. "properties": {
  2886. "isSuccess": {
  2887. "type": "boolean"
  2888. },
  2889. "code": {
  2890. "type": "integer"
  2891. },
  2892. "isAuthorized": {
  2893. "type": "boolean"
  2894. }
  2895. },
  2896. "required": ["isSuccess", "code", "isAuthorized"]
  2897. },
  2898. "example": {
  2899. "isSuccess": true,
  2900. "code": 1,
  2901. "isAuthorized": true
  2902. }
  2903. }
  2904. },
  2905. "headers": {}
  2906. }
  2907. },
  2908. "security": []
  2909. }
  2910. },
  2911. "/api/agent/doUpdateAgentNode": {
  2912. "post": {
  2913. "summary": "更新智能体节点",
  2914. "deprecated": false,
  2915. "description": "",
  2916. "tags": ["Agent"],
  2917. "parameters": [
  2918. {
  2919. "name": "Authorization",
  2920. "in": "header",
  2921. "description": "",
  2922. "example": "bpm_client_1490845225663336448",
  2923. "schema": {
  2924. "type": "string",
  2925. "default": "bpm_client_1490845225663336448"
  2926. }
  2927. }
  2928. ],
  2929. "requestBody": {
  2930. "content": {
  2931. "application/json": {
  2932. "schema": {
  2933. "type": "object",
  2934. "properties": {
  2935. "id": {
  2936. "type": "string"
  2937. },
  2938. "appAgentId": {
  2939. "type": "string"
  2940. },
  2941. "parentId": {
  2942. "type": "string"
  2943. },
  2944. "position": {
  2945. "type": "object",
  2946. "properties": {
  2947. "x": {
  2948. "type": "integer"
  2949. },
  2950. "y": {
  2951. "type": "integer"
  2952. }
  2953. },
  2954. "required": ["x", "y"]
  2955. },
  2956. "width": {
  2957. "type": "integer"
  2958. },
  2959. "height": {
  2960. "type": "integer"
  2961. },
  2962. "selected": {
  2963. "type": "boolean"
  2964. },
  2965. "nodeType": {
  2966. "type": "string"
  2967. },
  2968. "zIndex": {
  2969. "type": "integer"
  2970. },
  2971. "data": {
  2972. "type": "object",
  2973. "properties": {}
  2974. }
  2975. },
  2976. "required": [
  2977. "id",
  2978. "appAgentId",
  2979. "parentId",
  2980. "position",
  2981. "width",
  2982. "height",
  2983. "selected",
  2984. "nodeType",
  2985. "zIndex",
  2986. "data"
  2987. ]
  2988. },
  2989. "examples": {
  2990. "1": {
  2991. "value": {
  2992. "id": "492048da-6f33-4a36-adc5-cff4b973b053",
  2993. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2994. "parentId": "",
  2995. "name": "HTTP 请求 1",
  2996. "remark": "",
  2997. "position": {
  2998. "x": 20,
  2999. "y": 30
  3000. },
  3001. "width": 20,
  3002. "height": 40,
  3003. "selected": true,
  3004. "nodeType": "http-request",
  3005. "zIndex": 1,
  3006. "data": {
  3007. "outputs": [
  3008. {
  3009. "name": "body",
  3010. "describe": "响应内容",
  3011. "type": "string"
  3012. },
  3013. {
  3014. "name": "status_code",
  3015. "describe": "响应状态码",
  3016. "type": "number"
  3017. },
  3018. {
  3019. "name": "headers",
  3020. "describe": "响应头列表 JSON",
  3021. "type": "object"
  3022. }
  3023. ],
  3024. "output_can_alter": false,
  3025. "variables": [],
  3026. "method": "post",
  3027. "ssl_verify": false,
  3028. "isInIteration": false,
  3029. "default_value": [],
  3030. "body": {
  3031. "type": "json",
  3032. "data": [
  3033. {
  3034. "key": "",
  3035. "type": "text",
  3036. "value": "{\"id\":\"b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8\"}"
  3037. }
  3038. ]
  3039. },
  3040. "params": [],
  3041. "title": "HTTP 请求",
  3042. "type": "http-request",
  3043. "error_strategy": "none",
  3044. "retry_config": {
  3045. "max_retries": 3,
  3046. "retry_enabled": false,
  3047. "retry_interval": 100
  3048. },
  3049. "url": "#{env.api_address}/api/agent/getAgentInfo",
  3050. "authorization": {
  3051. "type": "none",
  3052. "config": {
  3053. "api_key": "",
  3054. "header": "",
  3055. "type": ""
  3056. }
  3057. },
  3058. "timeout_config": {
  3059. "max_write_timeout": 0,
  3060. "max_read_timeout": 0,
  3061. "max_connect_timeout": 0
  3062. },
  3063. "heads": [
  3064. {
  3065. "name": "Authorization",
  3066. "value": "bpm_client_1473687766939209728"
  3067. }
  3068. ],
  3069. "selected": true,
  3070. "desc": "",
  3071. "isInLoop": false
  3072. }
  3073. },
  3074. "summary": "HTTP请求"
  3075. },
  3076. "2": {
  3077. "value": {
  3078. "id": "c91eb026-e86a-418f-a865-a98aa60bcf19",
  3079. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3080. "parentId": "",
  3081. "name": "代码执行 1",
  3082. "remark": "",
  3083. "position": {
  3084. "x": 20,
  3085. "y": 30
  3086. },
  3087. "width": 20,
  3088. "height": 40,
  3089. "selected": true,
  3090. "zIndex": 1,
  3091. "data": {
  3092. "outputs": [
  3093. {
  3094. "name": "result",
  3095. "type": "array[string]"
  3096. }
  3097. ],
  3098. "output_can_alter": true,
  3099. "variables": [
  3100. {
  3101. "name": "str",
  3102. "type": "string",
  3103. "value": "#{492048da-6f33-4a36-adc5-cff4b973b053.body}"
  3104. }
  3105. ],
  3106. "code": "\nfunction main(str) {\n return {\n result: ['11','22','33']\n }\n}\n",
  3107. "isInIteration": false,
  3108. "default_value": [],
  3109. "title": "代码执行",
  3110. "type": "code",
  3111. "nodeType": "code",
  3112. "error_strategy": "none",
  3113. "retry_config": {
  3114. "max_retries": 3,
  3115. "retry_enabled": false,
  3116. "retry_interval": 100
  3117. },
  3118. "timeout_config": {
  3119. "max_write_timeout": 0,
  3120. "max_read_timeout": 0,
  3121. "max_connect_timeout": 0
  3122. },
  3123. "code_language": "javascript",
  3124. "width": 20,
  3125. "id": "c91eb026-e86a-418f-a865-a98aa60bcf19",
  3126. "position": {
  3127. "x": 816,
  3128. "y": -496
  3129. },
  3130. "selected": false,
  3131. "desc": "",
  3132. "isInLoop": false,
  3133. "height": 40
  3134. }
  3135. },
  3136. "summary": "代码执行"
  3137. },
  3138. "3": {
  3139. "value": "{\r\n\t\"id\": \"de35b389-3782-474c-9dd9-cb1356dea54b\",\r\n\t\"appAgentId\": \"b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8\",\r\n\t\"parentId\": \"\",\r\n\t\"name\": \"条件分支 1\",\r\n\t\"remark\": \"\",\r\n\t\"position\": {\r\n\t\t\"x\": 20,\r\n\t\t\"y\": 30\r\n\t},\r\n\t\"width\": 20,\r\n\t\"height\": 40,\r\n\t\"selected\": true,\r\n\t\"zIndex\": 1,\r\n\t\"data\": {\r\n\t\t\"outputs\": [],\r\n\t\t\"output_can_alter\": true,\r\n\t\t\"variables\": [],\r\n\t\t\"cases\": [\r\n\t\t\t{\r\n\t\t\t\t\"id\": \"c2cb978e-fce8-11f0-a59d-266b7b87fca6-1\",\r\n\t\t\t\t\"logical_operator\": \"and\",\r\n\t\t\t\t\"conditions\": [\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t\"comparison_operator\": \"is\",\r\n\t\t\t\t\t\t\"left_value\": \"#{c91eb026-e86a-418f-a865-a98aa60bcf19.result.result.name}\",\r\n\t\t\t\t\t\t\"right_value\": \"智能\",\r\n\t\t\t\t\t\t\"varType\": \"string\"\r\n\t\t\t\t\t}\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t \t{\r\n\t\t\t\t\"id\": \"c2cb978e-fce8-11f0-a59d-266b7b87fca6-2\",\r\n\t\t\t\t\"logical_operator\": \"and\",\r\n\t\t\t\t\"conditions\": [\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t\"comparison_operator\": \"is\",\r\n\t\t\t\t\t\t\"left_value\": \"#{c91eb026-e86a-418f-a865-a98aa60bcf19.result.result.name}\",\r\n\t\t\t\t\t\t\"right_value\": \"测试智能体\",\r\n\t\t\t\t\t\t\"varType\": \"string\"\r\n\t\t\t\t\t}\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t],\r\n\t\t\"isInIteration\": false,\r\n\t\t\"default_value\": [],\r\n\t\t\"title\": \"条件分支\",\r\n\t\t\"type\": \"if-else\",\r\n\t\t\"error_strategy\": \"none\",\r\n\t\t\"retry_config\": {\r\n\t\t\t\"max_retries\": 3,\r\n\t\t\t\"retry_enabled\": false,\r\n\t\t\t\"retry_interval\": 100\r\n\t\t},\r\n\t\t\"timeout_config\": {\r\n\t\t\t\"max_write_timeout\": 0,\r\n\t\t\t\"max_read_timeout\": 0,\r\n\t\t\t\"max_connect_timeout\": 0\r\n\t\t},\r\n\t\t\"selected\": false,\r\n\t\t\"desc\": \"\",\r\n\t\t\"isInLoop\": false\r\n\t}\r\n}",
  3140. "summary": "条件分支"
  3141. },
  3142. "4": {
  3143. "value": "{\r\n\t\"id\": \"6764ede2-2c3d-46bb-ae9a-fb0a892aff84\",\r\n\t\"appAgentId\": \"b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8\",\r\n\t\"parentId\": \"\",\r\n\t\"name\": \"列表操作 1\",\r\n\t\"remark\": \"\",\r\n\t\"position\": {\r\n\t\t\"x\": 20,\r\n\t\t\"y\": 30\r\n\t},\r\n\t\"width\": 20,\r\n\t\"height\": 40,\r\n\t\"selected\": true,\r\n\t\"zIndex\": 1,\r\n\t\"data\": {\r\n\t\t\"outputs\": [\r\n\t\t\t{\r\n\t\t\t\t\"name\": \"result\",\r\n\t\t\t\t\"describe\": \"过滤结果\",\r\n\t\t\t\t\"is_require\": false,\r\n\t\t\t\t\"type\": \"array[string]\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\t\"name\": \"first_record\",\r\n\t\t\t\t\"describe\": \"第一条记录\",\r\n\t\t\t\t\"is_require\": false,\r\n\t\t\t\t\"type\": \"\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\t\"name\": \"last_record\",\r\n\t\t\t\t\"describe\": \"最后一条记录\",\r\n\t\t\t\t\"is_require\": false,\r\n\t\t\t\t\"type\": \"\"\r\n\t\t\t}\r\n\t\t],\r\n\t\t\"output_can_alter\": false,\r\n\t\t\"variables\": [\r\n\t\t\t{\r\n\t\t\t\t\"name\": \"\",\r\n\t\t\t\t\"type\": \"array[string]\",\r\n\t\t\t\t\"value\": \"#{c91eb026-e86a-418f-a865-a98aa60bcf19.result}\"\r\n\t\t\t}\r\n\t\t],\r\n\t\t\"filter_by\": {\r\n\t\t\t\"conditions\": [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"comparison_operator\": \"contains\",\r\n\t\t\t\t\t\"right_value\": '22',\r\n\t\t\t\t\t\"varType\": 'string'\r\n\t\t\t\t}\r\n\t\t\t],\r\n\t\t\t\"enabled\": false\r\n\t\t},\r\n\t\t\"isInIteration\": false,\r\n\t\t\"default_value\": [],\r\n\t\t\"title\": \"列表操作\",\r\n\t\t\"type\": \"list-operator\",\r\n\t\t\"error_strategy\": \"none\",\r\n\t\t\"retry_config\": {\r\n\t\t\t\"max_retries\": 3,\r\n\t\t\t\"retry_enabled\": false,\r\n\t\t\t\"retry_interval\": 100\r\n\t\t},\r\n\t\t\"timeout_config\": {\r\n\t\t\t\"max_write_timeout\": 0,\r\n\t\t\t\"max_read_timeout\": 0,\r\n\t\t\t\"max_connect_timeout\": 0\r\n\t\t},\r\n\t\t\"limit\": {\r\n\t\t\t\"size\": 2,\r\n\t\t\t\"enabled\": true\r\n\t\t},\r\n\t\t\"order_by\": {\r\n\t\t\t\"value\": \"asc\",\r\n\t\t\t\"enabled\": true,\r\n\t\t\t\"key\": \"\"\r\n\t\t},\r\n\t\t\"extract_by\": {\r\n\t\t\t\"serial\": \"1\",\r\n\t\t\t\"enabled\": true\r\n\t\t},\r\n\t\t\"selected\": false,\r\n\t\t\"desc\": \"\",\r\n\t\t\"isInLoop\": false\r\n\t}\r\n}",
  3144. "summary": "列表操作"
  3145. },
  3146. "5": {
  3147. "value": "{\r\n\t\"id\": \"cae0c279-c1aa-40b6-9702-1df2af104a9b\",\r\n\t\"appAgentId\": \"b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8\",\r\n\t\"parentId\": \"\",\r\n\t\"name\": \"循环 1\",\r\n\t\"remark\": \"\",\r\n\t\"position\": {\r\n\t\t\"x\": 20,\r\n\t\t\"y\": 30\r\n\t},\r\n\t\"width\": 20,\r\n\t\"height\": 40,\r\n\t\"selected\": true,\r\n\t\"zIndex\": 1,\r\n\t\"data\": {\r\n\t\t\"outputs\": [\r\n\t\t\t{\r\n\t\t\t\t\"name\": \"aa\",\r\n\t\t\t\t\"type\": \"array[number]\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\t\"name\": \"ifout\",\r\n\t\t\t\t\"type\": \"boolean\"\r\n\t\t\t}\r\n\t\t],\r\n\t\t\"output_can_alter\": true,\r\n\t\t\"variables\": [\r\n\t\t\t{\r\n\t\t\t\t\"name\": \"aa\",\r\n\t\t\t\t\"type\": \"array[number]\",\r\n\t\t\t\t\"value_type\": \"constant\",\r\n\t\t\t\t\"value\": \"[11,22,33]\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\t\"name\": \"ifout\",\r\n\t\t\t\t\"type\": \"boolean\",\r\n\t\t\t\t\"value_type\": \"constant\",\r\n\t\t\t\t\"value\": \"false\"\r\n\t\t\t}\r\n\t\t],\r\n\t\t\"error_handle_mode\": \"terminated\",\r\n\t\t\"isInIteration\": false,\r\n\t\t\"default_value\": [],\r\n\t\t\"start_node_id\": \"bceb809d-e12f-4401-bfcc-cbd72f421278\",\r\n\t\t\"break_conditions\": [\r\n\t\t\t{\r\n\t\t\t\t\"comparison_operator\": \"is\",\r\n\t\t\t\t\"left_value\": \"#{cae0c279-c1aa-40b6-9702-1df2af104a9b.ifout}\",\r\n\t\t\t\t\"right_value\": \"true\",\r\n\t\t\t\t\"varType\": \"boolean\"\r\n\t\t\t}\r\n\t\t],\r\n\t\t\"title\": \"循环\",\r\n\t\t\"type\": \"loop\",\r\n\t\t\"error_strategy\": \"none\",\r\n\t\t\"loop_id\": \"cae0c279-c1aa-40b6-9702-1df2af104a9b\",\r\n\t\t\"retry_config\": {\r\n\t\t\t\"max_retries\": 3,\r\n\t\t\t\"retry_enabled\": false,\r\n\t\t\t\"retry_interval\": 100\r\n\t\t},\r\n\t\t\"loop_count\": 10,\r\n\t\t\"logical_operator\": \"and\",\r\n\t\t\"selected\": false,\r\n\t\t\"desc\": \"\",\r\n\t\t\"isInLoop\": true\r\n\t}\r\n}",
  3148. "summary": "循环"
  3149. },
  3150. "6": {
  3151. "value": {
  3152. "id": "74bc1d79-b51e-4279-b7e9-c0029a1ac154",
  3153. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3154. "name": "迭代 1",
  3155. "remark": "",
  3156. "position": {
  3157. "x": 20,
  3158. "y": 30
  3159. },
  3160. "width": 20,
  3161. "height": 40,
  3162. "selected": true,
  3163. "zIndex": 1,
  3164. "data": {
  3165. "outputs": [
  3166. {
  3167. "name": "output",
  3168. "type": "array[string]"
  3169. }
  3170. ],
  3171. "output_iteration_variable": {
  3172. "name": "",
  3173. "type": "string",
  3174. "value": "#{25f07893-8a36-4355-9c2d-2007a448dcae.result}"
  3175. },
  3176. "output_can_alter": true,
  3177. "variables": [
  3178. {
  3179. "name": "iteration_input",
  3180. "type": "array[string]",
  3181. "value": "#{c91eb026-e86a-418f-a865-a98aa60bcf19.result}"
  3182. }
  3183. ],
  3184. "error_handle_mode": "terminated",
  3185. "flatten_output": false,
  3186. "isInIteration": true,
  3187. "default_value": [],
  3188. "start_node_id": "e6b5f725-3504-4cc0-b26f-fe39337d0aee",
  3189. "title": "迭代",
  3190. "type": "iteration",
  3191. "error_strategy": "none",
  3192. "retry_config": {
  3193. "max_retries": 3,
  3194. "retry_enabled": false,
  3195. "retry_interval": 100
  3196. },
  3197. "iteration_id": "74bc1d79-b51e-4279-b7e9-c0029a1ac154",
  3198. "is_parallel": false,
  3199. "selected": false,
  3200. "desc": "",
  3201. "isInLoop": false,
  3202. "parallel_nums": 10
  3203. }
  3204. },
  3205. "summary": "迭代"
  3206. },
  3207. "7": {
  3208. "value": {
  3209. "id": "25f07893-8a36-4355-9c2d-2007a448dcae",
  3210. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3211. "parentId": "",
  3212. "name": "代码执行 2",
  3213. "remark": "",
  3214. "position": {
  3215. "x": 20,
  3216. "y": 30
  3217. },
  3218. "width": 20,
  3219. "height": 40,
  3220. "selected": true,
  3221. "zIndex": 1,
  3222. "data": {
  3223. "outputs": [
  3224. {
  3225. "name": "result",
  3226. "type": "string"
  3227. }
  3228. ],
  3229. "output_can_alter": true,
  3230. "variables": [
  3231. {
  3232. "name": "item",
  3233. "type": "string",
  3234. "value": "#{74bc1d79-b51e-4279-b7e9-c0029a1ac154.item}"
  3235. }
  3236. ],
  3237. "isInIteration": false,
  3238. "default_value": [],
  3239. "title": "代码执行",
  3240. "type": "code",
  3241. "error_strategy": "none",
  3242. "retry_config": {
  3243. "max_retries": 3,
  3244. "retry_enabled": false,
  3245. "retry_interval": 100
  3246. },
  3247. "timeout_config": {
  3248. "max_write_timeout": 0,
  3249. "max_read_timeout": 0,
  3250. "max_connect_timeout": 0
  3251. },
  3252. "code": "\nfunction main(item) {\n return {\n result: item\n }\n}\n",
  3253. "code_language": "javascript",
  3254. "selected": false,
  3255. "desc": "",
  3256. "isInLoop": false
  3257. }
  3258. },
  3259. "summary": "代码(迭代内)"
  3260. },
  3261. "8": {
  3262. "value": {
  3263. "id": "3ba96b4e-25c2-486a-be27-94ab9957aba1",
  3264. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3265. "name": "迭代 1",
  3266. "remark": "",
  3267. "position": {
  3268. "x": 20,
  3269. "y": 30
  3270. },
  3271. "width": 20,
  3272. "height": 40,
  3273. "selected": true,
  3274. "zIndex": 1,
  3275. "data": {
  3276. "outputs": [
  3277. {
  3278. "name": "aa",
  3279. "type": "array[string]",
  3280. "value": "#{c91eb026-e86a-418f-a865-a98aa60bcf19.result}"
  3281. },
  3282. {
  3283. "name": "bb",
  3284. "type": "string",
  3285. "value": "#{492048da-6f33-4a36-adc5-cff4b973b053.body}"
  3286. },
  3287. {
  3288. "name": "cc",
  3289. "type": "array[string]",
  3290. "value": "#{74bc1d79-b51e-4279-b7e9-c0029a1ac154.output}"
  3291. }
  3292. ],
  3293. "output_can_alter": true,
  3294. "variables": [],
  3295. "isInIteration": false,
  3296. "default_value": [],
  3297. "type": "end",
  3298. "error_strategy": "none",
  3299. "retry_config": {
  3300. "max_retries": 3,
  3301. "retry_enabled": false,
  3302. "retry_interval": 100
  3303. },
  3304. "selected": false,
  3305. "isInLoop": false
  3306. }
  3307. },
  3308. "summary": "结束输出"
  3309. }
  3310. }
  3311. }
  3312. },
  3313. "required": true
  3314. },
  3315. "responses": {
  3316. "200": {
  3317. "description": "",
  3318. "content": {
  3319. "application/json": {
  3320. "schema": {
  3321. "type": "object",
  3322. "properties": {
  3323. "isSuccess": {
  3324. "type": "boolean"
  3325. },
  3326. "code": {
  3327. "type": "integer"
  3328. },
  3329. "isAuthorized": {
  3330. "type": "boolean"
  3331. }
  3332. },
  3333. "required": ["isSuccess", "code", "isAuthorized"]
  3334. },
  3335. "example": {
  3336. "isSuccess": true,
  3337. "code": 1,
  3338. "isAuthorized": true
  3339. }
  3340. }
  3341. },
  3342. "headers": {}
  3343. }
  3344. },
  3345. "security": []
  3346. }
  3347. },
  3348. "/api/agent/doDeleteAgentNode": {
  3349. "post": {
  3350. "summary": "删除智能体节点",
  3351. "deprecated": false,
  3352. "description": "",
  3353. "tags": ["Agent"],
  3354. "parameters": [
  3355. {
  3356. "name": "Authorization",
  3357. "in": "header",
  3358. "description": "",
  3359. "example": "bpm_client_1490845225663336448",
  3360. "schema": {
  3361. "type": "string",
  3362. "default": "bpm_client_1490845225663336448"
  3363. }
  3364. }
  3365. ],
  3366. "requestBody": {
  3367. "content": {
  3368. "application/json": {
  3369. "schema": {
  3370. "type": "object",
  3371. "properties": {
  3372. "id": {
  3373. "type": "string"
  3374. }
  3375. },
  3376. "required": ["id"]
  3377. },
  3378. "example": {
  3379. "id": "492048da-6f33-4a36-adc5-cff4b973b053"
  3380. }
  3381. }
  3382. },
  3383. "required": true
  3384. },
  3385. "responses": {
  3386. "200": {
  3387. "description": "",
  3388. "content": {
  3389. "application/json": {
  3390. "schema": {
  3391. "type": "object",
  3392. "properties": {
  3393. "isSuccess": {
  3394. "type": "boolean"
  3395. },
  3396. "code": {
  3397. "type": "integer"
  3398. },
  3399. "isAuthorized": {
  3400. "type": "boolean"
  3401. }
  3402. },
  3403. "required": ["isSuccess", "code", "isAuthorized"]
  3404. },
  3405. "example": {
  3406. "isSuccess": true,
  3407. "code": 1,
  3408. "isAuthorized": true
  3409. }
  3410. }
  3411. },
  3412. "headers": {}
  3413. }
  3414. },
  3415. "security": []
  3416. }
  3417. },
  3418. "/api/agent/doNewEdge": {
  3419. "post": {
  3420. "summary": "新增智能体边缘信息",
  3421. "deprecated": false,
  3422. "description": "",
  3423. "tags": ["Agent"],
  3424. "parameters": [
  3425. {
  3426. "name": "Authorization",
  3427. "in": "header",
  3428. "description": "",
  3429. "example": "bpm_client_1490845225663336448",
  3430. "schema": {
  3431. "type": "string",
  3432. "default": "bpm_client_1490845225663336448"
  3433. }
  3434. }
  3435. ],
  3436. "requestBody": {
  3437. "content": {
  3438. "application/json": {
  3439. "schema": {
  3440. "type": "object",
  3441. "properties": {
  3442. "appAgentId": {
  3443. "type": "string"
  3444. },
  3445. "source": {
  3446. "type": "string"
  3447. },
  3448. "sourceHandle": {
  3449. "type": "string"
  3450. },
  3451. "target": {
  3452. "type": "string"
  3453. },
  3454. "zIndex": {
  3455. "type": "integer"
  3456. }
  3457. },
  3458. "required": ["appAgentId", "source", "sourceHandle", "target", "zIndex"]
  3459. },
  3460. "examples": {
  3461. "1": {
  3462. "value": {
  3463. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3464. "source": "492048da-6f33-4a36-adc5-cff4b973b053",
  3465. "target": "c91eb026-e86a-418f-a865-a98aa60bcf19",
  3466. "zIndex": 0
  3467. },
  3468. "summary": "普通节点"
  3469. },
  3470. "2": {
  3471. "value": {
  3472. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3473. "source": "de35b389-3782-474c-9dd9-cb1356dea54b",
  3474. "sourceHandle": "c2cb978e-fce8-11f0-a59d-266b7b87fca6-1",
  3475. "target": "6764ede2-2c3d-46bb-ae9a-fb0a892aff84",
  3476. "zIndex": 0
  3477. },
  3478. "summary": "条件分支节点边缘"
  3479. }
  3480. }
  3481. }
  3482. },
  3483. "required": true
  3484. },
  3485. "responses": {
  3486. "200": {
  3487. "description": "",
  3488. "content": {
  3489. "application/json": {
  3490. "schema": {
  3491. "type": "object",
  3492. "properties": {
  3493. "isSuccess": {
  3494. "type": "boolean"
  3495. },
  3496. "code": {
  3497. "type": "integer"
  3498. },
  3499. "isAuthorized": {
  3500. "type": "boolean"
  3501. }
  3502. },
  3503. "required": ["isSuccess", "code", "isAuthorized"]
  3504. },
  3505. "example": {
  3506. "isSuccess": true,
  3507. "code": 1,
  3508. "isAuthorized": true
  3509. }
  3510. }
  3511. },
  3512. "headers": {}
  3513. }
  3514. },
  3515. "security": []
  3516. }
  3517. },
  3518. "/api/agent/doDeleteEdge": {
  3519. "post": {
  3520. "summary": "删除智能体边缘信息",
  3521. "deprecated": false,
  3522. "description": "",
  3523. "tags": ["Agent"],
  3524. "parameters": [
  3525. {
  3526. "name": "Authorization",
  3527. "in": "header",
  3528. "description": "",
  3529. "example": "bpm_client_1490845225663336448",
  3530. "schema": {
  3531. "type": "string",
  3532. "default": "bpm_client_1490845225663336448"
  3533. }
  3534. }
  3535. ],
  3536. "requestBody": {
  3537. "content": {
  3538. "application/json": {
  3539. "schema": {
  3540. "type": "object",
  3541. "properties": {
  3542. "id": {
  3543. "type": "string"
  3544. }
  3545. },
  3546. "required": ["id"]
  3547. },
  3548. "example": {
  3549. "id": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8"
  3550. }
  3551. }
  3552. },
  3553. "required": true
  3554. },
  3555. "responses": {
  3556. "200": {
  3557. "description": "",
  3558. "content": {
  3559. "application/json": {
  3560. "schema": {
  3561. "type": "object",
  3562. "properties": {
  3563. "isSuccess": {
  3564. "type": "boolean"
  3565. },
  3566. "code": {
  3567. "type": "integer"
  3568. },
  3569. "isAuthorized": {
  3570. "type": "boolean"
  3571. }
  3572. },
  3573. "required": ["isSuccess", "code", "isAuthorized"]
  3574. },
  3575. "example": {
  3576. "isSuccess": true,
  3577. "code": 1,
  3578. "isAuthorized": true
  3579. }
  3580. }
  3581. },
  3582. "headers": {}
  3583. }
  3584. },
  3585. "security": []
  3586. }
  3587. },
  3588. "/api/agent/doSelectedEdge": {
  3589. "post": {
  3590. "summary": "选中智能体边缘",
  3591. "deprecated": false,
  3592. "description": "",
  3593. "tags": ["Agent"],
  3594. "parameters": [
  3595. {
  3596. "name": "Authorization",
  3597. "in": "header",
  3598. "description": "",
  3599. "example": "bpm_client_1490845225663336448",
  3600. "schema": {
  3601. "type": "string",
  3602. "default": "bpm_client_1490845225663336448"
  3603. }
  3604. }
  3605. ],
  3606. "requestBody": {
  3607. "content": {
  3608. "application/json": {
  3609. "schema": {
  3610. "type": "object",
  3611. "properties": {
  3612. "id": {
  3613. "type": "string"
  3614. }
  3615. },
  3616. "required": ["id"]
  3617. },
  3618. "example": {
  3619. "id": "e518d540-2242-4def-8d42-381d9fab59ee"
  3620. }
  3621. }
  3622. },
  3623. "required": true
  3624. },
  3625. "responses": {
  3626. "200": {
  3627. "description": "",
  3628. "content": {
  3629. "application/json": {
  3630. "schema": {
  3631. "type": "object",
  3632. "properties": {
  3633. "isSuccess": {
  3634. "type": "boolean"
  3635. },
  3636. "code": {
  3637. "type": "integer"
  3638. },
  3639. "isAuthorized": {
  3640. "type": "boolean"
  3641. }
  3642. },
  3643. "required": ["isSuccess", "code", "isAuthorized"]
  3644. },
  3645. "example": {
  3646. "isSuccess": true,
  3647. "code": 1,
  3648. "isAuthorized": true
  3649. }
  3650. }
  3651. },
  3652. "headers": {}
  3653. }
  3654. },
  3655. "security": []
  3656. }
  3657. },
  3658. "/api/agent/doExecute": {
  3659. "post": {
  3660. "summary": "运行智能体",
  3661. "deprecated": false,
  3662. "description": "",
  3663. "tags": ["Agent"],
  3664. "parameters": [
  3665. {
  3666. "name": "Authorization",
  3667. "in": "header",
  3668. "description": "",
  3669. "example": "bpm_client_1490845225663336448",
  3670. "schema": {
  3671. "type": "string",
  3672. "default": "bpm_client_1490845225663336448"
  3673. }
  3674. }
  3675. ],
  3676. "requestBody": {
  3677. "content": {
  3678. "application/json": {
  3679. "schema": {
  3680. "type": "object",
  3681. "properties": {
  3682. "appAgentId": {
  3683. "type": "string"
  3684. },
  3685. "start_node_id": {
  3686. "type": "string"
  3687. },
  3688. "is_debugger": {
  3689. "type": "boolean"
  3690. },
  3691. "params": {
  3692. "type": "object",
  3693. "properties": {}
  3694. }
  3695. },
  3696. "required": ["appAgentId", "start_node_id", "is_debugger", "params"]
  3697. },
  3698. "example": {
  3699. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3700. "start_node_id": "492048da-6f33-4a36-adc5-cff4b973b053",
  3701. "is_debugger": true,
  3702. "params": {}
  3703. }
  3704. }
  3705. },
  3706. "required": true
  3707. },
  3708. "responses": {
  3709. "200": {
  3710. "description": "",
  3711. "content": {
  3712. "application/json": {
  3713. "schema": {
  3714. "type": "object",
  3715. "properties": {
  3716. "isSuccess": {
  3717. "type": "boolean"
  3718. },
  3719. "code": {
  3720. "type": "integer"
  3721. },
  3722. "result": {
  3723. "type": "string"
  3724. },
  3725. "isAuthorized": {
  3726. "type": "boolean"
  3727. }
  3728. },
  3729. "required": ["isSuccess", "code", "result", "isAuthorized"]
  3730. },
  3731. "example": {
  3732. "isSuccess": true,
  3733. "code": 1,
  3734. "result": "05d08317-6fb5-4af4-b0de-8365b4d8183e",
  3735. "isAuthorized": true
  3736. }
  3737. }
  3738. },
  3739. "headers": {}
  3740. }
  3741. },
  3742. "security": []
  3743. }
  3744. },
  3745. "/api/agent/getPrevNodeOutVariableList": {
  3746. "post": {
  3747. "summary": "根据节点id,获取节点之前的所有变量列表",
  3748. "deprecated": false,
  3749. "description": "",
  3750. "tags": ["Agent"],
  3751. "parameters": [
  3752. {
  3753. "name": "Authorization",
  3754. "in": "header",
  3755. "description": "",
  3756. "example": "bpm_client_1490845225663336448",
  3757. "schema": {
  3758. "type": "string",
  3759. "default": "bpm_client_1490845225663336448"
  3760. }
  3761. }
  3762. ],
  3763. "requestBody": {
  3764. "content": {
  3765. "application/json": {
  3766. "schema": {
  3767. "type": "object",
  3768. "properties": {
  3769. "node_id": {
  3770. "type": "string"
  3771. },
  3772. "varTypeList": {
  3773. "type": "array",
  3774. "items": {
  3775. "type": "string"
  3776. }
  3777. }
  3778. },
  3779. "required": ["node_id", "varTypeList"]
  3780. },
  3781. "example": {
  3782. "node_id": "3ba96b4e-25c2-486a-be27-94ab9957aba1",
  3783. "varTypeList": []
  3784. }
  3785. }
  3786. },
  3787. "required": true
  3788. },
  3789. "responses": {
  3790. "200": {
  3791. "description": "",
  3792. "content": {
  3793. "application/json": {
  3794. "schema": {
  3795. "type": "object",
  3796. "properties": {
  3797. "isSuccess": {
  3798. "type": "boolean"
  3799. },
  3800. "code": {
  3801. "type": "integer"
  3802. },
  3803. "result": {
  3804. "type": "array",
  3805. "items": {
  3806. "type": "object",
  3807. "properties": {
  3808. "id": {
  3809. "type": "string"
  3810. },
  3811. "name": {
  3812. "type": "string"
  3813. },
  3814. "variableList": {
  3815. "type": "array",
  3816. "items": {
  3817. "type": "object",
  3818. "properties": {
  3819. "expression": {
  3820. "type": "string"
  3821. },
  3822. "name": {
  3823. "type": "string"
  3824. },
  3825. "type": {
  3826. "type": "string"
  3827. }
  3828. },
  3829. "required": ["expression", "name", "type"]
  3830. }
  3831. }
  3832. },
  3833. "required": ["id", "name", "variableList"]
  3834. }
  3835. },
  3836. "isAuthorized": {
  3837. "type": "boolean"
  3838. }
  3839. },
  3840. "required": ["isSuccess", "code", "result", "isAuthorized"]
  3841. },
  3842. "example": {
  3843. "isSuccess": true,
  3844. "code": 1,
  3845. "result": [
  3846. {
  3847. "id": "74bc1d79-b51e-4279-b7e9-c0029a1ac154",
  3848. "name": "迭代 1",
  3849. "variableList": [
  3850. {
  3851. "expression": "#{74bc1d79-b51e-4279-b7e9-c0029a1ac154.output}",
  3852. "name": "output",
  3853. "type": "array[string]"
  3854. }
  3855. ]
  3856. },
  3857. {
  3858. "id": "cae0c279-c1aa-40b6-9702-1df2af104a9b",
  3859. "name": "循环 1",
  3860. "variableList": [
  3861. {
  3862. "expression": "#{cae0c279-c1aa-40b6-9702-1df2af104a9b.aa}",
  3863. "name": "aa",
  3864. "type": "array[number]"
  3865. },
  3866. {
  3867. "expression": "#{cae0c279-c1aa-40b6-9702-1df2af104a9b.ifout}",
  3868. "name": "ifout",
  3869. "type": "boolean"
  3870. }
  3871. ]
  3872. },
  3873. {
  3874. "id": "c91eb026-e86a-418f-a865-a98aa60bcf19",
  3875. "name": "代码执行 1",
  3876. "variableList": [
  3877. {
  3878. "expression": "#{c91eb026-e86a-418f-a865-a98aa60bcf19.result}",
  3879. "name": "result",
  3880. "type": "array[string]"
  3881. }
  3882. ]
  3883. },
  3884. {
  3885. "id": "492048da-6f33-4a36-adc5-cff4b973b053",
  3886. "name": "HTTP 请求 1",
  3887. "variableList": [
  3888. {
  3889. "expression": "#{492048da-6f33-4a36-adc5-cff4b973b053.body}",
  3890. "name": "body",
  3891. "type": "string"
  3892. },
  3893. {
  3894. "expression": "#{492048da-6f33-4a36-adc5-cff4b973b053.status_code}",
  3895. "name": "status_code",
  3896. "type": "number"
  3897. },
  3898. {
  3899. "expression": "#{492048da-6f33-4a36-adc5-cff4b973b053.headers}",
  3900. "name": "headers",
  3901. "type": "object"
  3902. }
  3903. ]
  3904. },
  3905. {
  3906. "id": "env",
  3907. "name": "环境变量",
  3908. "variableList": [
  3909. {
  3910. "expression": "#{env.api_address}",
  3911. "name": "api_address",
  3912. "type": "string"
  3913. }
  3914. ]
  3915. }
  3916. ],
  3917. "isAuthorized": true
  3918. }
  3919. }
  3920. },
  3921. "headers": {}
  3922. }
  3923. },
  3924. "security": []
  3925. }
  3926. }
  3927. },
  3928. "components": {
  3929. "schemas": {
  3930. "AgentNode": {
  3931. "type": "object",
  3932. "properties": {
  3933. "appAgentId": {
  3934. "type": "string",
  3935. "format": "uuid"
  3936. },
  3937. "creationTime": {
  3938. "type": "string",
  3939. "format": "date-time"
  3940. },
  3941. "creatorUserId": {
  3942. "type": "string",
  3943. "format": "uuid"
  3944. },
  3945. "data": {
  3946. "$ref": "#/components/schemas/NodeData"
  3947. },
  3948. "height": {
  3949. "type": "integer"
  3950. },
  3951. "id": {
  3952. "type": "string",
  3953. "format": "uuid"
  3954. },
  3955. "isDeleted": {
  3956. "type": "boolean"
  3957. },
  3958. "position": {
  3959. "type": "object",
  3960. "properties": {
  3961. "x": {
  3962. "type": "integer"
  3963. },
  3964. "y": {
  3965. "type": "integer"
  3966. }
  3967. },
  3968. "required": ["x", "y"]
  3969. },
  3970. "selected": {
  3971. "type": "boolean"
  3972. },
  3973. "type": {
  3974. "type": "string",
  3975. "enum": ["custom", "start", "end", "condition", "task", "http-request"]
  3976. },
  3977. "updateTime": {
  3978. "type": "string",
  3979. "format": "date-time"
  3980. },
  3981. "width": {
  3982. "type": "integer"
  3983. },
  3984. "zIndex": {
  3985. "type": "integer"
  3986. }
  3987. },
  3988. "required": [
  3989. "appAgentId",
  3990. "creationTime",
  3991. "creatorUserId",
  3992. "data",
  3993. "id",
  3994. "position",
  3995. "type"
  3996. ]
  3997. },
  3998. "NodeData": {
  3999. "type": "object",
  4000. "properties": {
  4001. "outputs": {
  4002. "type": "array",
  4003. "items": {
  4004. "type": "object",
  4005. "properties": {
  4006. "name": {
  4007. "type": "string"
  4008. },
  4009. "describe": {
  4010. "type": "string"
  4011. },
  4012. "type": {
  4013. "type": "string",
  4014. "enum": ["string", "number", "boolean", "object", "array"]
  4015. }
  4016. },
  4017. "required": ["name", "describe", "type"]
  4018. }
  4019. },
  4020. "output_can_alter": {
  4021. "type": "boolean"
  4022. },
  4023. "variables": {
  4024. "type": "array",
  4025. "items": {
  4026. "type": "string"
  4027. }
  4028. },
  4029. "method": {
  4030. "type": "string",
  4031. "enum": ["get", "post", "put", "delete", "patch", "head", "options"]
  4032. },
  4033. "ssl_verify": {
  4034. "type": "boolean"
  4035. },
  4036. "isInIteration": {
  4037. "type": "boolean"
  4038. },
  4039. "default_value": {
  4040. "type": "array",
  4041. "items": {
  4042. "type": "string"
  4043. }
  4044. },
  4045. "body": {
  4046. "$ref": "#/components/schemas/RequestBody"
  4047. },
  4048. "params": {
  4049. "type": "array",
  4050. "items": {
  4051. "type": "string"
  4052. }
  4053. },
  4054. "title": {
  4055. "type": "string"
  4056. },
  4057. "type": {
  4058. "type": "string",
  4059. "enum": ["http-request", "condition", "task"]
  4060. },
  4061. "error_strategy": {
  4062. "type": "string",
  4063. "enum": ["none", "retry", "abort", "continue"]
  4064. },
  4065. "retry_config": {
  4066. "type": "object",
  4067. "properties": {
  4068. "max_retries": {
  4069. "type": "integer",
  4070. "minimum": 0,
  4071. "maximum": 10
  4072. },
  4073. "retry_enabled": {
  4074. "type": "boolean"
  4075. },
  4076. "retry_interval": {
  4077. "type": "integer",
  4078. "minimum": 0,
  4079. "maximum": 5000
  4080. }
  4081. },
  4082. "required": ["max_retries", "retry_enabled", "retry_interval"]
  4083. },
  4084. "url": {
  4085. "type": "string",
  4086. "format": "uri"
  4087. },
  4088. "authorization": {
  4089. "type": "object",
  4090. "properties": {
  4091. "type": {
  4092. "type": "string",
  4093. "enum": ["none", "bearer", "basic", "api-key"]
  4094. },
  4095. "config": {
  4096. "type": "object",
  4097. "properties": {
  4098. "api_key": {
  4099. "type": "string"
  4100. },
  4101. "header": {
  4102. "type": "string"
  4103. },
  4104. "type": {
  4105. "type": "string"
  4106. }
  4107. }
  4108. }
  4109. },
  4110. "required": ["type", "config"]
  4111. },
  4112. "timeout_config": {
  4113. "type": "object",
  4114. "properties": {
  4115. "max_write_timeout": {
  4116. "type": "integer",
  4117. "minimum": 0
  4118. },
  4119. "max_read_timeout": {
  4120. "type": "integer",
  4121. "minimum": 0
  4122. },
  4123. "max_connect_timeout": {
  4124. "type": "integer",
  4125. "minimum": 0
  4126. }
  4127. },
  4128. "required": ["max_write_timeout", "max_read_timeout", "max_connect_timeout"]
  4129. },
  4130. "heads": {
  4131. "type": "array",
  4132. "items": {
  4133. "$ref": "#/components/schemas/HttpHeader"
  4134. }
  4135. },
  4136. "selected": {
  4137. "type": "boolean"
  4138. },
  4139. "desc": {
  4140. "type": "string"
  4141. },
  4142. "isInLoop": {
  4143. "type": "boolean"
  4144. }
  4145. },
  4146. "required": ["outputs", "method", "title", "type", "url"]
  4147. },
  4148. "RequestBody": {
  4149. "type": "object",
  4150. "properties": {
  4151. "data": {
  4152. "type": "array",
  4153. "items": {
  4154. "$ref": "#/components/schemas/RequestDataItem"
  4155. }
  4156. },
  4157. "type": {
  4158. "type": "string",
  4159. "enum": ["json", "form-data", "x-www-form-urlencoded", "raw", "binary"]
  4160. }
  4161. },
  4162. "required": ["data", "type"]
  4163. },
  4164. "RequestDataItem": {
  4165. "type": "object",
  4166. "properties": {
  4167. "type": {
  4168. "type": "string",
  4169. "enum": ["text", "file", "json"]
  4170. },
  4171. "value": {
  4172. "type": "string"
  4173. },
  4174. "key": {
  4175. "type": "string"
  4176. }
  4177. },
  4178. "required": ["type", "value"]
  4179. },
  4180. "HttpHeader": {
  4181. "type": "object",
  4182. "properties": {
  4183. "name": {
  4184. "type": "string"
  4185. },
  4186. "value": {
  4187. "type": "string"
  4188. }
  4189. },
  4190. "required": ["name", "value"]
  4191. }
  4192. },
  4193. "securitySchemes": {
  4194. "ApiKeyAuth": {
  4195. "type": "apiKey",
  4196. "in": "header",
  4197. "name": "Authorization"
  4198. }
  4199. }
  4200. },
  4201. "security": [
  4202. {
  4203. "ApiKeyAuth": []
  4204. }
  4205. ]
  4206. }