agent.openapi.json 115 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212
  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. "prevNodeId": {
  2717. "type": "string"
  2718. },
  2719. "nodeHandleId": {
  2720. "type": "string"
  2721. }
  2722. },
  2723. "required": [
  2724. "appAgentId",
  2725. "position",
  2726. "width",
  2727. "height",
  2728. "selected",
  2729. "nodeType",
  2730. "zIndex"
  2731. ]
  2732. },
  2733. "examples": {
  2734. "1": {
  2735. "value": {
  2736. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2737. "parentId": "",
  2738. "position": {
  2739. "x": 20,
  2740. "y": 30
  2741. },
  2742. "width": 20,
  2743. "height": 40,
  2744. "selected": true,
  2745. "nodeType": "http-request",
  2746. "zIndex": 1
  2747. },
  2748. "summary": "HTTP请求"
  2749. },
  2750. "2": {
  2751. "value": {
  2752. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2753. "parentId": "",
  2754. "position": {
  2755. "x": 20,
  2756. "y": 30
  2757. },
  2758. "width": 20,
  2759. "height": 40,
  2760. "selected": true,
  2761. "nodeType": "code",
  2762. "zIndex": 1
  2763. },
  2764. "summary": "代码执行"
  2765. },
  2766. "3": {
  2767. "value": {
  2768. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2769. "parentId": "",
  2770. "position": {
  2771. "x": 20,
  2772. "y": 30
  2773. },
  2774. "width": 20,
  2775. "height": 40,
  2776. "selected": true,
  2777. "nodeType": "if-else",
  2778. "zIndex": 1
  2779. },
  2780. "summary": "条件分支"
  2781. },
  2782. "4": {
  2783. "value": {
  2784. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2785. "parentId": "",
  2786. "position": {
  2787. "x": 20,
  2788. "y": 30
  2789. },
  2790. "width": 20,
  2791. "height": 40,
  2792. "selected": true,
  2793. "nodeType": "iteration",
  2794. "zIndex": 1
  2795. },
  2796. "summary": "迭代"
  2797. },
  2798. "5": {
  2799. "value": {
  2800. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2801. "parentId": "",
  2802. "position": {
  2803. "x": 20,
  2804. "y": 30
  2805. },
  2806. "width": 20,
  2807. "height": 40,
  2808. "selected": true,
  2809. "nodeType": "list-operator",
  2810. "zIndex": 1
  2811. },
  2812. "summary": "列表操作"
  2813. },
  2814. "6": {
  2815. "value": {
  2816. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2817. "parentId": "",
  2818. "position": {
  2819. "x": 20,
  2820. "y": 30
  2821. },
  2822. "width": 20,
  2823. "height": 40,
  2824. "selected": true,
  2825. "nodeType": "loop",
  2826. "zIndex": 1
  2827. },
  2828. "summary": "循环"
  2829. },
  2830. "7": {
  2831. "value": {
  2832. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2833. "parentId": "74bc1d79-b51e-4279-b7e9-c0029a1ac154",
  2834. "position": {
  2835. "x": 20,
  2836. "y": 30
  2837. },
  2838. "width": 20,
  2839. "height": 40,
  2840. "selected": true,
  2841. "nodeType": "code",
  2842. "zIndex": 1
  2843. },
  2844. "summary": "代码(迭代内)"
  2845. },
  2846. "8": {
  2847. "value": {
  2848. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2849. "parentId": "74bc1d79-b51e-4279-b7e9-c0029a1ac154",
  2850. "position": {
  2851. "x": 20,
  2852. "y": 30
  2853. },
  2854. "width": 20,
  2855. "height": 40,
  2856. "selected": true,
  2857. "nodeType": "end",
  2858. "zIndex": 1
  2859. },
  2860. "summary": "结束输出"
  2861. },
  2862. "9": {
  2863. "value": {
  2864. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2865. "parentId": "",
  2866. "position": {
  2867. "x": 20,
  2868. "y": 30
  2869. },
  2870. "width": 20,
  2871. "height": 40,
  2872. "selected": true,
  2873. "nodeType": "start",
  2874. "zIndex": 1
  2875. },
  2876. "summary": "用户输入"
  2877. }
  2878. }
  2879. }
  2880. },
  2881. "required": true
  2882. },
  2883. "responses": {
  2884. "200": {
  2885. "description": "",
  2886. "content": {
  2887. "application/json": {
  2888. "schema": {
  2889. "type": "object",
  2890. "properties": {
  2891. "isSuccess": {
  2892. "type": "boolean"
  2893. },
  2894. "code": {
  2895. "type": "integer"
  2896. },
  2897. "isAuthorized": {
  2898. "type": "boolean"
  2899. }
  2900. },
  2901. "required": ["isSuccess", "code", "isAuthorized"]
  2902. },
  2903. "example": {
  2904. "isSuccess": true,
  2905. "code": 1,
  2906. "isAuthorized": true
  2907. }
  2908. }
  2909. },
  2910. "headers": {}
  2911. }
  2912. },
  2913. "security": []
  2914. }
  2915. },
  2916. "/api/agent/doUpdateAgentNode": {
  2917. "post": {
  2918. "summary": "更新智能体节点",
  2919. "deprecated": false,
  2920. "description": "",
  2921. "tags": ["Agent"],
  2922. "parameters": [
  2923. {
  2924. "name": "Authorization",
  2925. "in": "header",
  2926. "description": "",
  2927. "example": "bpm_client_1490845225663336448",
  2928. "schema": {
  2929. "type": "string",
  2930. "default": "bpm_client_1490845225663336448"
  2931. }
  2932. }
  2933. ],
  2934. "requestBody": {
  2935. "content": {
  2936. "application/json": {
  2937. "schema": {
  2938. "type": "object",
  2939. "properties": {
  2940. "id": {
  2941. "type": "string"
  2942. },
  2943. "appAgentId": {
  2944. "type": "string"
  2945. },
  2946. "parentId": {
  2947. "type": "string"
  2948. },
  2949. "position": {
  2950. "type": "object",
  2951. "properties": {
  2952. "x": {
  2953. "type": "integer"
  2954. },
  2955. "y": {
  2956. "type": "integer"
  2957. }
  2958. },
  2959. "required": ["x", "y"]
  2960. },
  2961. "width": {
  2962. "type": "integer"
  2963. },
  2964. "height": {
  2965. "type": "integer"
  2966. },
  2967. "selected": {
  2968. "type": "boolean"
  2969. },
  2970. "nodeType": {
  2971. "type": "string"
  2972. },
  2973. "zIndex": {
  2974. "type": "integer"
  2975. },
  2976. "data": {
  2977. "type": "object",
  2978. "properties": {}
  2979. }
  2980. },
  2981. "required": [
  2982. "id",
  2983. "appAgentId",
  2984. "parentId",
  2985. "position",
  2986. "width",
  2987. "height",
  2988. "selected",
  2989. "nodeType",
  2990. "zIndex",
  2991. "data"
  2992. ]
  2993. },
  2994. "examples": {
  2995. "1": {
  2996. "value": {
  2997. "id": "492048da-6f33-4a36-adc5-cff4b973b053",
  2998. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2999. "parentId": "",
  3000. "name": "HTTP 请求 1",
  3001. "remark": "",
  3002. "position": {
  3003. "x": 20,
  3004. "y": 30
  3005. },
  3006. "width": 20,
  3007. "height": 40,
  3008. "selected": true,
  3009. "nodeType": "http-request",
  3010. "zIndex": 1,
  3011. "data": {
  3012. "outputs": [
  3013. {
  3014. "name": "body",
  3015. "describe": "响应内容",
  3016. "type": "string"
  3017. },
  3018. {
  3019. "name": "status_code",
  3020. "describe": "响应状态码",
  3021. "type": "number"
  3022. },
  3023. {
  3024. "name": "headers",
  3025. "describe": "响应头列表 JSON",
  3026. "type": "object"
  3027. }
  3028. ],
  3029. "output_can_alter": false,
  3030. "variables": [],
  3031. "method": "post",
  3032. "ssl_verify": false,
  3033. "isInIteration": false,
  3034. "default_value": [],
  3035. "body": {
  3036. "type": "json",
  3037. "data": [
  3038. {
  3039. "key": "",
  3040. "type": "text",
  3041. "value": "{\"id\":\"b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8\"}"
  3042. }
  3043. ]
  3044. },
  3045. "params": [],
  3046. "title": "HTTP 请求",
  3047. "type": "http-request",
  3048. "error_strategy": "none",
  3049. "retry_config": {
  3050. "max_retries": 3,
  3051. "retry_enabled": false,
  3052. "retry_interval": 100
  3053. },
  3054. "url": "#{env.api_address}/api/agent/getAgentInfo",
  3055. "authorization": {
  3056. "type": "none",
  3057. "config": {
  3058. "api_key": "",
  3059. "header": "",
  3060. "type": ""
  3061. }
  3062. },
  3063. "timeout_config": {
  3064. "max_write_timeout": 0,
  3065. "max_read_timeout": 0,
  3066. "max_connect_timeout": 0
  3067. },
  3068. "heads": [
  3069. {
  3070. "name": "Authorization",
  3071. "value": "bpm_client_1473687766939209728"
  3072. }
  3073. ],
  3074. "selected": true,
  3075. "desc": "",
  3076. "isInLoop": false
  3077. }
  3078. },
  3079. "summary": "HTTP请求"
  3080. },
  3081. "2": {
  3082. "value": {
  3083. "id": "c91eb026-e86a-418f-a865-a98aa60bcf19",
  3084. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3085. "parentId": "",
  3086. "name": "代码执行 1",
  3087. "remark": "",
  3088. "position": {
  3089. "x": 20,
  3090. "y": 30
  3091. },
  3092. "width": 20,
  3093. "height": 40,
  3094. "selected": true,
  3095. "zIndex": 1,
  3096. "data": {
  3097. "outputs": [
  3098. {
  3099. "name": "result",
  3100. "type": "array[string]"
  3101. }
  3102. ],
  3103. "output_can_alter": true,
  3104. "variables": [
  3105. {
  3106. "name": "str",
  3107. "type": "string",
  3108. "value": "#{492048da-6f33-4a36-adc5-cff4b973b053.body}"
  3109. }
  3110. ],
  3111. "code": "\nfunction main(str) {\n return {\n result: ['11','22','33']\n }\n}\n",
  3112. "isInIteration": false,
  3113. "default_value": [],
  3114. "title": "代码执行",
  3115. "type": "code",
  3116. "nodeType": "code",
  3117. "error_strategy": "none",
  3118. "retry_config": {
  3119. "max_retries": 3,
  3120. "retry_enabled": false,
  3121. "retry_interval": 100
  3122. },
  3123. "timeout_config": {
  3124. "max_write_timeout": 0,
  3125. "max_read_timeout": 0,
  3126. "max_connect_timeout": 0
  3127. },
  3128. "code_language": "javascript",
  3129. "width": 20,
  3130. "id": "c91eb026-e86a-418f-a865-a98aa60bcf19",
  3131. "position": {
  3132. "x": 816,
  3133. "y": -496
  3134. },
  3135. "selected": false,
  3136. "desc": "",
  3137. "isInLoop": false,
  3138. "height": 40
  3139. }
  3140. },
  3141. "summary": "代码执行"
  3142. },
  3143. "3": {
  3144. "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}",
  3145. "summary": "条件分支"
  3146. },
  3147. "4": {
  3148. "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}",
  3149. "summary": "列表操作"
  3150. },
  3151. "5": {
  3152. "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}",
  3153. "summary": "循环"
  3154. },
  3155. "6": {
  3156. "value": {
  3157. "id": "74bc1d79-b51e-4279-b7e9-c0029a1ac154",
  3158. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3159. "name": "迭代 1",
  3160. "remark": "",
  3161. "position": {
  3162. "x": 20,
  3163. "y": 30
  3164. },
  3165. "width": 20,
  3166. "height": 40,
  3167. "selected": true,
  3168. "zIndex": 1,
  3169. "data": {
  3170. "outputs": [
  3171. {
  3172. "name": "output",
  3173. "type": "array[string]"
  3174. }
  3175. ],
  3176. "output_iteration_variable": {
  3177. "name": "",
  3178. "type": "string",
  3179. "value": "#{25f07893-8a36-4355-9c2d-2007a448dcae.result}"
  3180. },
  3181. "output_can_alter": true,
  3182. "variables": [
  3183. {
  3184. "name": "iteration_input",
  3185. "type": "array[string]",
  3186. "value": "#{c91eb026-e86a-418f-a865-a98aa60bcf19.result}"
  3187. }
  3188. ],
  3189. "error_handle_mode": "terminated",
  3190. "flatten_output": false,
  3191. "isInIteration": true,
  3192. "default_value": [],
  3193. "start_node_id": "e6b5f725-3504-4cc0-b26f-fe39337d0aee",
  3194. "title": "迭代",
  3195. "type": "iteration",
  3196. "error_strategy": "none",
  3197. "retry_config": {
  3198. "max_retries": 3,
  3199. "retry_enabled": false,
  3200. "retry_interval": 100
  3201. },
  3202. "iteration_id": "74bc1d79-b51e-4279-b7e9-c0029a1ac154",
  3203. "is_parallel": false,
  3204. "selected": false,
  3205. "desc": "",
  3206. "isInLoop": false,
  3207. "parallel_nums": 10
  3208. }
  3209. },
  3210. "summary": "迭代"
  3211. },
  3212. "7": {
  3213. "value": {
  3214. "id": "25f07893-8a36-4355-9c2d-2007a448dcae",
  3215. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3216. "parentId": "",
  3217. "name": "代码执行 2",
  3218. "remark": "",
  3219. "position": {
  3220. "x": 20,
  3221. "y": 30
  3222. },
  3223. "width": 20,
  3224. "height": 40,
  3225. "selected": true,
  3226. "zIndex": 1,
  3227. "data": {
  3228. "outputs": [
  3229. {
  3230. "name": "result",
  3231. "type": "string"
  3232. }
  3233. ],
  3234. "output_can_alter": true,
  3235. "variables": [
  3236. {
  3237. "name": "item",
  3238. "type": "string",
  3239. "value": "#{74bc1d79-b51e-4279-b7e9-c0029a1ac154.item}"
  3240. }
  3241. ],
  3242. "isInIteration": false,
  3243. "default_value": [],
  3244. "title": "代码执行",
  3245. "type": "code",
  3246. "error_strategy": "none",
  3247. "retry_config": {
  3248. "max_retries": 3,
  3249. "retry_enabled": false,
  3250. "retry_interval": 100
  3251. },
  3252. "timeout_config": {
  3253. "max_write_timeout": 0,
  3254. "max_read_timeout": 0,
  3255. "max_connect_timeout": 0
  3256. },
  3257. "code": "\nfunction main(item) {\n return {\n result: item\n }\n}\n",
  3258. "code_language": "javascript",
  3259. "selected": false,
  3260. "desc": "",
  3261. "isInLoop": false
  3262. }
  3263. },
  3264. "summary": "代码(迭代内)"
  3265. },
  3266. "8": {
  3267. "value": {
  3268. "id": "3ba96b4e-25c2-486a-be27-94ab9957aba1",
  3269. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3270. "name": "迭代 1",
  3271. "remark": "",
  3272. "position": {
  3273. "x": 20,
  3274. "y": 30
  3275. },
  3276. "width": 20,
  3277. "height": 40,
  3278. "selected": true,
  3279. "zIndex": 1,
  3280. "data": {
  3281. "outputs": [
  3282. {
  3283. "name": "aa",
  3284. "type": "array[string]",
  3285. "value": "#{c91eb026-e86a-418f-a865-a98aa60bcf19.result}"
  3286. },
  3287. {
  3288. "name": "bb",
  3289. "type": "string",
  3290. "value": "#{492048da-6f33-4a36-adc5-cff4b973b053.body}"
  3291. },
  3292. {
  3293. "name": "cc",
  3294. "type": "array[string]",
  3295. "value": "#{74bc1d79-b51e-4279-b7e9-c0029a1ac154.output}"
  3296. }
  3297. ],
  3298. "output_can_alter": true,
  3299. "variables": [],
  3300. "isInIteration": false,
  3301. "default_value": [],
  3302. "type": "end",
  3303. "error_strategy": "none",
  3304. "retry_config": {
  3305. "max_retries": 3,
  3306. "retry_enabled": false,
  3307. "retry_interval": 100
  3308. },
  3309. "selected": false,
  3310. "isInLoop": false
  3311. }
  3312. },
  3313. "summary": "结束输出"
  3314. }
  3315. }
  3316. }
  3317. },
  3318. "required": true
  3319. },
  3320. "responses": {
  3321. "200": {
  3322. "description": "",
  3323. "content": {
  3324. "application/json": {
  3325. "schema": {
  3326. "type": "object",
  3327. "properties": {
  3328. "isSuccess": {
  3329. "type": "boolean"
  3330. },
  3331. "code": {
  3332. "type": "integer"
  3333. },
  3334. "isAuthorized": {
  3335. "type": "boolean"
  3336. }
  3337. },
  3338. "required": ["isSuccess", "code", "isAuthorized"]
  3339. },
  3340. "example": {
  3341. "isSuccess": true,
  3342. "code": 1,
  3343. "isAuthorized": true
  3344. }
  3345. }
  3346. },
  3347. "headers": {}
  3348. }
  3349. },
  3350. "security": []
  3351. }
  3352. },
  3353. "/api/agent/doDeleteAgentNode": {
  3354. "post": {
  3355. "summary": "删除智能体节点",
  3356. "deprecated": false,
  3357. "description": "",
  3358. "tags": ["Agent"],
  3359. "parameters": [
  3360. {
  3361. "name": "Authorization",
  3362. "in": "header",
  3363. "description": "",
  3364. "example": "bpm_client_1490845225663336448",
  3365. "schema": {
  3366. "type": "string",
  3367. "default": "bpm_client_1490845225663336448"
  3368. }
  3369. }
  3370. ],
  3371. "requestBody": {
  3372. "content": {
  3373. "application/json": {
  3374. "schema": {
  3375. "type": "object",
  3376. "properties": {
  3377. "id": {
  3378. "type": "string"
  3379. }
  3380. },
  3381. "required": ["id"]
  3382. },
  3383. "example": {
  3384. "id": "492048da-6f33-4a36-adc5-cff4b973b053"
  3385. }
  3386. }
  3387. },
  3388. "required": true
  3389. },
  3390. "responses": {
  3391. "200": {
  3392. "description": "",
  3393. "content": {
  3394. "application/json": {
  3395. "schema": {
  3396. "type": "object",
  3397. "properties": {
  3398. "isSuccess": {
  3399. "type": "boolean"
  3400. },
  3401. "code": {
  3402. "type": "integer"
  3403. },
  3404. "isAuthorized": {
  3405. "type": "boolean"
  3406. }
  3407. },
  3408. "required": ["isSuccess", "code", "isAuthorized"]
  3409. },
  3410. "example": {
  3411. "isSuccess": true,
  3412. "code": 1,
  3413. "isAuthorized": true
  3414. }
  3415. }
  3416. },
  3417. "headers": {}
  3418. }
  3419. },
  3420. "security": []
  3421. }
  3422. },
  3423. "/api/agent/doNewEdge": {
  3424. "post": {
  3425. "summary": "新增智能体边缘信息",
  3426. "deprecated": false,
  3427. "description": "",
  3428. "tags": ["Agent"],
  3429. "parameters": [
  3430. {
  3431. "name": "Authorization",
  3432. "in": "header",
  3433. "description": "",
  3434. "example": "bpm_client_1490845225663336448",
  3435. "schema": {
  3436. "type": "string",
  3437. "default": "bpm_client_1490845225663336448"
  3438. }
  3439. }
  3440. ],
  3441. "requestBody": {
  3442. "content": {
  3443. "application/json": {
  3444. "schema": {
  3445. "type": "object",
  3446. "properties": {
  3447. "appAgentId": {
  3448. "type": "string"
  3449. },
  3450. "source": {
  3451. "type": "string"
  3452. },
  3453. "sourceHandle": {
  3454. "type": "string"
  3455. },
  3456. "target": {
  3457. "type": "string"
  3458. },
  3459. "zIndex": {
  3460. "type": "integer"
  3461. }
  3462. },
  3463. "required": ["appAgentId", "source", "target", "zIndex"]
  3464. },
  3465. "examples": {
  3466. "1": {
  3467. "value": {
  3468. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3469. "source": "492048da-6f33-4a36-adc5-cff4b973b053",
  3470. "target": "c91eb026-e86a-418f-a865-a98aa60bcf19",
  3471. "zIndex": 0
  3472. },
  3473. "summary": "普通节点"
  3474. },
  3475. "2": {
  3476. "value": {
  3477. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3478. "source": "de35b389-3782-474c-9dd9-cb1356dea54b",
  3479. "sourceHandle": "c2cb978e-fce8-11f0-a59d-266b7b87fca6-1",
  3480. "target": "6764ede2-2c3d-46bb-ae9a-fb0a892aff84",
  3481. "zIndex": 0
  3482. },
  3483. "summary": "条件分支节点边缘"
  3484. }
  3485. }
  3486. }
  3487. },
  3488. "required": true
  3489. },
  3490. "responses": {
  3491. "200": {
  3492. "description": "",
  3493. "content": {
  3494. "application/json": {
  3495. "schema": {
  3496. "type": "object",
  3497. "properties": {
  3498. "isSuccess": {
  3499. "type": "boolean"
  3500. },
  3501. "code": {
  3502. "type": "integer"
  3503. },
  3504. "isAuthorized": {
  3505. "type": "boolean"
  3506. }
  3507. },
  3508. "required": ["isSuccess", "code", "isAuthorized"]
  3509. },
  3510. "example": {
  3511. "isSuccess": true,
  3512. "code": 1,
  3513. "isAuthorized": true
  3514. }
  3515. }
  3516. },
  3517. "headers": {}
  3518. }
  3519. },
  3520. "security": []
  3521. }
  3522. },
  3523. "/api/agent/doDeleteEdge": {
  3524. "post": {
  3525. "summary": "删除智能体边缘信息",
  3526. "deprecated": false,
  3527. "description": "",
  3528. "tags": ["Agent"],
  3529. "parameters": [
  3530. {
  3531. "name": "Authorization",
  3532. "in": "header",
  3533. "description": "",
  3534. "example": "bpm_client_1490845225663336448",
  3535. "schema": {
  3536. "type": "string",
  3537. "default": "bpm_client_1490845225663336448"
  3538. }
  3539. }
  3540. ],
  3541. "requestBody": {
  3542. "content": {
  3543. "application/json": {
  3544. "schema": {
  3545. "type": "object",
  3546. "properties": {
  3547. "id": {
  3548. "type": "string"
  3549. }
  3550. },
  3551. "required": ["id"]
  3552. },
  3553. "example": {
  3554. "id": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8"
  3555. }
  3556. }
  3557. },
  3558. "required": true
  3559. },
  3560. "responses": {
  3561. "200": {
  3562. "description": "",
  3563. "content": {
  3564. "application/json": {
  3565. "schema": {
  3566. "type": "object",
  3567. "properties": {
  3568. "isSuccess": {
  3569. "type": "boolean"
  3570. },
  3571. "code": {
  3572. "type": "integer"
  3573. },
  3574. "isAuthorized": {
  3575. "type": "boolean"
  3576. }
  3577. },
  3578. "required": ["isSuccess", "code", "isAuthorized"]
  3579. },
  3580. "example": {
  3581. "isSuccess": true,
  3582. "code": 1,
  3583. "isAuthorized": true
  3584. }
  3585. }
  3586. },
  3587. "headers": {}
  3588. }
  3589. },
  3590. "security": []
  3591. }
  3592. },
  3593. "/api/agent/doSelectedEdge": {
  3594. "post": {
  3595. "summary": "选中智能体边缘",
  3596. "deprecated": false,
  3597. "description": "",
  3598. "tags": ["Agent"],
  3599. "parameters": [
  3600. {
  3601. "name": "Authorization",
  3602. "in": "header",
  3603. "description": "",
  3604. "example": "bpm_client_1490845225663336448",
  3605. "schema": {
  3606. "type": "string",
  3607. "default": "bpm_client_1490845225663336448"
  3608. }
  3609. }
  3610. ],
  3611. "requestBody": {
  3612. "content": {
  3613. "application/json": {
  3614. "schema": {
  3615. "type": "object",
  3616. "properties": {
  3617. "id": {
  3618. "type": "string"
  3619. }
  3620. },
  3621. "required": ["id"]
  3622. },
  3623. "example": {
  3624. "id": "e518d540-2242-4def-8d42-381d9fab59ee"
  3625. }
  3626. }
  3627. },
  3628. "required": true
  3629. },
  3630. "responses": {
  3631. "200": {
  3632. "description": "",
  3633. "content": {
  3634. "application/json": {
  3635. "schema": {
  3636. "type": "object",
  3637. "properties": {
  3638. "isSuccess": {
  3639. "type": "boolean"
  3640. },
  3641. "code": {
  3642. "type": "integer"
  3643. },
  3644. "isAuthorized": {
  3645. "type": "boolean"
  3646. }
  3647. },
  3648. "required": ["isSuccess", "code", "isAuthorized"]
  3649. },
  3650. "example": {
  3651. "isSuccess": true,
  3652. "code": 1,
  3653. "isAuthorized": true
  3654. }
  3655. }
  3656. },
  3657. "headers": {}
  3658. }
  3659. },
  3660. "security": []
  3661. }
  3662. },
  3663. "/api/agent/doExecute": {
  3664. "post": {
  3665. "summary": "运行智能体",
  3666. "deprecated": false,
  3667. "description": "",
  3668. "tags": ["Agent"],
  3669. "parameters": [
  3670. {
  3671. "name": "Authorization",
  3672. "in": "header",
  3673. "description": "",
  3674. "example": "bpm_client_1490845225663336448",
  3675. "schema": {
  3676. "type": "string",
  3677. "default": "bpm_client_1490845225663336448"
  3678. }
  3679. }
  3680. ],
  3681. "requestBody": {
  3682. "content": {
  3683. "application/json": {
  3684. "schema": {
  3685. "type": "object",
  3686. "properties": {
  3687. "appAgentId": {
  3688. "type": "string"
  3689. },
  3690. "start_node_id": {
  3691. "type": "string"
  3692. },
  3693. "is_debugger": {
  3694. "type": "boolean"
  3695. },
  3696. "params": {
  3697. "type": "object",
  3698. "properties": {}
  3699. }
  3700. },
  3701. "required": ["appAgentId", "start_node_id", "is_debugger", "params"]
  3702. },
  3703. "example": {
  3704. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3705. "start_node_id": "492048da-6f33-4a36-adc5-cff4b973b053",
  3706. "is_debugger": true,
  3707. "params": {}
  3708. }
  3709. }
  3710. },
  3711. "required": true
  3712. },
  3713. "responses": {
  3714. "200": {
  3715. "description": "",
  3716. "content": {
  3717. "application/json": {
  3718. "schema": {
  3719. "type": "object",
  3720. "properties": {
  3721. "isSuccess": {
  3722. "type": "boolean"
  3723. },
  3724. "code": {
  3725. "type": "integer"
  3726. },
  3727. "result": {
  3728. "type": "string"
  3729. },
  3730. "isAuthorized": {
  3731. "type": "boolean"
  3732. }
  3733. },
  3734. "required": ["isSuccess", "code", "result", "isAuthorized"]
  3735. },
  3736. "example": {
  3737. "isSuccess": true,
  3738. "code": 1,
  3739. "result": "05d08317-6fb5-4af4-b0de-8365b4d8183e",
  3740. "isAuthorized": true
  3741. }
  3742. }
  3743. },
  3744. "headers": {}
  3745. }
  3746. },
  3747. "security": []
  3748. }
  3749. },
  3750. "/api/agent/getPrevNodeOutVariableList": {
  3751. "post": {
  3752. "summary": "根据节点id,获取节点之前的所有变量列表",
  3753. "deprecated": false,
  3754. "description": "",
  3755. "tags": ["Agent"],
  3756. "parameters": [
  3757. {
  3758. "name": "Authorization",
  3759. "in": "header",
  3760. "description": "",
  3761. "example": "bpm_client_1490845225663336448",
  3762. "schema": {
  3763. "type": "string",
  3764. "default": "bpm_client_1490845225663336448"
  3765. }
  3766. }
  3767. ],
  3768. "requestBody": {
  3769. "content": {
  3770. "application/json": {
  3771. "schema": {
  3772. "type": "object",
  3773. "properties": {
  3774. "node_id": {
  3775. "type": "string"
  3776. },
  3777. "varTypeList": {
  3778. "type": "array",
  3779. "items": {
  3780. "type": "string"
  3781. }
  3782. }
  3783. },
  3784. "required": ["node_id", "varTypeList"]
  3785. },
  3786. "example": {
  3787. "node_id": "3ba96b4e-25c2-486a-be27-94ab9957aba1",
  3788. "varTypeList": []
  3789. }
  3790. }
  3791. },
  3792. "required": true
  3793. },
  3794. "responses": {
  3795. "200": {
  3796. "description": "",
  3797. "content": {
  3798. "application/json": {
  3799. "schema": {
  3800. "type": "object",
  3801. "properties": {
  3802. "isSuccess": {
  3803. "type": "boolean"
  3804. },
  3805. "code": {
  3806. "type": "integer"
  3807. },
  3808. "result": {
  3809. "type": "array",
  3810. "items": {
  3811. "type": "object",
  3812. "properties": {
  3813. "id": {
  3814. "type": "string"
  3815. },
  3816. "name": {
  3817. "type": "string"
  3818. },
  3819. "variableList": {
  3820. "type": "array",
  3821. "items": {
  3822. "type": "object",
  3823. "properties": {
  3824. "expression": {
  3825. "type": "string"
  3826. },
  3827. "name": {
  3828. "type": "string"
  3829. },
  3830. "type": {
  3831. "type": "string"
  3832. }
  3833. },
  3834. "required": ["expression", "name", "type"]
  3835. }
  3836. }
  3837. },
  3838. "required": ["id", "name", "variableList"]
  3839. }
  3840. },
  3841. "isAuthorized": {
  3842. "type": "boolean"
  3843. }
  3844. },
  3845. "required": ["isSuccess", "code", "result", "isAuthorized"]
  3846. },
  3847. "example": {
  3848. "isSuccess": true,
  3849. "code": 1,
  3850. "result": [
  3851. {
  3852. "id": "74bc1d79-b51e-4279-b7e9-c0029a1ac154",
  3853. "name": "迭代 1",
  3854. "variableList": [
  3855. {
  3856. "expression": "#{74bc1d79-b51e-4279-b7e9-c0029a1ac154.output}",
  3857. "name": "output",
  3858. "type": "array[string]"
  3859. }
  3860. ]
  3861. },
  3862. {
  3863. "id": "cae0c279-c1aa-40b6-9702-1df2af104a9b",
  3864. "name": "循环 1",
  3865. "variableList": [
  3866. {
  3867. "expression": "#{cae0c279-c1aa-40b6-9702-1df2af104a9b.aa}",
  3868. "name": "aa",
  3869. "type": "array[number]"
  3870. },
  3871. {
  3872. "expression": "#{cae0c279-c1aa-40b6-9702-1df2af104a9b.ifout}",
  3873. "name": "ifout",
  3874. "type": "boolean"
  3875. }
  3876. ]
  3877. },
  3878. {
  3879. "id": "c91eb026-e86a-418f-a865-a98aa60bcf19",
  3880. "name": "代码执行 1",
  3881. "variableList": [
  3882. {
  3883. "expression": "#{c91eb026-e86a-418f-a865-a98aa60bcf19.result}",
  3884. "name": "result",
  3885. "type": "array[string]"
  3886. }
  3887. ]
  3888. },
  3889. {
  3890. "id": "492048da-6f33-4a36-adc5-cff4b973b053",
  3891. "name": "HTTP 请求 1",
  3892. "variableList": [
  3893. {
  3894. "expression": "#{492048da-6f33-4a36-adc5-cff4b973b053.body}",
  3895. "name": "body",
  3896. "type": "string"
  3897. },
  3898. {
  3899. "expression": "#{492048da-6f33-4a36-adc5-cff4b973b053.status_code}",
  3900. "name": "status_code",
  3901. "type": "number"
  3902. },
  3903. {
  3904. "expression": "#{492048da-6f33-4a36-adc5-cff4b973b053.headers}",
  3905. "name": "headers",
  3906. "type": "object"
  3907. }
  3908. ]
  3909. },
  3910. {
  3911. "id": "env",
  3912. "name": "环境变量",
  3913. "variableList": [
  3914. {
  3915. "expression": "#{env.api_address}",
  3916. "name": "api_address",
  3917. "type": "string"
  3918. }
  3919. ]
  3920. }
  3921. ],
  3922. "isAuthorized": true
  3923. }
  3924. }
  3925. },
  3926. "headers": {}
  3927. }
  3928. },
  3929. "security": []
  3930. }
  3931. }
  3932. },
  3933. "components": {
  3934. "schemas": {
  3935. "AgentNode": {
  3936. "type": "object",
  3937. "properties": {
  3938. "appAgentId": {
  3939. "type": "string",
  3940. "format": "uuid"
  3941. },
  3942. "creationTime": {
  3943. "type": "string",
  3944. "format": "date-time"
  3945. },
  3946. "creatorUserId": {
  3947. "type": "string",
  3948. "format": "uuid"
  3949. },
  3950. "data": {
  3951. "$ref": "#/components/schemas/NodeData"
  3952. },
  3953. "height": {
  3954. "type": "integer"
  3955. },
  3956. "id": {
  3957. "type": "string",
  3958. "format": "uuid"
  3959. },
  3960. "isDeleted": {
  3961. "type": "boolean"
  3962. },
  3963. "position": {
  3964. "type": "object",
  3965. "properties": {
  3966. "x": {
  3967. "type": "integer"
  3968. },
  3969. "y": {
  3970. "type": "integer"
  3971. }
  3972. },
  3973. "required": ["x", "y"]
  3974. },
  3975. "selected": {
  3976. "type": "boolean"
  3977. },
  3978. "type": {
  3979. "type": "string",
  3980. "enum": ["custom", "start", "end", "condition", "task", "http-request"]
  3981. },
  3982. "updateTime": {
  3983. "type": "string",
  3984. "format": "date-time"
  3985. },
  3986. "width": {
  3987. "type": "integer"
  3988. },
  3989. "zIndex": {
  3990. "type": "integer"
  3991. }
  3992. },
  3993. "required": [
  3994. "appAgentId",
  3995. "creationTime",
  3996. "creatorUserId",
  3997. "data",
  3998. "id",
  3999. "position",
  4000. "type"
  4001. ]
  4002. },
  4003. "NodeData": {
  4004. "type": "object",
  4005. "properties": {
  4006. "outputs": {
  4007. "type": "array",
  4008. "items": {
  4009. "type": "object",
  4010. "properties": {
  4011. "name": {
  4012. "type": "string"
  4013. },
  4014. "describe": {
  4015. "type": "string"
  4016. },
  4017. "type": {
  4018. "type": "string",
  4019. "enum": ["string", "number", "boolean", "object", "array"]
  4020. }
  4021. },
  4022. "required": ["name", "describe", "type"]
  4023. }
  4024. },
  4025. "output_can_alter": {
  4026. "type": "boolean"
  4027. },
  4028. "variables": {
  4029. "type": "array",
  4030. "items": {
  4031. "type": "string"
  4032. }
  4033. },
  4034. "method": {
  4035. "type": "string",
  4036. "enum": ["get", "post", "put", "delete", "patch", "head", "options"]
  4037. },
  4038. "ssl_verify": {
  4039. "type": "boolean"
  4040. },
  4041. "isInIteration": {
  4042. "type": "boolean"
  4043. },
  4044. "default_value": {
  4045. "type": "array",
  4046. "items": {
  4047. "type": "string"
  4048. }
  4049. },
  4050. "body": {
  4051. "$ref": "#/components/schemas/RequestBody"
  4052. },
  4053. "params": {
  4054. "type": "array",
  4055. "items": {
  4056. "type": "string"
  4057. }
  4058. },
  4059. "title": {
  4060. "type": "string"
  4061. },
  4062. "type": {
  4063. "type": "string",
  4064. "enum": ["http-request", "condition", "task"]
  4065. },
  4066. "error_strategy": {
  4067. "type": "string",
  4068. "enum": ["none", "retry", "abort", "continue"]
  4069. },
  4070. "retry_config": {
  4071. "type": "object",
  4072. "properties": {
  4073. "max_retries": {
  4074. "type": "integer",
  4075. "minimum": 0,
  4076. "maximum": 10
  4077. },
  4078. "retry_enabled": {
  4079. "type": "boolean"
  4080. },
  4081. "retry_interval": {
  4082. "type": "integer",
  4083. "minimum": 0,
  4084. "maximum": 5000
  4085. }
  4086. },
  4087. "required": ["max_retries", "retry_enabled", "retry_interval"]
  4088. },
  4089. "url": {
  4090. "type": "string",
  4091. "format": "uri"
  4092. },
  4093. "authorization": {
  4094. "type": "object",
  4095. "properties": {
  4096. "type": {
  4097. "type": "string",
  4098. "enum": ["none", "bearer", "basic", "api-key"]
  4099. },
  4100. "config": {
  4101. "type": "object",
  4102. "properties": {
  4103. "api_key": {
  4104. "type": "string"
  4105. },
  4106. "header": {
  4107. "type": "string"
  4108. },
  4109. "type": {
  4110. "type": "string"
  4111. }
  4112. }
  4113. }
  4114. },
  4115. "required": ["type", "config"]
  4116. },
  4117. "timeout_config": {
  4118. "type": "object",
  4119. "properties": {
  4120. "max_write_timeout": {
  4121. "type": "integer",
  4122. "minimum": 0
  4123. },
  4124. "max_read_timeout": {
  4125. "type": "integer",
  4126. "minimum": 0
  4127. },
  4128. "max_connect_timeout": {
  4129. "type": "integer",
  4130. "minimum": 0
  4131. }
  4132. },
  4133. "required": ["max_write_timeout", "max_read_timeout", "max_connect_timeout"]
  4134. },
  4135. "heads": {
  4136. "type": "array",
  4137. "items": {
  4138. "$ref": "#/components/schemas/HttpHeader"
  4139. }
  4140. },
  4141. "selected": {
  4142. "type": "boolean"
  4143. },
  4144. "desc": {
  4145. "type": "string"
  4146. },
  4147. "isInLoop": {
  4148. "type": "boolean"
  4149. }
  4150. },
  4151. "required": ["outputs", "method", "title", "type", "url"]
  4152. },
  4153. "RequestBody": {
  4154. "type": "object",
  4155. "properties": {
  4156. "data": {
  4157. "type": "array",
  4158. "items": {
  4159. "$ref": "#/components/schemas/RequestDataItem"
  4160. }
  4161. },
  4162. "type": {
  4163. "type": "string",
  4164. "enum": ["json", "form-data", "x-www-form-urlencoded", "raw", "binary"]
  4165. }
  4166. },
  4167. "required": ["data", "type"]
  4168. },
  4169. "RequestDataItem": {
  4170. "type": "object",
  4171. "properties": {
  4172. "type": {
  4173. "type": "string",
  4174. "enum": ["text", "file", "json"]
  4175. },
  4176. "value": {
  4177. "type": "string"
  4178. },
  4179. "key": {
  4180. "type": "string"
  4181. }
  4182. },
  4183. "required": ["type", "value"]
  4184. },
  4185. "HttpHeader": {
  4186. "type": "object",
  4187. "properties": {
  4188. "name": {
  4189. "type": "string"
  4190. },
  4191. "value": {
  4192. "type": "string"
  4193. }
  4194. },
  4195. "required": ["name", "value"]
  4196. }
  4197. },
  4198. "securitySchemes": {
  4199. "ApiKeyAuth": {
  4200. "type": "apiKey",
  4201. "in": "header",
  4202. "name": "Authorization"
  4203. }
  4204. }
  4205. },
  4206. "security": [
  4207. {
  4208. "ApiKeyAuth": []
  4209. }
  4210. ]
  4211. }