agent.openapi.json 131 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818
  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_1492899187547705344",
  108. "schema": {
  109. "type": "string",
  110. "default": "bpm_client_1492899187547705344"
  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_1492899187547705344",
  406. "schema": {
  407. "type": "string",
  408. "default": "bpm_client_1492899187547705344"
  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_1492899187547705344",
  461. "schema": {
  462. "type": "string",
  463. "default": "bpm_client_1492899187547705344"
  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_1492899187547705344",
  565. "schema": {
  566. "type": "string",
  567. "default": "bpm_client_1492899187547705344"
  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_1492899187547705344",
  2671. "schema": {
  2672. "type": "string",
  2673. "default": "bpm_client_1492899187547705344"
  2674. }
  2675. }
  2676. ],
  2677. "requestBody": {
  2678. "content": {
  2679. "application/json": {
  2680. "schema": {
  2681. "type": "object",
  2682. "properties": {
  2683. "appAgentId": {
  2684. "type": "string"
  2685. },
  2686. "parentId": {
  2687. "type": "string"
  2688. },
  2689. "position": {
  2690. "type": "object",
  2691. "properties": {
  2692. "x": {
  2693. "type": "integer"
  2694. },
  2695. "y": {
  2696. "type": "integer"
  2697. }
  2698. },
  2699. "required": ["x", "y"]
  2700. },
  2701. "width": {
  2702. "type": "integer"
  2703. },
  2704. "height": {
  2705. "type": "integer"
  2706. },
  2707. "selected": {
  2708. "type": "boolean"
  2709. },
  2710. "nodeType": {
  2711. "type": "string"
  2712. },
  2713. "zIndex": {
  2714. "type": "integer"
  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. "prevNodeId": "",
  2748. "nodeHandleId": ""
  2749. },
  2750. "summary": "HTTP请求"
  2751. },
  2752. "2": {
  2753. "value": {
  2754. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2755. "parentId": "",
  2756. "position": {
  2757. "x": 20,
  2758. "y": 30
  2759. },
  2760. "width": 20,
  2761. "height": 40,
  2762. "selected": true,
  2763. "nodeType": "code",
  2764. "zIndex": 1
  2765. },
  2766. "summary": "代码执行"
  2767. },
  2768. "3": {
  2769. "value": {
  2770. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2771. "parentId": "",
  2772. "position": {
  2773. "x": 20,
  2774. "y": 30
  2775. },
  2776. "width": 20,
  2777. "height": 40,
  2778. "selected": true,
  2779. "nodeType": "if-else",
  2780. "zIndex": 1
  2781. },
  2782. "summary": "条件分支"
  2783. },
  2784. "4": {
  2785. "value": {
  2786. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2787. "parentId": "",
  2788. "position": {
  2789. "x": 20,
  2790. "y": 30
  2791. },
  2792. "width": 20,
  2793. "height": 40,
  2794. "selected": true,
  2795. "nodeType": "iteration",
  2796. "zIndex": 1
  2797. },
  2798. "summary": "迭代"
  2799. },
  2800. "5": {
  2801. "value": {
  2802. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2803. "parentId": "",
  2804. "position": {
  2805. "x": 20,
  2806. "y": 30
  2807. },
  2808. "width": 20,
  2809. "height": 40,
  2810. "selected": true,
  2811. "nodeType": "list-operator",
  2812. "zIndex": 1
  2813. },
  2814. "summary": "列表操作"
  2815. },
  2816. "6": {
  2817. "value": {
  2818. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2819. "parentId": "",
  2820. "position": {
  2821. "x": 20,
  2822. "y": 30
  2823. },
  2824. "width": 20,
  2825. "height": 40,
  2826. "selected": true,
  2827. "nodeType": "loop",
  2828. "zIndex": 1
  2829. },
  2830. "summary": "循环"
  2831. },
  2832. "7": {
  2833. "value": {
  2834. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2835. "parentId": "74bc1d79-b51e-4279-b7e9-c0029a1ac154",
  2836. "position": {
  2837. "x": 20,
  2838. "y": 30
  2839. },
  2840. "width": 20,
  2841. "height": 40,
  2842. "selected": true,
  2843. "nodeType": "code",
  2844. "zIndex": 1
  2845. },
  2846. "summary": "代码(迭代内)"
  2847. },
  2848. "8": {
  2849. "value": {
  2850. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2851. "parentId": "74bc1d79-b51e-4279-b7e9-c0029a1ac154",
  2852. "position": {
  2853. "x": 20,
  2854. "y": 30
  2855. },
  2856. "width": 20,
  2857. "height": 40,
  2858. "selected": true,
  2859. "nodeType": "end",
  2860. "zIndex": 1
  2861. },
  2862. "summary": "结束输出"
  2863. },
  2864. "9": {
  2865. "value": {
  2866. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2867. "parentId": "",
  2868. "position": {
  2869. "x": 20,
  2870. "y": 30
  2871. },
  2872. "width": 20,
  2873. "height": 40,
  2874. "selected": true,
  2875. "nodeType": "start",
  2876. "zIndex": 1
  2877. },
  2878. "summary": "用户输入"
  2879. },
  2880. "10": {
  2881. "value": {
  2882. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2883. "parentId": "",
  2884. "position": {
  2885. "x": 20,
  2886. "y": 30
  2887. },
  2888. "width": 20,
  2889. "height": 40,
  2890. "selected": true,
  2891. "nodeType": "trigger-schedule",
  2892. "zIndex": 1
  2893. },
  2894. "summary": "定时触发器"
  2895. },
  2896. "11": {
  2897. "value": {
  2898. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2899. "parentId": "",
  2900. "position": {
  2901. "x": 20,
  2902. "y": 30
  2903. },
  2904. "width": 20,
  2905. "height": 40,
  2906. "selected": true,
  2907. "nodeType": "trigger-webhook",
  2908. "zIndex": 1,
  2909. "prevNodeId": "",
  2910. "nodeHandleId": ""
  2911. },
  2912. "summary": "WebHook触发器"
  2913. }
  2914. }
  2915. }
  2916. },
  2917. "required": true
  2918. },
  2919. "responses": {
  2920. "200": {
  2921. "description": "",
  2922. "content": {
  2923. "application/json": {
  2924. "schema": {
  2925. "type": "object",
  2926. "properties": {
  2927. "isSuccess": {
  2928. "type": "boolean"
  2929. },
  2930. "code": {
  2931. "type": "integer"
  2932. },
  2933. "result": {
  2934. "type": "string"
  2935. },
  2936. "isAuthorized": {
  2937. "type": "boolean"
  2938. }
  2939. },
  2940. "required": ["isSuccess", "code", "result", "isAuthorized"]
  2941. },
  2942. "example": {
  2943. "isSuccess": true,
  2944. "code": 1,
  2945. "result": "d0ada9b3-0507-4f3a-8020-310b0c1a2756",
  2946. "isAuthorized": true
  2947. }
  2948. }
  2949. },
  2950. "headers": {}
  2951. }
  2952. },
  2953. "security": []
  2954. }
  2955. },
  2956. "/api/agent/doUpdateAgentNode": {
  2957. "post": {
  2958. "summary": "更新智能体节点",
  2959. "deprecated": false,
  2960. "description": "",
  2961. "tags": ["Agent"],
  2962. "parameters": [
  2963. {
  2964. "name": "Authorization",
  2965. "in": "header",
  2966. "description": "",
  2967. "example": "bpm_client_1492899187547705344",
  2968. "schema": {
  2969. "type": "string",
  2970. "default": "bpm_client_1492899187547705344"
  2971. }
  2972. }
  2973. ],
  2974. "requestBody": {
  2975. "content": {
  2976. "application/json": {
  2977. "schema": {
  2978. "type": "object",
  2979. "properties": {
  2980. "id": {
  2981. "type": "string"
  2982. },
  2983. "appAgentId": {
  2984. "type": "string"
  2985. },
  2986. "parentId": {
  2987. "type": "string"
  2988. },
  2989. "position": {
  2990. "type": "object",
  2991. "properties": {
  2992. "x": {
  2993. "type": "integer"
  2994. },
  2995. "y": {
  2996. "type": "integer"
  2997. }
  2998. },
  2999. "required": ["x", "y"]
  3000. },
  3001. "width": {
  3002. "type": "integer"
  3003. },
  3004. "height": {
  3005. "type": "integer"
  3006. },
  3007. "selected": {
  3008. "type": "boolean"
  3009. },
  3010. "nodeType": {
  3011. "type": "string"
  3012. },
  3013. "zIndex": {
  3014. "type": "integer"
  3015. },
  3016. "data": {
  3017. "type": "object",
  3018. "properties": {}
  3019. }
  3020. },
  3021. "required": [
  3022. "id",
  3023. "appAgentId",
  3024. "parentId",
  3025. "position",
  3026. "width",
  3027. "height",
  3028. "selected",
  3029. "nodeType",
  3030. "zIndex",
  3031. "data"
  3032. ]
  3033. },
  3034. "examples": {
  3035. "1": {
  3036. "value": {
  3037. "id": "492048da-6f33-4a36-adc5-cff4b973b053",
  3038. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3039. "parentId": "",
  3040. "name": "HTTP 请求 1",
  3041. "remark": "",
  3042. "position": {
  3043. "x": 20,
  3044. "y": 30
  3045. },
  3046. "width": 20,
  3047. "height": 40,
  3048. "selected": true,
  3049. "nodeType": "http-request",
  3050. "zIndex": 1,
  3051. "data": {
  3052. "outputs": [
  3053. {
  3054. "name": "body",
  3055. "describe": "响应内容",
  3056. "type": "string"
  3057. },
  3058. {
  3059. "name": "status_code",
  3060. "describe": "响应状态码",
  3061. "type": "number"
  3062. },
  3063. {
  3064. "name": "headers",
  3065. "describe": "响应头列表 JSON",
  3066. "type": "object"
  3067. }
  3068. ],
  3069. "output_can_alter": false,
  3070. "variables": [],
  3071. "method": "post",
  3072. "ssl_verify": false,
  3073. "isInIteration": false,
  3074. "default_value": [],
  3075. "body": {
  3076. "type": "json",
  3077. "data": [
  3078. {
  3079. "key": "",
  3080. "type": "text",
  3081. "value": "{\"id\":\"b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8\"}"
  3082. }
  3083. ]
  3084. },
  3085. "params": [],
  3086. "title": "HTTP 请求",
  3087. "type": "http-request",
  3088. "error_strategy": "none",
  3089. "retry_config": {
  3090. "max_retries": 3,
  3091. "retry_enabled": false,
  3092. "retry_interval": 100
  3093. },
  3094. "url": "#{env.api_address}/api/agent/getAgentInfo",
  3095. "authorization": {
  3096. "type": "none",
  3097. "config": {
  3098. "api_key": "",
  3099. "header": "",
  3100. "type": ""
  3101. }
  3102. },
  3103. "timeout_config": {
  3104. "max_write_timeout": 0,
  3105. "max_read_timeout": 0,
  3106. "max_connect_timeout": 0
  3107. },
  3108. "heads": [
  3109. {
  3110. "name": "Authorization",
  3111. "value": "bpm_client_1473687766939209728"
  3112. }
  3113. ],
  3114. "selected": true,
  3115. "desc": "",
  3116. "isInLoop": false
  3117. }
  3118. },
  3119. "summary": "HTTP请求"
  3120. },
  3121. "2": {
  3122. "value": {
  3123. "id": "c91eb026-e86a-418f-a865-a98aa60bcf19",
  3124. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3125. "parentId": "",
  3126. "name": "代码执行 1",
  3127. "remark": "",
  3128. "position": {
  3129. "x": 20,
  3130. "y": 30
  3131. },
  3132. "width": 20,
  3133. "height": 40,
  3134. "selected": true,
  3135. "zIndex": 1,
  3136. "data": {
  3137. "outputs": [
  3138. {
  3139. "name": "result",
  3140. "type": "array[string]"
  3141. }
  3142. ],
  3143. "output_can_alter": true,
  3144. "variables": [
  3145. {
  3146. "name": "str",
  3147. "type": "string",
  3148. "value": "#{492048da-6f33-4a36-adc5-cff4b973b053.body}"
  3149. }
  3150. ],
  3151. "code": "\nfunction main(str) {\n return {\n result: ['11','22','33']\n }\n}\n",
  3152. "isInIteration": false,
  3153. "default_value": [],
  3154. "title": "代码执行",
  3155. "type": "code",
  3156. "nodeType": "code",
  3157. "error_strategy": "none",
  3158. "retry_config": {
  3159. "max_retries": 3,
  3160. "retry_enabled": false,
  3161. "retry_interval": 100
  3162. },
  3163. "timeout_config": {
  3164. "max_write_timeout": 0,
  3165. "max_read_timeout": 0,
  3166. "max_connect_timeout": 0
  3167. },
  3168. "code_language": "javascript",
  3169. "width": 20,
  3170. "id": "c91eb026-e86a-418f-a865-a98aa60bcf19",
  3171. "position": {
  3172. "x": 816,
  3173. "y": -496
  3174. },
  3175. "selected": false,
  3176. "desc": "",
  3177. "isInLoop": false,
  3178. "height": 40
  3179. }
  3180. },
  3181. "summary": "代码执行"
  3182. },
  3183. "3": {
  3184. "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}",
  3185. "summary": "条件分支"
  3186. },
  3187. "4": {
  3188. "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}",
  3189. "summary": "列表操作"
  3190. },
  3191. "5": {
  3192. "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\"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}",
  3193. "summary": "循环"
  3194. },
  3195. "6": {
  3196. "value": {
  3197. "id": "74bc1d79-b51e-4279-b7e9-c0029a1ac154",
  3198. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3199. "name": "迭代 1",
  3200. "remark": "",
  3201. "position": {
  3202. "x": 20,
  3203. "y": 30
  3204. },
  3205. "width": 20,
  3206. "height": 40,
  3207. "selected": true,
  3208. "zIndex": 1,
  3209. "data": {
  3210. "output_iteration_variable": {
  3211. "name": "",
  3212. "type": "string",
  3213. "value": "#{25f07893-8a36-4355-9c2d-2007a448dcae.result}"
  3214. },
  3215. "output_can_alter": true,
  3216. "variables": [
  3217. {
  3218. "name": "iteration_input",
  3219. "type": "array[string]",
  3220. "value": "#{c91eb026-e86a-418f-a865-a98aa60bcf19.result}"
  3221. }
  3222. ],
  3223. "error_handle_mode": "terminated",
  3224. "flatten_output": false,
  3225. "isInIteration": true,
  3226. "default_value": [],
  3227. "start_node_id": "e6b5f725-3504-4cc0-b26f-fe39337d0aee",
  3228. "title": "迭代",
  3229. "type": "iteration",
  3230. "error_strategy": "none",
  3231. "retry_config": {
  3232. "max_retries": 3,
  3233. "retry_enabled": false,
  3234. "retry_interval": 100
  3235. },
  3236. "iteration_id": "74bc1d79-b51e-4279-b7e9-c0029a1ac154",
  3237. "is_parallel": false,
  3238. "selected": false,
  3239. "desc": "",
  3240. "isInLoop": false,
  3241. "parallel_nums": 10
  3242. }
  3243. },
  3244. "summary": "迭代"
  3245. },
  3246. "7": {
  3247. "value": {
  3248. "id": "25f07893-8a36-4355-9c2d-2007a448dcae",
  3249. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3250. "parentId": "",
  3251. "name": "代码执行 2",
  3252. "remark": "",
  3253. "position": {
  3254. "x": 20,
  3255. "y": 30
  3256. },
  3257. "width": 20,
  3258. "height": 40,
  3259. "selected": true,
  3260. "zIndex": 1,
  3261. "data": {
  3262. "outputs": [
  3263. {
  3264. "name": "result",
  3265. "type": "string"
  3266. }
  3267. ],
  3268. "output_can_alter": true,
  3269. "variables": [
  3270. {
  3271. "name": "item",
  3272. "type": "string",
  3273. "value": "#{74bc1d79-b51e-4279-b7e9-c0029a1ac154.item}"
  3274. }
  3275. ],
  3276. "isInIteration": false,
  3277. "default_value": [],
  3278. "title": "代码执行",
  3279. "type": "code",
  3280. "error_strategy": "none",
  3281. "retry_config": {
  3282. "max_retries": 3,
  3283. "retry_enabled": false,
  3284. "retry_interval": 100
  3285. },
  3286. "timeout_config": {
  3287. "max_write_timeout": 0,
  3288. "max_read_timeout": 0,
  3289. "max_connect_timeout": 0
  3290. },
  3291. "code": "\nfunction main(item) {\n return {\n result: item\n }\n}\n",
  3292. "code_language": "javascript",
  3293. "selected": false,
  3294. "desc": "",
  3295. "isInLoop": false
  3296. }
  3297. },
  3298. "summary": "代码(迭代内)"
  3299. },
  3300. "8": {
  3301. "value": {
  3302. "id": "3ba96b4e-25c2-486a-be27-94ab9957aba1",
  3303. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3304. "name": "迭代 1",
  3305. "remark": "",
  3306. "position": {
  3307. "x": 20,
  3308. "y": 30
  3309. },
  3310. "width": 20,
  3311. "height": 40,
  3312. "selected": true,
  3313. "zIndex": 1,
  3314. "data": {
  3315. "outputs": [
  3316. {
  3317. "name": "aa",
  3318. "type": "array[string]",
  3319. "value": "#{c91eb026-e86a-418f-a865-a98aa60bcf19.result}"
  3320. },
  3321. {
  3322. "name": "bb",
  3323. "type": "string",
  3324. "value": "#{492048da-6f33-4a36-adc5-cff4b973b053.body}"
  3325. },
  3326. {
  3327. "name": "cc",
  3328. "type": "array[string]",
  3329. "value": "#{74bc1d79-b51e-4279-b7e9-c0029a1ac154.output}"
  3330. }
  3331. ],
  3332. "output_can_alter": true,
  3333. "variables": [],
  3334. "isInIteration": false,
  3335. "default_value": [],
  3336. "type": "end",
  3337. "error_strategy": "none",
  3338. "retry_config": {
  3339. "max_retries": 3,
  3340. "retry_enabled": false,
  3341. "retry_interval": 100
  3342. },
  3343. "selected": false,
  3344. "isInLoop": false
  3345. }
  3346. },
  3347. "summary": "结束输出"
  3348. },
  3349. "9": {
  3350. "value": {
  3351. "id": "da46a998-7707-4505-a1ee-830182d0b6e1",
  3352. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3353. "name": "用户输入 1",
  3354. "remark": "",
  3355. "position": {
  3356. "x": 20,
  3357. "y": 30
  3358. },
  3359. "width": 20,
  3360. "height": 40,
  3361. "selected": true,
  3362. "zIndex": 1,
  3363. "data": {
  3364. "outputs": [],
  3365. "output_can_alter": true,
  3366. "variables": [
  3367. {
  3368. "label": "a1",
  3369. "max_length": 50,
  3370. "formType": "text-input",
  3371. "default_value": "",
  3372. "is_require": true
  3373. },
  3374. {
  3375. "label": "a2",
  3376. "max_length": 50,
  3377. "formType": "text-area",
  3378. "default_value": "",
  3379. "is_require": true
  3380. },
  3381. {
  3382. "label": "a3",
  3383. "formType": "select",
  3384. "default_value": "11",
  3385. "is_require": true,
  3386. "options": ["11", "22", "33"]
  3387. },
  3388. {
  3389. "label": "a4",
  3390. "formType": "number",
  3391. "default_value": 11,
  3392. "is_require": true
  3393. },
  3394. {
  3395. "label": "a5",
  3396. "formType": "checkbox",
  3397. "default_value": true,
  3398. "is_require": true
  3399. },
  3400. {
  3401. "label": "a6",
  3402. "formType": "file",
  3403. "default_value": {
  3404. "id": "11",
  3405. "name": "1.jpg",
  3406. "extensionName": ".jpg",
  3407. "size": 11213,
  3408. "path": "/aa"
  3409. },
  3410. "file_types": [],
  3411. "file_extensions": [],
  3412. "is_require": true
  3413. },
  3414. {
  3415. "label": "a7",
  3416. "formType": "file-list",
  3417. "default_value": [
  3418. {
  3419. "id": "11",
  3420. "name": "1.jpg",
  3421. "extensionName": ".jpg",
  3422. "size": 11213,
  3423. "path": "/aa"
  3424. }
  3425. ],
  3426. "file_types": [],
  3427. "file_extensions": [],
  3428. "is_require": true
  3429. },
  3430. {
  3431. "label": "a8",
  3432. "formType": "json_object",
  3433. "default_value": {
  3434. "text": ""
  3435. },
  3436. "is_require": true
  3437. }
  3438. ],
  3439. "isInIteration": false,
  3440. "default_value": [],
  3441. "type": "start",
  3442. "error_strategy": "none",
  3443. "retry_config": {
  3444. "max_retries": 3,
  3445. "retry_enabled": false,
  3446. "retry_interval": 100
  3447. },
  3448. "selected": false,
  3449. "isInLoop": false
  3450. }
  3451. },
  3452. "summary": "用户输入"
  3453. },
  3454. "10": {
  3455. "value": {
  3456. "id": "096eea5e-d5ed-4f68-9861-16ae73958980",
  3457. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3458. "name": "定时触发器 1",
  3459. "remark": "",
  3460. "position": {
  3461. "x": 20,
  3462. "y": 30
  3463. },
  3464. "width": 20,
  3465. "height": 40,
  3466. "selected": true,
  3467. "zIndex": 1,
  3468. "data": {
  3469. "outputs": [],
  3470. "output_can_alter": true,
  3471. "variables": [],
  3472. "isInIteration": false,
  3473. "default_value": [],
  3474. "visual_config": {
  3475. "monthly_days": ["1"],
  3476. "weekdays": ["sun"],
  3477. "time": "12:00",
  3478. "minute": 0
  3479. },
  3480. "type": "trigger-schedule",
  3481. "error_strategy": "none",
  3482. "retry_config": {
  3483. "max_retries": 3,
  3484. "retry_enabled": false,
  3485. "retry_interval": 100
  3486. },
  3487. "frequency": "daily",
  3488. "mode": "cron",
  3489. "cron_expression": "0 30 14 * * ? *",
  3490. "selected": false,
  3491. "isInLoop": false
  3492. }
  3493. },
  3494. "summary": "定时触发器"
  3495. },
  3496. "11": {
  3497. "value": {
  3498. "id": "f18f4871-7caa-4eb7-9000-226fc680997e",
  3499. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3500. "name": "Webhook 触发器 1",
  3501. "remark": "",
  3502. "position": {
  3503. "x": 20,
  3504. "y": 30
  3505. },
  3506. "width": 20,
  3507. "height": 40,
  3508. "selected": true,
  3509. "zIndex": 1,
  3510. "data": {
  3511. "outputs": [],
  3512. "headers": [
  3513. {
  3514. "name": "a1",
  3515. "required": false
  3516. },
  3517. {
  3518. "name": "a2",
  3519. "required": false
  3520. },
  3521. {
  3522. "name": "a3",
  3523. "required": false
  3524. }
  3525. ],
  3526. "output_can_alter": true,
  3527. "variables": [],
  3528. "method": "post",
  3529. "webhook_url": "/api/agent/webhook/f18f4871-7caa-4eb7-9000-226fc680997e",
  3530. "webhook_debug_url": "/api/agent/webhook-debug/f18f4871-7caa-4eb7-9000-226fc680997e",
  3531. "isInIteration": false,
  3532. "response_body": "",
  3533. "default_value": [],
  3534. "body": [
  3535. {
  3536. "name": "c1",
  3537. "type": "string",
  3538. "required": false
  3539. },
  3540. {
  3541. "name": "c2",
  3542. "type": "string",
  3543. "required": false
  3544. },
  3545. {
  3546. "name": "c3",
  3547. "type": "string",
  3548. "required": false
  3549. }
  3550. ],
  3551. "params": [
  3552. {
  3553. "name": "b1",
  3554. "type": "string",
  3555. "required": false
  3556. },
  3557. {
  3558. "name": "b2",
  3559. "type": "string",
  3560. "required": false
  3561. },
  3562. {
  3563. "name": "b3",
  3564. "type": "string",
  3565. "required": false
  3566. }
  3567. ],
  3568. "type": "trigger-webhook",
  3569. "async_mode": true,
  3570. "error_strategy": "none",
  3571. "retry_config": {
  3572. "max_retries": 3,
  3573. "retry_enabled": false,
  3574. "retry_interval": 100
  3575. },
  3576. "response_content_type": "application/json",
  3577. "content_type": "application/json",
  3578. "selected": false,
  3579. "isInLoop": false,
  3580. "response_status_code": 200
  3581. }
  3582. },
  3583. "summary": "WebHook触发器"
  3584. }
  3585. }
  3586. }
  3587. },
  3588. "required": true
  3589. },
  3590. "responses": {
  3591. "200": {
  3592. "description": "",
  3593. "content": {
  3594. "application/json": {
  3595. "schema": {
  3596. "type": "object",
  3597. "properties": {
  3598. "isSuccess": {
  3599. "type": "boolean"
  3600. },
  3601. "code": {
  3602. "type": "integer"
  3603. },
  3604. "isAuthorized": {
  3605. "type": "boolean"
  3606. }
  3607. },
  3608. "required": ["isSuccess", "code", "isAuthorized"]
  3609. },
  3610. "example": {
  3611. "isSuccess": true,
  3612. "code": 1,
  3613. "isAuthorized": true
  3614. }
  3615. }
  3616. },
  3617. "headers": {}
  3618. }
  3619. },
  3620. "security": []
  3621. }
  3622. },
  3623. "/api/agent/doDeleteAgentNode": {
  3624. "post": {
  3625. "summary": "删除智能体节点",
  3626. "deprecated": false,
  3627. "description": "",
  3628. "tags": ["Agent"],
  3629. "parameters": [
  3630. {
  3631. "name": "Authorization",
  3632. "in": "header",
  3633. "description": "",
  3634. "example": "bpm_client_1492899187547705344",
  3635. "schema": {
  3636. "type": "string",
  3637. "default": "bpm_client_1492899187547705344"
  3638. }
  3639. }
  3640. ],
  3641. "requestBody": {
  3642. "content": {
  3643. "application/json": {
  3644. "schema": {
  3645. "type": "object",
  3646. "properties": {
  3647. "id": {
  3648. "type": "string"
  3649. }
  3650. },
  3651. "required": ["id"]
  3652. },
  3653. "example": {
  3654. "id": "492048da-6f33-4a36-adc5-cff4b973b053"
  3655. }
  3656. }
  3657. },
  3658. "required": true
  3659. },
  3660. "responses": {
  3661. "200": {
  3662. "description": "",
  3663. "content": {
  3664. "application/json": {
  3665. "schema": {
  3666. "type": "object",
  3667. "properties": {
  3668. "isSuccess": {
  3669. "type": "boolean"
  3670. },
  3671. "code": {
  3672. "type": "integer"
  3673. },
  3674. "isAuthorized": {
  3675. "type": "boolean"
  3676. }
  3677. },
  3678. "required": ["isSuccess", "code", "isAuthorized"]
  3679. },
  3680. "example": {
  3681. "isSuccess": true,
  3682. "code": 1,
  3683. "isAuthorized": true
  3684. }
  3685. }
  3686. },
  3687. "headers": {}
  3688. }
  3689. },
  3690. "security": []
  3691. }
  3692. },
  3693. "/api/agent/doNewAgentNodeWithEdge": {
  3694. "post": {
  3695. "summary": "根据边缘线,创建新的智能体节点",
  3696. "deprecated": false,
  3697. "description": "",
  3698. "tags": ["Agent"],
  3699. "parameters": [
  3700. {
  3701. "name": "Authorization",
  3702. "in": "header",
  3703. "description": "",
  3704. "example": "bpm_client_1492899187547705344",
  3705. "schema": {
  3706. "type": "string",
  3707. "default": "bpm_client_1492899187547705344"
  3708. }
  3709. }
  3710. ],
  3711. "requestBody": {
  3712. "content": {
  3713. "application/json": {
  3714. "schema": {
  3715. "type": "object",
  3716. "properties": {
  3717. "edgeId": {
  3718. "type": "string"
  3719. },
  3720. "newNode": {
  3721. "type": "object",
  3722. "properties": {
  3723. "appAgentId": {
  3724. "type": "string"
  3725. },
  3726. "parentId": {
  3727. "type": "string"
  3728. },
  3729. "position": {
  3730. "type": "object",
  3731. "properties": {
  3732. "x": {
  3733. "type": "integer"
  3734. },
  3735. "y": {
  3736. "type": "integer"
  3737. }
  3738. },
  3739. "required": ["x", "y"]
  3740. },
  3741. "width": {
  3742. "type": "integer"
  3743. },
  3744. "height": {
  3745. "type": "integer"
  3746. },
  3747. "selected": {
  3748. "type": "boolean"
  3749. },
  3750. "nodeType": {
  3751. "type": "string"
  3752. },
  3753. "zIndex": {
  3754. "type": "integer"
  3755. },
  3756. "prevNodeId": {
  3757. "type": "string"
  3758. },
  3759. "nodeHandleId": {
  3760. "type": "string"
  3761. }
  3762. },
  3763. "required": [
  3764. "appAgentId",
  3765. "parentId",
  3766. "position",
  3767. "width",
  3768. "height",
  3769. "selected",
  3770. "nodeType",
  3771. "zIndex",
  3772. "prevNodeId",
  3773. "nodeHandleId"
  3774. ]
  3775. }
  3776. },
  3777. "required": ["edgeId", "newNode"]
  3778. },
  3779. "example": {
  3780. "edgeId": "f70a68a4-1a00-4c38-907b-dd8565087248",
  3781. "newNode": {
  3782. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3783. "parentId": "",
  3784. "position": {
  3785. "x": 20,
  3786. "y": 30
  3787. },
  3788. "width": 20,
  3789. "height": 40,
  3790. "selected": true,
  3791. "nodeType": "http-request",
  3792. "zIndex": 1,
  3793. "prevNodeId": "",
  3794. "nodeHandleId": ""
  3795. }
  3796. }
  3797. }
  3798. },
  3799. "required": true
  3800. },
  3801. "responses": {
  3802. "200": {
  3803. "description": "",
  3804. "content": {
  3805. "application/json": {
  3806. "schema": {
  3807. "type": "object",
  3808. "properties": {
  3809. "isSuccess": {
  3810. "type": "boolean"
  3811. },
  3812. "code": {
  3813. "type": "integer"
  3814. },
  3815. "result": {
  3816. "type": "string"
  3817. },
  3818. "isAuthorized": {
  3819. "type": "boolean"
  3820. }
  3821. },
  3822. "required": ["isSuccess", "code", "result", "isAuthorized"]
  3823. },
  3824. "example": {
  3825. "isSuccess": true,
  3826. "code": 1,
  3827. "result": "ab9cc26c-6152-4097-a85c-46fec6450aa8",
  3828. "isAuthorized": true
  3829. }
  3830. }
  3831. },
  3832. "headers": {}
  3833. }
  3834. },
  3835. "security": []
  3836. }
  3837. },
  3838. "/api/agent/doNewEdge": {
  3839. "post": {
  3840. "summary": "新增智能体边缘信息",
  3841. "deprecated": false,
  3842. "description": "",
  3843. "tags": ["Agent"],
  3844. "parameters": [
  3845. {
  3846. "name": "Authorization",
  3847. "in": "header",
  3848. "description": "",
  3849. "example": "bpm_client_1492899187547705344",
  3850. "schema": {
  3851. "type": "string",
  3852. "default": "bpm_client_1492899187547705344"
  3853. }
  3854. }
  3855. ],
  3856. "requestBody": {
  3857. "content": {
  3858. "application/json": {
  3859. "schema": {
  3860. "type": "object",
  3861. "properties": {
  3862. "appAgentId": {
  3863. "type": "string"
  3864. },
  3865. "source": {
  3866. "type": "string"
  3867. },
  3868. "sourceHandle": {
  3869. "type": "string"
  3870. },
  3871. "target": {
  3872. "type": "string"
  3873. },
  3874. "zIndex": {
  3875. "type": "integer"
  3876. }
  3877. },
  3878. "required": ["appAgentId", "source", "target", "zIndex"]
  3879. },
  3880. "examples": {
  3881. "1": {
  3882. "value": {
  3883. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3884. "source": "492048da-6f33-4a36-adc5-cff4b973b053",
  3885. "target": "c91eb026-e86a-418f-a865-a98aa60bcf19",
  3886. "zIndex": 0
  3887. },
  3888. "summary": "普通节点"
  3889. },
  3890. "2": {
  3891. "value": {
  3892. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3893. "source": "de35b389-3782-474c-9dd9-cb1356dea54b",
  3894. "sourceHandle": "c2cb978e-fce8-11f0-a59d-266b7b87fca6-1",
  3895. "target": "6764ede2-2c3d-46bb-ae9a-fb0a892aff84",
  3896. "zIndex": 0
  3897. },
  3898. "summary": "条件分支节点边缘"
  3899. }
  3900. }
  3901. }
  3902. },
  3903. "required": true
  3904. },
  3905. "responses": {
  3906. "200": {
  3907. "description": "",
  3908. "content": {
  3909. "application/json": {
  3910. "schema": {
  3911. "type": "object",
  3912. "properties": {
  3913. "isSuccess": {
  3914. "type": "boolean"
  3915. },
  3916. "code": {
  3917. "type": "integer"
  3918. },
  3919. "isAuthorized": {
  3920. "type": "boolean"
  3921. }
  3922. },
  3923. "required": ["isSuccess", "code", "isAuthorized"]
  3924. },
  3925. "example": {
  3926. "isSuccess": true,
  3927. "code": 1,
  3928. "isAuthorized": true
  3929. }
  3930. }
  3931. },
  3932. "headers": {}
  3933. }
  3934. },
  3935. "security": []
  3936. }
  3937. },
  3938. "/api/agent/doDeleteEdge": {
  3939. "post": {
  3940. "summary": "删除智能体边缘信息",
  3941. "deprecated": false,
  3942. "description": "",
  3943. "tags": ["Agent"],
  3944. "parameters": [
  3945. {
  3946. "name": "Authorization",
  3947. "in": "header",
  3948. "description": "",
  3949. "example": "bpm_client_1492899187547705344",
  3950. "schema": {
  3951. "type": "string",
  3952. "default": "bpm_client_1492899187547705344"
  3953. }
  3954. }
  3955. ],
  3956. "requestBody": {
  3957. "content": {
  3958. "application/json": {
  3959. "schema": {
  3960. "type": "object",
  3961. "properties": {
  3962. "id": {
  3963. "type": "string"
  3964. }
  3965. },
  3966. "required": ["id"]
  3967. },
  3968. "example": {
  3969. "id": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8"
  3970. }
  3971. }
  3972. },
  3973. "required": true
  3974. },
  3975. "responses": {
  3976. "200": {
  3977. "description": "",
  3978. "content": {
  3979. "application/json": {
  3980. "schema": {
  3981. "type": "object",
  3982. "properties": {
  3983. "isSuccess": {
  3984. "type": "boolean"
  3985. },
  3986. "code": {
  3987. "type": "integer"
  3988. },
  3989. "isAuthorized": {
  3990. "type": "boolean"
  3991. }
  3992. },
  3993. "required": ["isSuccess", "code", "isAuthorized"]
  3994. },
  3995. "example": {
  3996. "isSuccess": true,
  3997. "code": 1,
  3998. "isAuthorized": true
  3999. }
  4000. }
  4001. },
  4002. "headers": {}
  4003. }
  4004. },
  4005. "security": []
  4006. }
  4007. },
  4008. "/api/agent/doSelectedEdge": {
  4009. "post": {
  4010. "summary": "选中智能体边缘",
  4011. "deprecated": false,
  4012. "description": "",
  4013. "tags": ["Agent"],
  4014. "parameters": [
  4015. {
  4016. "name": "Authorization",
  4017. "in": "header",
  4018. "description": "",
  4019. "example": "bpm_client_1492899187547705344",
  4020. "schema": {
  4021. "type": "string",
  4022. "default": "bpm_client_1492899187547705344"
  4023. }
  4024. }
  4025. ],
  4026. "requestBody": {
  4027. "content": {
  4028. "application/json": {
  4029. "schema": {
  4030. "type": "object",
  4031. "properties": {
  4032. "id": {
  4033. "type": "string"
  4034. }
  4035. },
  4036. "required": ["id"]
  4037. },
  4038. "example": {
  4039. "id": "e518d540-2242-4def-8d42-381d9fab59ee"
  4040. }
  4041. }
  4042. },
  4043. "required": true
  4044. },
  4045. "responses": {
  4046. "200": {
  4047. "description": "",
  4048. "content": {
  4049. "application/json": {
  4050. "schema": {
  4051. "type": "object",
  4052. "properties": {
  4053. "isSuccess": {
  4054. "type": "boolean"
  4055. },
  4056. "code": {
  4057. "type": "integer"
  4058. },
  4059. "isAuthorized": {
  4060. "type": "boolean"
  4061. }
  4062. },
  4063. "required": ["isSuccess", "code", "isAuthorized"]
  4064. },
  4065. "example": {
  4066. "isSuccess": true,
  4067. "code": 1,
  4068. "isAuthorized": true
  4069. }
  4070. }
  4071. },
  4072. "headers": {}
  4073. }
  4074. },
  4075. "security": []
  4076. }
  4077. },
  4078. "/api/agent/doExecute": {
  4079. "post": {
  4080. "summary": "运行智能体",
  4081. "deprecated": false,
  4082. "description": "",
  4083. "tags": ["Agent"],
  4084. "parameters": [
  4085. {
  4086. "name": "Authorization",
  4087. "in": "header",
  4088. "description": "",
  4089. "example": "bpm_client_1492899187547705344",
  4090. "schema": {
  4091. "type": "string",
  4092. "default": "bpm_client_1492899187547705344"
  4093. }
  4094. }
  4095. ],
  4096. "requestBody": {
  4097. "content": {
  4098. "application/json": {
  4099. "schema": {
  4100. "type": "object",
  4101. "properties": {
  4102. "appAgentId": {
  4103. "type": "string"
  4104. },
  4105. "start_node_id": {
  4106. "type": "string"
  4107. },
  4108. "is_debugger": {
  4109. "type": "boolean"
  4110. },
  4111. "responseType": {
  4112. "type": "string"
  4113. },
  4114. "params": {
  4115. "type": "object",
  4116. "properties": {}
  4117. }
  4118. },
  4119. "required": ["appAgentId", "start_node_id", "is_debugger", "responseType", "params"]
  4120. },
  4121. "example": {
  4122. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  4123. "start_node_id": "492048da-6f33-4a36-adc5-cff4b973b053",
  4124. "is_debugger": true,
  4125. "responseType": "sse",
  4126. "params": {}
  4127. }
  4128. }
  4129. },
  4130. "required": true
  4131. },
  4132. "responses": {
  4133. "200": {
  4134. "description": "",
  4135. "content": {
  4136. "application/json": {
  4137. "schema": {
  4138. "type": "object",
  4139. "properties": {
  4140. "isSuccess": {
  4141. "type": "boolean"
  4142. },
  4143. "code": {
  4144. "type": "integer"
  4145. },
  4146. "result": {
  4147. "type": "string"
  4148. },
  4149. "isAuthorized": {
  4150. "type": "boolean"
  4151. }
  4152. },
  4153. "required": ["isSuccess", "code", "result", "isAuthorized"]
  4154. },
  4155. "example": {
  4156. "isSuccess": true,
  4157. "code": 1,
  4158. "result": "05d08317-6fb5-4af4-b0de-8365b4d8183e",
  4159. "isAuthorized": true
  4160. }
  4161. }
  4162. },
  4163. "headers": {}
  4164. }
  4165. },
  4166. "security": []
  4167. }
  4168. },
  4169. "/api/agent/getPrevNodeOutVariableList": {
  4170. "post": {
  4171. "summary": "根据节点id,获取节点之前的所有变量列表",
  4172. "deprecated": false,
  4173. "description": "",
  4174. "tags": ["Agent"],
  4175. "parameters": [
  4176. {
  4177. "name": "Authorization",
  4178. "in": "header",
  4179. "description": "",
  4180. "example": "bpm_client_1492899187547705344",
  4181. "schema": {
  4182. "type": "string",
  4183. "default": "bpm_client_1492899187547705344"
  4184. }
  4185. }
  4186. ],
  4187. "requestBody": {
  4188. "content": {
  4189. "application/json": {
  4190. "schema": {
  4191. "type": "object",
  4192. "properties": {
  4193. "node_id": {
  4194. "type": "string"
  4195. },
  4196. "varTypeList": {
  4197. "type": "array",
  4198. "items": {
  4199. "type": "string"
  4200. }
  4201. }
  4202. },
  4203. "required": ["node_id", "varTypeList"]
  4204. },
  4205. "example": {
  4206. "node_id": "3ba96b4e-25c2-486a-be27-94ab9957aba1",
  4207. "varTypeList": []
  4208. }
  4209. }
  4210. },
  4211. "required": true
  4212. },
  4213. "responses": {
  4214. "200": {
  4215. "description": "",
  4216. "content": {
  4217. "application/json": {
  4218. "schema": {
  4219. "type": "object",
  4220. "properties": {
  4221. "isSuccess": {
  4222. "type": "boolean"
  4223. },
  4224. "code": {
  4225. "type": "integer"
  4226. },
  4227. "result": {
  4228. "type": "array",
  4229. "items": {
  4230. "type": "object",
  4231. "properties": {
  4232. "id": {
  4233. "type": "string"
  4234. },
  4235. "name": {
  4236. "type": "string"
  4237. },
  4238. "variableList": {
  4239. "type": "array",
  4240. "items": {
  4241. "type": "object",
  4242. "properties": {
  4243. "expression": {
  4244. "type": "string"
  4245. },
  4246. "name": {
  4247. "type": "string"
  4248. },
  4249. "type": {
  4250. "type": "string"
  4251. }
  4252. },
  4253. "required": ["expression", "name", "type"]
  4254. }
  4255. }
  4256. },
  4257. "required": ["id", "name", "variableList"]
  4258. }
  4259. },
  4260. "isAuthorized": {
  4261. "type": "boolean"
  4262. }
  4263. },
  4264. "required": ["isSuccess", "code", "result", "isAuthorized"]
  4265. },
  4266. "example": {
  4267. "isSuccess": true,
  4268. "code": 1,
  4269. "result": [
  4270. {
  4271. "id": "74bc1d79-b51e-4279-b7e9-c0029a1ac154",
  4272. "name": "迭代 1",
  4273. "type": "iteration",
  4274. "variableList": [
  4275. {
  4276. "expression": "#{74bc1d79-b51e-4279-b7e9-c0029a1ac154.outputs}",
  4277. "name": "outputs",
  4278. "type": "array[string]"
  4279. }
  4280. ]
  4281. },
  4282. {
  4283. "id": "cae0c279-c1aa-40b6-9702-1df2af104a9b",
  4284. "name": "循环 1",
  4285. "type": "loop",
  4286. "variableList": [
  4287. {
  4288. "expression": "#{cae0c279-c1aa-40b6-9702-1df2af104a9b.aa}",
  4289. "name": "aa",
  4290. "type": "array[number]"
  4291. },
  4292. {
  4293. "expression": "#{cae0c279-c1aa-40b6-9702-1df2af104a9b.ifout}",
  4294. "name": "ifout",
  4295. "type": "boolean"
  4296. }
  4297. ]
  4298. },
  4299. {
  4300. "id": "c91eb026-e86a-418f-a865-a98aa60bcf19",
  4301. "name": "代码执行 1",
  4302. "type": "code",
  4303. "variableList": [
  4304. {
  4305. "expression": "#{c91eb026-e86a-418f-a865-a98aa60bcf19.result}",
  4306. "name": "result",
  4307. "type": "array[string]"
  4308. }
  4309. ]
  4310. },
  4311. {
  4312. "id": "env",
  4313. "name": "环境变量",
  4314. "variableList": [
  4315. {
  4316. "expression": "#{env.api_address}",
  4317. "name": "api_address",
  4318. "type": "string"
  4319. }
  4320. ]
  4321. },
  4322. {
  4323. "id": "sys",
  4324. "name": "系统变量",
  4325. "variableList": [
  4326. {
  4327. "expression": "sys.app_id",
  4328. "name": "app_id",
  4329. "type": "string"
  4330. },
  4331. {
  4332. "expression": "sys.user_id",
  4333. "name": "user_id",
  4334. "type": "string"
  4335. },
  4336. {
  4337. "expression": "sys.run_id",
  4338. "name": "run_id",
  4339. "type": "string"
  4340. },
  4341. {
  4342. "expression": "sys.files",
  4343. "name": "files",
  4344. "type": "array[file]"
  4345. }
  4346. ]
  4347. }
  4348. ],
  4349. "isAuthorized": true
  4350. }
  4351. }
  4352. },
  4353. "headers": {}
  4354. }
  4355. },
  4356. "security": []
  4357. }
  4358. },
  4359. "/api/agent/getAgentNodeLastRunnerLogs": {
  4360. "post": {
  4361. "summary": "获取智能体节点的最后一次运行日志",
  4362. "deprecated": false,
  4363. "description": "",
  4364. "tags": ["Agent"],
  4365. "parameters": [
  4366. {
  4367. "name": "Authorization",
  4368. "in": "header",
  4369. "description": "",
  4370. "example": "bpm_client_1492899187547705344",
  4371. "schema": {
  4372. "type": "string",
  4373. "default": "bpm_client_1492899187547705344"
  4374. }
  4375. }
  4376. ],
  4377. "requestBody": {
  4378. "content": {
  4379. "application/json": {
  4380. "schema": {
  4381. "type": "object",
  4382. "properties": {
  4383. "node_id": {
  4384. "type": "string"
  4385. }
  4386. },
  4387. "required": ["node_id"]
  4388. },
  4389. "example": {
  4390. "node_id": "3ba96b4e-25c2-486a-be27-94ab9957aba1"
  4391. }
  4392. }
  4393. },
  4394. "required": true
  4395. },
  4396. "responses": {
  4397. "200": {
  4398. "description": "",
  4399. "content": {
  4400. "application/json": {
  4401. "schema": {
  4402. "type": "object",
  4403. "properties": {
  4404. "isSuccess": {
  4405. "type": "boolean"
  4406. },
  4407. "code": {
  4408. "type": "integer"
  4409. },
  4410. "result": {
  4411. "type": "object",
  4412. "properties": {
  4413. "appAgentId": {
  4414. "type": "string"
  4415. },
  4416. "appAgentNodeId": {
  4417. "type": "string"
  4418. },
  4419. "appAgentRunnerId": {
  4420. "type": "string"
  4421. },
  4422. "creationTime": {
  4423. "type": "string"
  4424. },
  4425. "errorMsg": {
  4426. "type": "string"
  4427. },
  4428. "id": {
  4429. "type": "string"
  4430. },
  4431. "isDeleted": {
  4432. "type": "boolean"
  4433. },
  4434. "raw": {
  4435. "type": "object",
  4436. "properties": {
  4437. "agent_node_id": {
  4438. "type": "string"
  4439. },
  4440. "children": {
  4441. "type": "array",
  4442. "items": {
  4443. "type": "string"
  4444. }
  4445. },
  4446. "end_time": {
  4447. "type": "integer"
  4448. },
  4449. "input_variable": {
  4450. "type": "object",
  4451. "properties": {
  4452. "str": {
  4453. "type": "string"
  4454. }
  4455. },
  4456. "required": ["str"]
  4457. },
  4458. "is_success": {
  4459. "type": "boolean"
  4460. },
  4461. "node_name": {
  4462. "type": "string"
  4463. },
  4464. "node_type": {
  4465. "type": "string"
  4466. },
  4467. "output_variable": {
  4468. "type": "object",
  4469. "properties": {
  4470. "result": {
  4471. "type": "array",
  4472. "items": {
  4473. "type": "string"
  4474. }
  4475. }
  4476. },
  4477. "required": ["result"]
  4478. },
  4479. "start_time": {
  4480. "type": "integer"
  4481. },
  4482. "use_time": {
  4483. "type": "integer"
  4484. }
  4485. },
  4486. "required": [
  4487. "agent_node_id",
  4488. "children",
  4489. "end_time",
  4490. "input_variable",
  4491. "is_success",
  4492. "node_name",
  4493. "node_type",
  4494. "output_variable",
  4495. "start_time",
  4496. "use_time"
  4497. ]
  4498. },
  4499. "status": {
  4500. "type": "string"
  4501. },
  4502. "updateTime": {
  4503. "type": "string"
  4504. },
  4505. "useTime": {
  4506. "type": "integer"
  4507. }
  4508. },
  4509. "required": [
  4510. "appAgentId",
  4511. "appAgentNodeId",
  4512. "appAgentRunnerId",
  4513. "creationTime",
  4514. "errorMsg",
  4515. "id",
  4516. "isDeleted",
  4517. "raw",
  4518. "status",
  4519. "updateTime",
  4520. "useTime"
  4521. ]
  4522. },
  4523. "isAuthorized": {
  4524. "type": "boolean"
  4525. }
  4526. },
  4527. "required": ["isSuccess", "code", "result", "isAuthorized"]
  4528. },
  4529. "example": "{\r\n \"isSuccess\": true,\r\n \"code\": 1,\r\n \"result\": {\r\n \"appAgentId\": \"b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8\",\r\n \"appAgentNodeId\": \"c91eb026-e86a-418f-a865-a98aa60bcf19\",\r\n \"appAgentRunnerId\": \"32ee3677-4abd-4dfd-b4ab-e9a3356c0669\",\r\n \"creationTime\": \"2026-03-22 20:58:45\",\r\n \"errorMsg\": \"\",\r\n \"id\": \"5814f00c-da9b-4e04-9d97-0387dcb2ea8f\",\r\n \"isDeleted\": false,\r\n \"raw\": {\r\n \"agent_node_id\": \"c91eb026-e86a-418f-a865-a98aa60bcf19\",\r\n \"children\": [],\r\n \"end_time\": 1774184325058,\r\n \"input_variable\": {\r\n \"str\":\"{\\\"path\\\":\\\"\\\\/api\\\\/agent\\\\/getAgentInfo\\\",\\\"isAuthorized\\\":false,\\\"code\\\":9999,\\\"errorCode\\\":\\\"ERROR\\\",\\\"error\\\":\\\"\\会\\话\\丢\\失\\,\\需\\要\\登\\录 [0x82]\\\",\\\"errors\\\":{\\\"isFriendlyError\\\":false,\\\"message\\\":\\\"\\会\\话\\丢\\失\\,\\需\\要\\登\\录 [0x82]\\\"},\\\"isSuccess\\\":false}\"\r\n },\r\n \"is_success\": true,\r\n \"node_name\": \"代码执行 1\",\r\n \"node_type\": \"code\",\r\n \"output_variable\": {\r\n \"result\": [\r\n \"11\",\r\n \"22\",\r\n \"33\"\r\n ]\r\n },\r\n \"start_time\": 1774184325047,\r\n \"use_time\": 11\r\n },\r\n \"status\": \"finish\",\r\n \"updateTime\": \"2026-03-22 20:58:45\",\r\n \"useTime\": 11\r\n },\r\n \"isAuthorized\": true\r\n}"
  4530. }
  4531. },
  4532. "headers": {}
  4533. }
  4534. },
  4535. "security": []
  4536. }
  4537. }
  4538. },
  4539. "components": {
  4540. "schemas": {
  4541. "AgentNode": {
  4542. "type": "object",
  4543. "properties": {
  4544. "appAgentId": {
  4545. "type": "string",
  4546. "format": "uuid"
  4547. },
  4548. "creationTime": {
  4549. "type": "string",
  4550. "format": "date-time"
  4551. },
  4552. "creatorUserId": {
  4553. "type": "string",
  4554. "format": "uuid"
  4555. },
  4556. "data": {
  4557. "$ref": "#/components/schemas/NodeData"
  4558. },
  4559. "height": {
  4560. "type": "integer"
  4561. },
  4562. "id": {
  4563. "type": "string",
  4564. "format": "uuid"
  4565. },
  4566. "isDeleted": {
  4567. "type": "boolean"
  4568. },
  4569. "position": {
  4570. "type": "object",
  4571. "properties": {
  4572. "x": {
  4573. "type": "integer"
  4574. },
  4575. "y": {
  4576. "type": "integer"
  4577. }
  4578. },
  4579. "required": ["x", "y"]
  4580. },
  4581. "selected": {
  4582. "type": "boolean"
  4583. },
  4584. "type": {
  4585. "type": "string",
  4586. "enum": ["custom", "start", "end", "condition", "task", "http-request"]
  4587. },
  4588. "updateTime": {
  4589. "type": "string",
  4590. "format": "date-time"
  4591. },
  4592. "width": {
  4593. "type": "integer"
  4594. },
  4595. "zIndex": {
  4596. "type": "integer"
  4597. }
  4598. },
  4599. "required": [
  4600. "appAgentId",
  4601. "creationTime",
  4602. "creatorUserId",
  4603. "data",
  4604. "id",
  4605. "position",
  4606. "type"
  4607. ]
  4608. },
  4609. "NodeData": {
  4610. "type": "object",
  4611. "properties": {
  4612. "outputs": {
  4613. "type": "array",
  4614. "items": {
  4615. "type": "object",
  4616. "properties": {
  4617. "name": {
  4618. "type": "string"
  4619. },
  4620. "describe": {
  4621. "type": "string"
  4622. },
  4623. "type": {
  4624. "type": "string",
  4625. "enum": ["string", "number", "boolean", "object", "array"]
  4626. }
  4627. },
  4628. "required": ["name", "describe", "type"]
  4629. }
  4630. },
  4631. "output_can_alter": {
  4632. "type": "boolean"
  4633. },
  4634. "variables": {
  4635. "type": "array",
  4636. "items": {
  4637. "type": "string"
  4638. }
  4639. },
  4640. "method": {
  4641. "type": "string",
  4642. "enum": ["get", "post", "put", "delete", "patch", "head", "options"]
  4643. },
  4644. "ssl_verify": {
  4645. "type": "boolean"
  4646. },
  4647. "isInIteration": {
  4648. "type": "boolean"
  4649. },
  4650. "default_value": {
  4651. "type": "array",
  4652. "items": {
  4653. "type": "string"
  4654. }
  4655. },
  4656. "body": {
  4657. "$ref": "#/components/schemas/RequestBody"
  4658. },
  4659. "params": {
  4660. "type": "array",
  4661. "items": {
  4662. "type": "string"
  4663. }
  4664. },
  4665. "title": {
  4666. "type": "string"
  4667. },
  4668. "type": {
  4669. "type": "string",
  4670. "enum": ["http-request", "condition", "task"]
  4671. },
  4672. "error_strategy": {
  4673. "type": "string",
  4674. "enum": ["none", "retry", "abort", "continue"]
  4675. },
  4676. "retry_config": {
  4677. "type": "object",
  4678. "properties": {
  4679. "max_retries": {
  4680. "type": "integer",
  4681. "minimum": 0,
  4682. "maximum": 10
  4683. },
  4684. "retry_enabled": {
  4685. "type": "boolean"
  4686. },
  4687. "retry_interval": {
  4688. "type": "integer",
  4689. "minimum": 0,
  4690. "maximum": 5000
  4691. }
  4692. },
  4693. "required": ["max_retries", "retry_enabled", "retry_interval"]
  4694. },
  4695. "url": {
  4696. "type": "string",
  4697. "format": "uri"
  4698. },
  4699. "authorization": {
  4700. "type": "object",
  4701. "properties": {
  4702. "type": {
  4703. "type": "string",
  4704. "enum": ["none", "bearer", "basic", "api-key"]
  4705. },
  4706. "config": {
  4707. "type": "object",
  4708. "properties": {
  4709. "api_key": {
  4710. "type": "string"
  4711. },
  4712. "header": {
  4713. "type": "string"
  4714. },
  4715. "type": {
  4716. "type": "string"
  4717. }
  4718. }
  4719. }
  4720. },
  4721. "required": ["type", "config"]
  4722. },
  4723. "timeout_config": {
  4724. "type": "object",
  4725. "properties": {
  4726. "max_write_timeout": {
  4727. "type": "integer",
  4728. "minimum": 0
  4729. },
  4730. "max_read_timeout": {
  4731. "type": "integer",
  4732. "minimum": 0
  4733. },
  4734. "max_connect_timeout": {
  4735. "type": "integer",
  4736. "minimum": 0
  4737. }
  4738. },
  4739. "required": ["max_write_timeout", "max_read_timeout", "max_connect_timeout"]
  4740. },
  4741. "heads": {
  4742. "type": "array",
  4743. "items": {
  4744. "$ref": "#/components/schemas/HttpHeader"
  4745. }
  4746. },
  4747. "selected": {
  4748. "type": "boolean"
  4749. },
  4750. "desc": {
  4751. "type": "string"
  4752. },
  4753. "isInLoop": {
  4754. "type": "boolean"
  4755. }
  4756. },
  4757. "required": ["outputs", "method", "title", "type", "url"]
  4758. },
  4759. "RequestBody": {
  4760. "type": "object",
  4761. "properties": {
  4762. "data": {
  4763. "type": "array",
  4764. "items": {
  4765. "$ref": "#/components/schemas/RequestDataItem"
  4766. }
  4767. },
  4768. "type": {
  4769. "type": "string",
  4770. "enum": ["json", "form-data", "x-www-form-urlencoded", "raw", "binary"]
  4771. }
  4772. },
  4773. "required": ["data", "type"]
  4774. },
  4775. "RequestDataItem": {
  4776. "type": "object",
  4777. "properties": {
  4778. "type": {
  4779. "type": "string",
  4780. "enum": ["text", "file", "json"]
  4781. },
  4782. "value": {
  4783. "type": "string"
  4784. },
  4785. "key": {
  4786. "type": "string"
  4787. }
  4788. },
  4789. "required": ["type", "value"]
  4790. },
  4791. "HttpHeader": {
  4792. "type": "object",
  4793. "properties": {
  4794. "name": {
  4795. "type": "string"
  4796. },
  4797. "value": {
  4798. "type": "string"
  4799. }
  4800. },
  4801. "required": ["name", "value"]
  4802. }
  4803. },
  4804. "securitySchemes": {
  4805. "ApiKeyAuth": {
  4806. "type": "apiKey",
  4807. "in": "header",
  4808. "name": "Authorization"
  4809. }
  4810. }
  4811. },
  4812. "security": [
  4813. {
  4814. "ApiKeyAuth": []
  4815. }
  4816. ]
  4817. }