agent.openapi.json 148 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420
  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. "result": {
  3608. "type": "object"
  3609. }
  3610. },
  3611. "required": ["isSuccess", "code", "isAuthorized"]
  3612. },
  3613. "example": {
  3614. "isSuccess": true,
  3615. "code": 1,
  3616. "isAuthorized": true
  3617. }
  3618. }
  3619. },
  3620. "headers": {}
  3621. }
  3622. },
  3623. "security": []
  3624. }
  3625. },
  3626. "/api/agent/doDeleteAgentNode": {
  3627. "post": {
  3628. "summary": "删除智能体节点",
  3629. "deprecated": false,
  3630. "description": "",
  3631. "tags": ["Agent"],
  3632. "parameters": [
  3633. {
  3634. "name": "Authorization",
  3635. "in": "header",
  3636. "description": "",
  3637. "example": "bpm_client_1492899187547705344",
  3638. "schema": {
  3639. "type": "string",
  3640. "default": "bpm_client_1492899187547705344"
  3641. }
  3642. }
  3643. ],
  3644. "requestBody": {
  3645. "content": {
  3646. "application/json": {
  3647. "schema": {
  3648. "type": "object",
  3649. "properties": {
  3650. "id": {
  3651. "type": "string"
  3652. }
  3653. },
  3654. "required": ["id"]
  3655. },
  3656. "example": {
  3657. "id": "492048da-6f33-4a36-adc5-cff4b973b053"
  3658. }
  3659. }
  3660. },
  3661. "required": true
  3662. },
  3663. "responses": {
  3664. "200": {
  3665. "description": "",
  3666. "content": {
  3667. "application/json": {
  3668. "schema": {
  3669. "type": "object",
  3670. "properties": {
  3671. "isSuccess": {
  3672. "type": "boolean"
  3673. },
  3674. "code": {
  3675. "type": "integer"
  3676. },
  3677. "isAuthorized": {
  3678. "type": "boolean"
  3679. }
  3680. },
  3681. "required": ["isSuccess", "code", "isAuthorized"]
  3682. },
  3683. "example": {
  3684. "isSuccess": true,
  3685. "code": 1,
  3686. "isAuthorized": true
  3687. }
  3688. }
  3689. },
  3690. "headers": {}
  3691. }
  3692. },
  3693. "security": []
  3694. }
  3695. },
  3696. "/api/agent/doNewAgentNodeWithEdge": {
  3697. "post": {
  3698. "summary": "根据边缘线,创建新的智能体节点",
  3699. "deprecated": false,
  3700. "description": "",
  3701. "tags": ["Agent"],
  3702. "parameters": [
  3703. {
  3704. "name": "Authorization",
  3705. "in": "header",
  3706. "description": "",
  3707. "example": "bpm_client_1492899187547705344",
  3708. "schema": {
  3709. "type": "string",
  3710. "default": "bpm_client_1492899187547705344"
  3711. }
  3712. }
  3713. ],
  3714. "requestBody": {
  3715. "content": {
  3716. "application/json": {
  3717. "schema": {
  3718. "type": "object",
  3719. "properties": {
  3720. "edgeId": {
  3721. "type": "string"
  3722. },
  3723. "newNode": {
  3724. "type": "object",
  3725. "properties": {
  3726. "appAgentId": {
  3727. "type": "string"
  3728. },
  3729. "parentId": {
  3730. "type": "string"
  3731. },
  3732. "position": {
  3733. "type": "object",
  3734. "properties": {
  3735. "x": {
  3736. "type": "integer"
  3737. },
  3738. "y": {
  3739. "type": "integer"
  3740. }
  3741. },
  3742. "required": ["x", "y"]
  3743. },
  3744. "width": {
  3745. "type": "integer"
  3746. },
  3747. "height": {
  3748. "type": "integer"
  3749. },
  3750. "selected": {
  3751. "type": "boolean"
  3752. },
  3753. "nodeType": {
  3754. "type": "string"
  3755. },
  3756. "zIndex": {
  3757. "type": "integer"
  3758. },
  3759. "prevNodeId": {
  3760. "type": "string"
  3761. },
  3762. "nodeHandleId": {
  3763. "type": "string"
  3764. }
  3765. },
  3766. "required": [
  3767. "appAgentId",
  3768. "parentId",
  3769. "position",
  3770. "width",
  3771. "height",
  3772. "selected",
  3773. "nodeType",
  3774. "zIndex",
  3775. "prevNodeId",
  3776. "nodeHandleId"
  3777. ]
  3778. }
  3779. },
  3780. "required": ["edgeId", "newNode"]
  3781. },
  3782. "example": {
  3783. "edgeId": "f70a68a4-1a00-4c38-907b-dd8565087248",
  3784. "newNode": {
  3785. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3786. "parentId": "",
  3787. "position": {
  3788. "x": 20,
  3789. "y": 30
  3790. },
  3791. "width": 20,
  3792. "height": 40,
  3793. "selected": true,
  3794. "nodeType": "http-request",
  3795. "zIndex": 1,
  3796. "prevNodeId": "",
  3797. "nodeHandleId": ""
  3798. }
  3799. }
  3800. }
  3801. },
  3802. "required": true
  3803. },
  3804. "responses": {
  3805. "200": {
  3806. "description": "",
  3807. "content": {
  3808. "application/json": {
  3809. "schema": {
  3810. "type": "object",
  3811. "properties": {
  3812. "isSuccess": {
  3813. "type": "boolean"
  3814. },
  3815. "code": {
  3816. "type": "integer"
  3817. },
  3818. "result": {
  3819. "type": "string"
  3820. },
  3821. "isAuthorized": {
  3822. "type": "boolean"
  3823. }
  3824. },
  3825. "required": ["isSuccess", "code", "result", "isAuthorized"]
  3826. },
  3827. "example": {
  3828. "isSuccess": true,
  3829. "code": 1,
  3830. "result": "ab9cc26c-6152-4097-a85c-46fec6450aa8",
  3831. "isAuthorized": true
  3832. }
  3833. }
  3834. },
  3835. "headers": {}
  3836. }
  3837. },
  3838. "security": []
  3839. }
  3840. },
  3841. "/api/agent/doNewEdge": {
  3842. "post": {
  3843. "summary": "新增智能体边缘信息",
  3844. "deprecated": false,
  3845. "description": "",
  3846. "tags": ["Agent"],
  3847. "parameters": [
  3848. {
  3849. "name": "Authorization",
  3850. "in": "header",
  3851. "description": "",
  3852. "example": "bpm_client_1492899187547705344",
  3853. "schema": {
  3854. "type": "string",
  3855. "default": "bpm_client_1492899187547705344"
  3856. }
  3857. }
  3858. ],
  3859. "requestBody": {
  3860. "content": {
  3861. "application/json": {
  3862. "schema": {
  3863. "type": "object",
  3864. "properties": {
  3865. "appAgentId": {
  3866. "type": "string"
  3867. },
  3868. "source": {
  3869. "type": "string"
  3870. },
  3871. "sourceHandle": {
  3872. "type": "string"
  3873. },
  3874. "target": {
  3875. "type": "string"
  3876. },
  3877. "zIndex": {
  3878. "type": "integer"
  3879. }
  3880. },
  3881. "required": ["appAgentId", "source", "target", "zIndex"]
  3882. },
  3883. "examples": {
  3884. "1": {
  3885. "value": {
  3886. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3887. "source": "492048da-6f33-4a36-adc5-cff4b973b053",
  3888. "target": "c91eb026-e86a-418f-a865-a98aa60bcf19",
  3889. "zIndex": 0
  3890. },
  3891. "summary": "普通节点"
  3892. },
  3893. "2": {
  3894. "value": {
  3895. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3896. "source": "de35b389-3782-474c-9dd9-cb1356dea54b",
  3897. "sourceHandle": "c2cb978e-fce8-11f0-a59d-266b7b87fca6-1",
  3898. "target": "6764ede2-2c3d-46bb-ae9a-fb0a892aff84",
  3899. "zIndex": 0
  3900. },
  3901. "summary": "条件分支节点边缘"
  3902. }
  3903. }
  3904. }
  3905. },
  3906. "required": true
  3907. },
  3908. "responses": {
  3909. "200": {
  3910. "description": "",
  3911. "content": {
  3912. "application/json": {
  3913. "schema": {
  3914. "type": "object",
  3915. "properties": {
  3916. "isSuccess": {
  3917. "type": "boolean"
  3918. },
  3919. "code": {
  3920. "type": "integer"
  3921. },
  3922. "isAuthorized": {
  3923. "type": "boolean"
  3924. }
  3925. },
  3926. "required": ["isSuccess", "code", "isAuthorized"]
  3927. },
  3928. "example": {
  3929. "isSuccess": true,
  3930. "code": 1,
  3931. "isAuthorized": true
  3932. }
  3933. }
  3934. },
  3935. "headers": {}
  3936. }
  3937. },
  3938. "security": []
  3939. }
  3940. },
  3941. "/api/agent/doDeleteEdge": {
  3942. "post": {
  3943. "summary": "删除智能体边缘信息",
  3944. "deprecated": false,
  3945. "description": "",
  3946. "tags": ["Agent"],
  3947. "parameters": [
  3948. {
  3949. "name": "Authorization",
  3950. "in": "header",
  3951. "description": "",
  3952. "example": "bpm_client_1492899187547705344",
  3953. "schema": {
  3954. "type": "string",
  3955. "default": "bpm_client_1492899187547705344"
  3956. }
  3957. }
  3958. ],
  3959. "requestBody": {
  3960. "content": {
  3961. "application/json": {
  3962. "schema": {
  3963. "type": "object",
  3964. "properties": {
  3965. "id": {
  3966. "type": "string"
  3967. }
  3968. },
  3969. "required": ["id"]
  3970. },
  3971. "example": {
  3972. "id": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8"
  3973. }
  3974. }
  3975. },
  3976. "required": true
  3977. },
  3978. "responses": {
  3979. "200": {
  3980. "description": "",
  3981. "content": {
  3982. "application/json": {
  3983. "schema": {
  3984. "type": "object",
  3985. "properties": {
  3986. "isSuccess": {
  3987. "type": "boolean"
  3988. },
  3989. "code": {
  3990. "type": "integer"
  3991. },
  3992. "isAuthorized": {
  3993. "type": "boolean"
  3994. }
  3995. },
  3996. "required": ["isSuccess", "code", "isAuthorized"]
  3997. },
  3998. "example": {
  3999. "isSuccess": true,
  4000. "code": 1,
  4001. "isAuthorized": true
  4002. }
  4003. }
  4004. },
  4005. "headers": {}
  4006. }
  4007. },
  4008. "security": []
  4009. }
  4010. },
  4011. "/api/agent/doSelectedEdge": {
  4012. "post": {
  4013. "summary": "选中智能体边缘",
  4014. "deprecated": false,
  4015. "description": "",
  4016. "tags": ["Agent"],
  4017. "parameters": [
  4018. {
  4019. "name": "Authorization",
  4020. "in": "header",
  4021. "description": "",
  4022. "example": "bpm_client_1492899187547705344",
  4023. "schema": {
  4024. "type": "string",
  4025. "default": "bpm_client_1492899187547705344"
  4026. }
  4027. }
  4028. ],
  4029. "requestBody": {
  4030. "content": {
  4031. "application/json": {
  4032. "schema": {
  4033. "type": "object",
  4034. "properties": {
  4035. "id": {
  4036. "type": "string"
  4037. }
  4038. },
  4039. "required": ["id"]
  4040. },
  4041. "example": {
  4042. "id": "e518d540-2242-4def-8d42-381d9fab59ee"
  4043. }
  4044. }
  4045. },
  4046. "required": true
  4047. },
  4048. "responses": {
  4049. "200": {
  4050. "description": "",
  4051. "content": {
  4052. "application/json": {
  4053. "schema": {
  4054. "type": "object",
  4055. "properties": {
  4056. "isSuccess": {
  4057. "type": "boolean"
  4058. },
  4059. "code": {
  4060. "type": "integer"
  4061. },
  4062. "isAuthorized": {
  4063. "type": "boolean"
  4064. }
  4065. },
  4066. "required": ["isSuccess", "code", "isAuthorized"]
  4067. },
  4068. "example": {
  4069. "isSuccess": true,
  4070. "code": 1,
  4071. "isAuthorized": true
  4072. }
  4073. }
  4074. },
  4075. "headers": {}
  4076. }
  4077. },
  4078. "security": []
  4079. }
  4080. },
  4081. "/api/agent/doExecute": {
  4082. "post": {
  4083. "summary": "运行智能体",
  4084. "deprecated": false,
  4085. "description": "",
  4086. "tags": ["Agent"],
  4087. "parameters": [
  4088. {
  4089. "name": "Authorization",
  4090. "in": "header",
  4091. "description": "",
  4092. "example": "bpm_client_1492899187547705344",
  4093. "schema": {
  4094. "type": "string",
  4095. "default": "bpm_client_1492899187547705344"
  4096. }
  4097. }
  4098. ],
  4099. "requestBody": {
  4100. "content": {
  4101. "application/json": {
  4102. "schema": {
  4103. "type": "object",
  4104. "properties": {
  4105. "appAgentId": {
  4106. "type": "string"
  4107. },
  4108. "start_node_id": {
  4109. "type": "string"
  4110. },
  4111. "is_debugger": {
  4112. "type": "boolean"
  4113. },
  4114. "responseType": {
  4115. "type": "string"
  4116. },
  4117. "params": {
  4118. "type": "object",
  4119. "properties": {}
  4120. }
  4121. },
  4122. "required": ["appAgentId", "start_node_id", "is_debugger", "responseType", "params"]
  4123. },
  4124. "example": {
  4125. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  4126. "start_node_id": "492048da-6f33-4a36-adc5-cff4b973b053",
  4127. "is_debugger": true,
  4128. "responseType": "sse",
  4129. "params": {}
  4130. }
  4131. }
  4132. },
  4133. "required": true
  4134. },
  4135. "responses": {
  4136. "200": {
  4137. "description": "",
  4138. "content": {
  4139. "application/json": {
  4140. "schema": {
  4141. "type": "object",
  4142. "properties": {
  4143. "isSuccess": {
  4144. "type": "boolean"
  4145. },
  4146. "code": {
  4147. "type": "integer"
  4148. },
  4149. "result": {
  4150. "type": "string"
  4151. },
  4152. "isAuthorized": {
  4153. "type": "boolean"
  4154. }
  4155. },
  4156. "required": ["isSuccess", "code", "result", "isAuthorized"]
  4157. },
  4158. "example": {
  4159. "isSuccess": true,
  4160. "code": 1,
  4161. "result": "05d08317-6fb5-4af4-b0de-8365b4d8183e",
  4162. "isAuthorized": true
  4163. }
  4164. }
  4165. },
  4166. "headers": {}
  4167. }
  4168. },
  4169. "security": []
  4170. }
  4171. },
  4172. "/api/agent/getPrevNodeOutVariableList": {
  4173. "post": {
  4174. "summary": "根据节点id,获取节点之前的所有变量列表",
  4175. "deprecated": false,
  4176. "description": "",
  4177. "tags": ["Agent"],
  4178. "parameters": [
  4179. {
  4180. "name": "Authorization",
  4181. "in": "header",
  4182. "description": "",
  4183. "example": "bpm_client_1492899187547705344",
  4184. "schema": {
  4185. "type": "string",
  4186. "default": "bpm_client_1492899187547705344"
  4187. }
  4188. }
  4189. ],
  4190. "requestBody": {
  4191. "content": {
  4192. "application/json": {
  4193. "schema": {
  4194. "type": "object",
  4195. "properties": {
  4196. "node_id": {
  4197. "type": "string"
  4198. },
  4199. "varTypeList": {
  4200. "type": "array",
  4201. "items": {
  4202. "type": "string"
  4203. }
  4204. }
  4205. },
  4206. "required": ["node_id", "varTypeList"]
  4207. },
  4208. "example": {
  4209. "node_id": "3ba96b4e-25c2-486a-be27-94ab9957aba1",
  4210. "varTypeList": []
  4211. }
  4212. }
  4213. },
  4214. "required": true
  4215. },
  4216. "responses": {
  4217. "200": {
  4218. "description": "",
  4219. "content": {
  4220. "application/json": {
  4221. "schema": {
  4222. "type": "object",
  4223. "properties": {
  4224. "isSuccess": {
  4225. "type": "boolean"
  4226. },
  4227. "code": {
  4228. "type": "integer"
  4229. },
  4230. "result": {
  4231. "type": "array",
  4232. "items": {
  4233. "type": "object",
  4234. "properties": {
  4235. "id": {
  4236. "type": "string"
  4237. },
  4238. "name": {
  4239. "type": "string"
  4240. },
  4241. "variableList": {
  4242. "type": "array",
  4243. "items": {
  4244. "type": "object",
  4245. "properties": {
  4246. "expression": {
  4247. "type": "string"
  4248. },
  4249. "name": {
  4250. "type": "string"
  4251. },
  4252. "type": {
  4253. "type": "string"
  4254. }
  4255. },
  4256. "required": ["expression", "name", "type"]
  4257. }
  4258. }
  4259. },
  4260. "required": ["id", "name", "variableList"]
  4261. }
  4262. },
  4263. "isAuthorized": {
  4264. "type": "boolean"
  4265. }
  4266. },
  4267. "required": ["isSuccess", "code", "result", "isAuthorized"]
  4268. },
  4269. "example": {
  4270. "isSuccess": true,
  4271. "code": 1,
  4272. "result": [
  4273. {
  4274. "id": "74bc1d79-b51e-4279-b7e9-c0029a1ac154",
  4275. "name": "迭代 1",
  4276. "type": "iteration",
  4277. "variableList": [
  4278. {
  4279. "expression": "#{74bc1d79-b51e-4279-b7e9-c0029a1ac154.outputs}",
  4280. "name": "outputs",
  4281. "type": "array[string]"
  4282. }
  4283. ]
  4284. },
  4285. {
  4286. "id": "cae0c279-c1aa-40b6-9702-1df2af104a9b",
  4287. "name": "循环 1",
  4288. "type": "loop",
  4289. "variableList": [
  4290. {
  4291. "expression": "#{cae0c279-c1aa-40b6-9702-1df2af104a9b.aa}",
  4292. "name": "aa",
  4293. "type": "array[number]"
  4294. },
  4295. {
  4296. "expression": "#{cae0c279-c1aa-40b6-9702-1df2af104a9b.ifout}",
  4297. "name": "ifout",
  4298. "type": "boolean"
  4299. }
  4300. ]
  4301. },
  4302. {
  4303. "id": "c91eb026-e86a-418f-a865-a98aa60bcf19",
  4304. "name": "代码执行 1",
  4305. "type": "code",
  4306. "variableList": [
  4307. {
  4308. "expression": "#{c91eb026-e86a-418f-a865-a98aa60bcf19.result}",
  4309. "name": "result",
  4310. "type": "array[string]"
  4311. }
  4312. ]
  4313. },
  4314. {
  4315. "id": "env",
  4316. "name": "环境变量",
  4317. "variableList": [
  4318. {
  4319. "expression": "#{env.api_address}",
  4320. "name": "api_address",
  4321. "type": "string"
  4322. }
  4323. ]
  4324. },
  4325. {
  4326. "id": "sys",
  4327. "name": "系统变量",
  4328. "variableList": [
  4329. {
  4330. "expression": "sys.app_id",
  4331. "name": "app_id",
  4332. "type": "string"
  4333. },
  4334. {
  4335. "expression": "sys.user_id",
  4336. "name": "user_id",
  4337. "type": "string"
  4338. },
  4339. {
  4340. "expression": "sys.run_id",
  4341. "name": "run_id",
  4342. "type": "string"
  4343. },
  4344. {
  4345. "expression": "sys.files",
  4346. "name": "files",
  4347. "type": "array[file]"
  4348. }
  4349. ]
  4350. }
  4351. ],
  4352. "isAuthorized": true
  4353. }
  4354. }
  4355. },
  4356. "headers": {}
  4357. }
  4358. },
  4359. "security": []
  4360. }
  4361. },
  4362. "/api/agent/getAgentNodeLastRunnerLogs": {
  4363. "post": {
  4364. "summary": "获取智能体节点的最后一次运行日志",
  4365. "deprecated": false,
  4366. "description": "",
  4367. "tags": ["Agent"],
  4368. "parameters": [
  4369. {
  4370. "name": "Authorization",
  4371. "in": "header",
  4372. "description": "",
  4373. "example": "bpm_client_1492899187547705344",
  4374. "schema": {
  4375. "type": "string",
  4376. "default": "bpm_client_1492899187547705344"
  4377. }
  4378. }
  4379. ],
  4380. "requestBody": {
  4381. "content": {
  4382. "application/json": {
  4383. "schema": {
  4384. "type": "object",
  4385. "properties": {
  4386. "node_id": {
  4387. "type": "string"
  4388. }
  4389. },
  4390. "required": ["node_id"]
  4391. },
  4392. "example": {
  4393. "node_id": "3ba96b4e-25c2-486a-be27-94ab9957aba1"
  4394. }
  4395. }
  4396. },
  4397. "required": true
  4398. },
  4399. "responses": {
  4400. "200": {
  4401. "description": "",
  4402. "content": {
  4403. "application/json": {
  4404. "schema": {
  4405. "type": "object",
  4406. "properties": {
  4407. "isSuccess": {
  4408. "type": "boolean"
  4409. },
  4410. "code": {
  4411. "type": "integer"
  4412. },
  4413. "result": {
  4414. "type": "object",
  4415. "properties": {
  4416. "appAgentId": {
  4417. "type": "string"
  4418. },
  4419. "appAgentNodeId": {
  4420. "type": "string"
  4421. },
  4422. "appAgentRunnerId": {
  4423. "type": "string"
  4424. },
  4425. "creationTime": {
  4426. "type": "string"
  4427. },
  4428. "errorMsg": {
  4429. "type": "string"
  4430. },
  4431. "id": {
  4432. "type": "string"
  4433. },
  4434. "isDeleted": {
  4435. "type": "boolean"
  4436. },
  4437. "raw": {
  4438. "type": "object",
  4439. "properties": {
  4440. "agent_node_id": {
  4441. "type": "string"
  4442. },
  4443. "children": {
  4444. "type": "array",
  4445. "items": {
  4446. "type": "string"
  4447. }
  4448. },
  4449. "end_time": {
  4450. "type": "integer"
  4451. },
  4452. "input_variable": {
  4453. "type": "object",
  4454. "properties": {
  4455. "str": {
  4456. "type": "string"
  4457. }
  4458. },
  4459. "required": ["str"]
  4460. },
  4461. "is_success": {
  4462. "type": "boolean"
  4463. },
  4464. "node_name": {
  4465. "type": "string"
  4466. },
  4467. "node_type": {
  4468. "type": "string"
  4469. },
  4470. "output_variable": {
  4471. "type": "object",
  4472. "properties": {
  4473. "result": {
  4474. "type": "array",
  4475. "items": {
  4476. "type": "string"
  4477. }
  4478. }
  4479. },
  4480. "required": ["result"]
  4481. },
  4482. "start_time": {
  4483. "type": "integer"
  4484. },
  4485. "use_time": {
  4486. "type": "integer"
  4487. }
  4488. },
  4489. "required": [
  4490. "agent_node_id",
  4491. "children",
  4492. "end_time",
  4493. "input_variable",
  4494. "is_success",
  4495. "node_name",
  4496. "node_type",
  4497. "output_variable",
  4498. "start_time",
  4499. "use_time"
  4500. ]
  4501. },
  4502. "status": {
  4503. "type": "string"
  4504. },
  4505. "updateTime": {
  4506. "type": "string"
  4507. },
  4508. "useTime": {
  4509. "type": "integer"
  4510. }
  4511. },
  4512. "required": [
  4513. "appAgentId",
  4514. "appAgentNodeId",
  4515. "appAgentRunnerId",
  4516. "creationTime",
  4517. "errorMsg",
  4518. "id",
  4519. "isDeleted",
  4520. "raw",
  4521. "status",
  4522. "updateTime",
  4523. "useTime"
  4524. ]
  4525. },
  4526. "isAuthorized": {
  4527. "type": "boolean"
  4528. }
  4529. },
  4530. "required": ["isSuccess", "code", "result", "isAuthorized"]
  4531. },
  4532. "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}"
  4533. }
  4534. },
  4535. "headers": {}
  4536. }
  4537. },
  4538. "security": []
  4539. }
  4540. },
  4541. "/api/agent/doAgentPublish": {
  4542. "post": {
  4543. "summary": "发布智能体",
  4544. "deprecated": false,
  4545. "description": "",
  4546. "tags": ["Agent"],
  4547. "parameters": [
  4548. {
  4549. "name": "Authorization",
  4550. "in": "header",
  4551. "description": "",
  4552. "example": "bpm_client_1496159371585916928",
  4553. "schema": {
  4554. "type": "string",
  4555. "default": "bpm_client_1496159371585916928"
  4556. }
  4557. }
  4558. ],
  4559. "requestBody": {
  4560. "content": {
  4561. "application/json": {
  4562. "schema": {
  4563. "type": "object",
  4564. "properties": {
  4565. "start_node_id": {
  4566. "type": "string"
  4567. },
  4568. "appAgentId": {
  4569. "type": "string",
  4570. "format": "uuid"
  4571. }
  4572. },
  4573. "required": ["start_node_id", "appAgentId"]
  4574. },
  4575. "example": {
  4576. "start_node_id": "3ba96b4e-25c2-486a-be27-94ab9957aba1"
  4577. }
  4578. }
  4579. },
  4580. "required": true
  4581. },
  4582. "responses": {
  4583. "200": {
  4584. "description": "",
  4585. "content": {
  4586. "application/json": {
  4587. "schema": {
  4588. "type": "object",
  4589. "properties": {
  4590. "isSuccess": {
  4591. "type": "boolean"
  4592. },
  4593. "code": {
  4594. "type": "integer"
  4595. },
  4596. "isAuthorized": {
  4597. "type": "boolean"
  4598. }
  4599. },
  4600. "required": ["isSuccess", "code", "isAuthorized"]
  4601. },
  4602. "example": {
  4603. "isSuccess": true,
  4604. "code": 1,
  4605. "isAuthorized": true
  4606. }
  4607. }
  4608. },
  4609. "headers": {}
  4610. }
  4611. },
  4612. "security": []
  4613. }
  4614. },
  4615. "/api/agent/getAgentMonacoEditorCompletions": {
  4616. "post": {
  4617. "summary": "获取智能体MonacoEditor提示器配置对象",
  4618. "deprecated": false,
  4619. "description": "",
  4620. "tags": ["Agent"],
  4621. "parameters": [
  4622. {
  4623. "name": "Authorization",
  4624. "in": "header",
  4625. "description": "",
  4626. "example": "bpm_client_1499247893062619136",
  4627. "schema": {
  4628. "type": "string",
  4629. "default": "bpm_client_1499247893062619136"
  4630. }
  4631. }
  4632. ],
  4633. "requestBody": {
  4634. "content": {
  4635. "application/json": {
  4636. "schema": {
  4637. "type": "object",
  4638. "properties": {}
  4639. },
  4640. "example": {}
  4641. }
  4642. },
  4643. "required": true
  4644. },
  4645. "responses": {
  4646. "200": {
  4647. "description": "",
  4648. "content": {
  4649. "application/json": {
  4650. "schema": {
  4651. "type": "object",
  4652. "properties": {
  4653. "isSuccess": {
  4654. "type": "boolean"
  4655. },
  4656. "code": {
  4657. "type": "integer"
  4658. },
  4659. "result": {
  4660. "type": "object",
  4661. "properties": {
  4662. "javascript": {
  4663. "type": "array",
  4664. "items": {
  4665. "type": "object",
  4666. "properties": {
  4667. "methods": {
  4668. "type": "array",
  4669. "items": {
  4670. "type": "string"
  4671. }
  4672. },
  4673. "object": {
  4674. "type": "string"
  4675. },
  4676. "properties": {
  4677. "type": "array",
  4678. "items": {
  4679. "type": "object",
  4680. "properties": {
  4681. "detail": {
  4682. "type": "string"
  4683. },
  4684. "documentation": {
  4685. "type": "string"
  4686. },
  4687. "insertText": {
  4688. "type": "string"
  4689. },
  4690. "kind": {
  4691. "type": "string"
  4692. },
  4693. "label": {
  4694. "type": "string"
  4695. },
  4696. "snippet": {
  4697. "type": "boolean"
  4698. }
  4699. },
  4700. "required": [
  4701. "detail",
  4702. "documentation",
  4703. "insertText",
  4704. "kind",
  4705. "label",
  4706. "snippet"
  4707. ]
  4708. }
  4709. },
  4710. "triggerCharacters": {
  4711. "type": "array",
  4712. "items": {
  4713. "type": "string"
  4714. }
  4715. }
  4716. },
  4717. "required": ["methods", "object", "properties", "triggerCharacters"]
  4718. }
  4719. }
  4720. },
  4721. "required": ["javascript"]
  4722. },
  4723. "isAuthorized": {
  4724. "type": "boolean"
  4725. }
  4726. },
  4727. "required": ["isSuccess", "code", "result", "isAuthorized"]
  4728. },
  4729. "example": {
  4730. "isSuccess": true,
  4731. "code": 1,
  4732. "result": {
  4733. "javascript": [
  4734. {
  4735. "methods": [],
  4736. "object": "user_mstr",
  4737. "properties": [
  4738. {
  4739. "detail": "Date creation_time",
  4740. "documentation": "creation_time",
  4741. "insertText": "creation_time",
  4742. "kind": "property",
  4743. "label": "creation_time",
  4744. "snippet": false
  4745. },
  4746. {
  4747. "detail": "String creation_user",
  4748. "documentation": "creation_user",
  4749. "insertText": "creation_user",
  4750. "kind": "property",
  4751. "label": "creation_user",
  4752. "snippet": false
  4753. },
  4754. {
  4755. "detail": "Date update_time",
  4756. "documentation": "update_time",
  4757. "insertText": "update_time",
  4758. "kind": "property",
  4759. "label": "update_time",
  4760. "snippet": false
  4761. },
  4762. {
  4763. "detail": "String update_user",
  4764. "documentation": "update_user",
  4765. "insertText": "update_user",
  4766. "kind": "property",
  4767. "label": "update_user",
  4768. "snippet": false
  4769. },
  4770. {
  4771. "detail": "Date delete_time",
  4772. "documentation": "delete_time",
  4773. "insertText": "delete_time",
  4774. "kind": "property",
  4775. "label": "delete_time",
  4776. "snippet": false
  4777. },
  4778. {
  4779. "detail": "String delete_user",
  4780. "documentation": "delete_user",
  4781. "insertText": "delete_user",
  4782. "kind": "property",
  4783. "label": "delete_user",
  4784. "snippet": false
  4785. },
  4786. {
  4787. "detail": "Boolean is_deleted",
  4788. "documentation": "is_deleted",
  4789. "insertText": "is_deleted",
  4790. "kind": "property",
  4791. "label": "is_deleted",
  4792. "snippet": false
  4793. },
  4794. {
  4795. "detail": "String user_code",
  4796. "documentation": "user_code",
  4797. "insertText": "user_code",
  4798. "kind": "property",
  4799. "label": "user_code",
  4800. "snippet": false
  4801. },
  4802. {
  4803. "detail": "String name",
  4804. "documentation": "name",
  4805. "insertText": "name",
  4806. "kind": "property",
  4807. "label": "name",
  4808. "snippet": false
  4809. },
  4810. {
  4811. "detail": "Integer age",
  4812. "documentation": "age",
  4813. "insertText": "age",
  4814. "kind": "property",
  4815. "label": "age",
  4816. "snippet": false
  4817. },
  4818. {
  4819. "detail": "Date borndate",
  4820. "documentation": "borndate",
  4821. "insertText": "borndate",
  4822. "kind": "property",
  4823. "label": "borndate",
  4824. "snippet": false
  4825. }
  4826. ],
  4827. "triggerCharacters": ["."]
  4828. },
  4829. {
  4830. "methods": [],
  4831. "object": "test_mstr",
  4832. "properties": [
  4833. {
  4834. "detail": "Date test_creation_time",
  4835. "documentation": "test_creation_time",
  4836. "insertText": "test_creation_time",
  4837. "kind": "property",
  4838. "label": "test_creation_time",
  4839. "snippet": false
  4840. },
  4841. {
  4842. "detail": "String test_creation_user",
  4843. "documentation": "test_creation_user",
  4844. "insertText": "test_creation_user",
  4845. "kind": "property",
  4846. "label": "test_creation_user",
  4847. "snippet": false
  4848. },
  4849. {
  4850. "detail": "Date test_update_time",
  4851. "documentation": "test_update_time",
  4852. "insertText": "test_update_time",
  4853. "kind": "property",
  4854. "label": "test_update_time",
  4855. "snippet": false
  4856. },
  4857. {
  4858. "detail": "String test_update_user",
  4859. "documentation": "test_update_user",
  4860. "insertText": "test_update_user",
  4861. "kind": "property",
  4862. "label": "test_update_user",
  4863. "snippet": false
  4864. },
  4865. {
  4866. "detail": "Date test_delete_time",
  4867. "documentation": "test_delete_time",
  4868. "insertText": "test_delete_time",
  4869. "kind": "property",
  4870. "label": "test_delete_time",
  4871. "snippet": false
  4872. },
  4873. {
  4874. "detail": "String test_delete_user",
  4875. "documentation": "test_delete_user",
  4876. "insertText": "test_delete_user",
  4877. "kind": "property",
  4878. "label": "test_delete_user",
  4879. "snippet": false
  4880. },
  4881. {
  4882. "detail": "Boolean test_is_deleted",
  4883. "documentation": "test_is_deleted",
  4884. "insertText": "test_is_deleted",
  4885. "kind": "property",
  4886. "label": "test_is_deleted",
  4887. "snippet": false
  4888. }
  4889. ],
  4890. "triggerCharacters": ["."]
  4891. },
  4892. {
  4893. "methods": [],
  4894. "object": "test3_mstr",
  4895. "properties": [
  4896. {
  4897. "detail": "String taskId",
  4898. "documentation": "taskId",
  4899. "insertText": "taskId",
  4900. "kind": "property",
  4901. "label": "taskId",
  4902. "snippet": false
  4903. },
  4904. {
  4905. "detail": "String snNumber",
  4906. "documentation": "snNumber",
  4907. "insertText": "snNumber",
  4908. "kind": "property",
  4909. "label": "snNumber",
  4910. "snippet": false
  4911. },
  4912. {
  4913. "detail": "Integer taskStatus",
  4914. "documentation": "taskStatus",
  4915. "insertText": "taskStatus",
  4916. "kind": "property",
  4917. "label": "taskStatus",
  4918. "snippet": false
  4919. },
  4920. {
  4921. "detail": "Date creationTime",
  4922. "documentation": "creationTime",
  4923. "insertText": "creationTime",
  4924. "kind": "property",
  4925. "label": "creationTime",
  4926. "snippet": false
  4927. }
  4928. ],
  4929. "triggerCharacters": ["."]
  4930. },
  4931. {
  4932. "methods": [],
  4933. "object": "test2_mstr",
  4934. "properties": [
  4935. {
  4936. "detail": "String taskId",
  4937. "documentation": "taskId",
  4938. "insertText": "taskId",
  4939. "kind": "property",
  4940. "label": "taskId",
  4941. "snippet": false
  4942. },
  4943. {
  4944. "detail": "String snNumber",
  4945. "documentation": "snNumber",
  4946. "insertText": "snNumber",
  4947. "kind": "property",
  4948. "label": "snNumber",
  4949. "snippet": false
  4950. },
  4951. {
  4952. "detail": "Integer taskStatus",
  4953. "documentation": "taskStatus",
  4954. "insertText": "taskStatus",
  4955. "kind": "property",
  4956. "label": "taskStatus",
  4957. "snippet": false
  4958. },
  4959. {
  4960. "detail": "Date creationTime",
  4961. "documentation": "creationTime",
  4962. "insertText": "creationTime",
  4963. "kind": "property",
  4964. "label": "creationTime",
  4965. "snippet": false
  4966. }
  4967. ],
  4968. "triggerCharacters": ["."]
  4969. },
  4970. {
  4971. "methods": [],
  4972. "object": "test1_mstr",
  4973. "properties": [
  4974. {
  4975. "detail": "String taskId",
  4976. "documentation": "taskId",
  4977. "insertText": "taskId",
  4978. "kind": "property",
  4979. "label": "taskId",
  4980. "snippet": false
  4981. },
  4982. {
  4983. "detail": "String snNumber",
  4984. "documentation": "snNumber",
  4985. "insertText": "snNumber",
  4986. "kind": "property",
  4987. "label": "snNumber",
  4988. "snippet": false
  4989. },
  4990. {
  4991. "detail": "Integer taskStatus",
  4992. "documentation": "taskStatus",
  4993. "insertText": "taskStatus",
  4994. "kind": "property",
  4995. "label": "taskStatus",
  4996. "snippet": false
  4997. },
  4998. {
  4999. "detail": "Date creationTime",
  5000. "documentation": "creationTime",
  5001. "insertText": "creationTime",
  5002. "kind": "property",
  5003. "label": "creationTime",
  5004. "snippet": false
  5005. }
  5006. ],
  5007. "triggerCharacters": ["."]
  5008. },
  5009. {
  5010. "methods": [],
  5011. "object": "chat_mstr",
  5012. "properties": [
  5013. {
  5014. "detail": "Date creation_time",
  5015. "documentation": "creation_time",
  5016. "insertText": "creation_time",
  5017. "kind": "property",
  5018. "label": "creation_time",
  5019. "snippet": false
  5020. },
  5021. {
  5022. "detail": "String creation_user",
  5023. "documentation": "creation_user",
  5024. "insertText": "creation_user",
  5025. "kind": "property",
  5026. "label": "creation_user",
  5027. "snippet": false
  5028. },
  5029. {
  5030. "detail": "Date update_time",
  5031. "documentation": "update_time",
  5032. "insertText": "update_time",
  5033. "kind": "property",
  5034. "label": "update_time",
  5035. "snippet": false
  5036. },
  5037. {
  5038. "detail": "String update_user",
  5039. "documentation": "update_user",
  5040. "insertText": "update_user",
  5041. "kind": "property",
  5042. "label": "update_user",
  5043. "snippet": false
  5044. },
  5045. {
  5046. "detail": "Date delete_time",
  5047. "documentation": "delete_time",
  5048. "insertText": "delete_time",
  5049. "kind": "property",
  5050. "label": "delete_time",
  5051. "snippet": false
  5052. },
  5053. {
  5054. "detail": "String delete_user",
  5055. "documentation": "delete_user",
  5056. "insertText": "delete_user",
  5057. "kind": "property",
  5058. "label": "delete_user",
  5059. "snippet": false
  5060. },
  5061. {
  5062. "detail": "Boolean is_deleted",
  5063. "documentation": "is_deleted",
  5064. "insertText": "is_deleted",
  5065. "kind": "property",
  5066. "label": "is_deleted",
  5067. "snippet": false
  5068. },
  5069. {
  5070. "detail": "Integer sess_id",
  5071. "documentation": "sess_id",
  5072. "insertText": "sess_id",
  5073. "kind": "property",
  5074. "label": "sess_id",
  5075. "snippet": false
  5076. },
  5077. {
  5078. "detail": "String type",
  5079. "documentation": "type",
  5080. "insertText": "type",
  5081. "kind": "property",
  5082. "label": "type",
  5083. "snippet": false
  5084. },
  5085. {
  5086. "detail": "String uniq_key",
  5087. "documentation": "uniq_key",
  5088. "insertText": "uniq_key",
  5089. "kind": "property",
  5090. "label": "uniq_key",
  5091. "snippet": false
  5092. },
  5093. {
  5094. "detail": "String grp_name",
  5095. "documentation": "grp_name",
  5096. "insertText": "grp_name",
  5097. "kind": "property",
  5098. "label": "grp_name",
  5099. "snippet": false
  5100. },
  5101. {
  5102. "detail": "Integer creat_by",
  5103. "documentation": "creat_by",
  5104. "insertText": "creat_by",
  5105. "kind": "property",
  5106. "label": "creat_by",
  5107. "snippet": false
  5108. },
  5109. {
  5110. "detail": "Date creat_time",
  5111. "documentation": "creat_time",
  5112. "insertText": "creat_time",
  5113. "kind": "property",
  5114. "label": "creat_time",
  5115. "snippet": false
  5116. },
  5117. {
  5118. "detail": "String chat_code",
  5119. "documentation": "chat_code",
  5120. "insertText": "chat_code",
  5121. "kind": "property",
  5122. "label": "chat_code",
  5123. "snippet": false
  5124. }
  5125. ],
  5126. "triggerCharacters": ["."]
  5127. }
  5128. ]
  5129. },
  5130. "isAuthorized": true
  5131. }
  5132. }
  5133. },
  5134. "headers": {}
  5135. }
  5136. },
  5137. "security": []
  5138. }
  5139. }
  5140. },
  5141. "components": {
  5142. "schemas": {
  5143. "AgentNode": {
  5144. "type": "object",
  5145. "properties": {
  5146. "appAgentId": {
  5147. "type": "string",
  5148. "format": "uuid"
  5149. },
  5150. "creationTime": {
  5151. "type": "string",
  5152. "format": "date-time"
  5153. },
  5154. "creatorUserId": {
  5155. "type": "string",
  5156. "format": "uuid"
  5157. },
  5158. "data": {
  5159. "$ref": "#/components/schemas/NodeData"
  5160. },
  5161. "height": {
  5162. "type": "integer"
  5163. },
  5164. "id": {
  5165. "type": "string",
  5166. "format": "uuid"
  5167. },
  5168. "isDeleted": {
  5169. "type": "boolean"
  5170. },
  5171. "position": {
  5172. "type": "object",
  5173. "properties": {
  5174. "x": {
  5175. "type": "integer"
  5176. },
  5177. "y": {
  5178. "type": "integer"
  5179. }
  5180. },
  5181. "required": ["x", "y"]
  5182. },
  5183. "selected": {
  5184. "type": "boolean"
  5185. },
  5186. "type": {
  5187. "type": "string",
  5188. "enum": ["custom", "start", "end", "condition", "task", "http-request"]
  5189. },
  5190. "updateTime": {
  5191. "type": "string",
  5192. "format": "date-time"
  5193. },
  5194. "width": {
  5195. "type": "integer"
  5196. },
  5197. "zIndex": {
  5198. "type": "integer"
  5199. }
  5200. },
  5201. "required": [
  5202. "appAgentId",
  5203. "creationTime",
  5204. "creatorUserId",
  5205. "data",
  5206. "id",
  5207. "position",
  5208. "type"
  5209. ]
  5210. },
  5211. "NodeData": {
  5212. "type": "object",
  5213. "properties": {
  5214. "outputs": {
  5215. "type": "array",
  5216. "items": {
  5217. "type": "object",
  5218. "properties": {
  5219. "name": {
  5220. "type": "string"
  5221. },
  5222. "describe": {
  5223. "type": "string"
  5224. },
  5225. "type": {
  5226. "type": "string",
  5227. "enum": ["string", "number", "boolean", "object", "array"]
  5228. }
  5229. },
  5230. "required": ["name", "describe", "type"]
  5231. }
  5232. },
  5233. "output_can_alter": {
  5234. "type": "boolean"
  5235. },
  5236. "variables": {
  5237. "type": "array",
  5238. "items": {
  5239. "type": "string"
  5240. }
  5241. },
  5242. "method": {
  5243. "type": "string",
  5244. "enum": ["get", "post", "put", "delete", "patch", "head", "options"]
  5245. },
  5246. "ssl_verify": {
  5247. "type": "boolean"
  5248. },
  5249. "isInIteration": {
  5250. "type": "boolean"
  5251. },
  5252. "default_value": {
  5253. "type": "array",
  5254. "items": {
  5255. "type": "string"
  5256. }
  5257. },
  5258. "body": {
  5259. "$ref": "#/components/schemas/RequestBody"
  5260. },
  5261. "params": {
  5262. "type": "array",
  5263. "items": {
  5264. "type": "string"
  5265. }
  5266. },
  5267. "title": {
  5268. "type": "string"
  5269. },
  5270. "type": {
  5271. "type": "string",
  5272. "enum": ["http-request", "condition", "task"]
  5273. },
  5274. "error_strategy": {
  5275. "type": "string",
  5276. "enum": ["none", "retry", "abort", "continue"]
  5277. },
  5278. "retry_config": {
  5279. "type": "object",
  5280. "properties": {
  5281. "max_retries": {
  5282. "type": "integer",
  5283. "minimum": 0,
  5284. "maximum": 10
  5285. },
  5286. "retry_enabled": {
  5287. "type": "boolean"
  5288. },
  5289. "retry_interval": {
  5290. "type": "integer",
  5291. "minimum": 0,
  5292. "maximum": 5000
  5293. }
  5294. },
  5295. "required": ["max_retries", "retry_enabled", "retry_interval"]
  5296. },
  5297. "url": {
  5298. "type": "string",
  5299. "format": "uri"
  5300. },
  5301. "authorization": {
  5302. "type": "object",
  5303. "properties": {
  5304. "type": {
  5305. "type": "string",
  5306. "enum": ["none", "bearer", "basic", "api-key"]
  5307. },
  5308. "config": {
  5309. "type": "object",
  5310. "properties": {
  5311. "api_key": {
  5312. "type": "string"
  5313. },
  5314. "header": {
  5315. "type": "string"
  5316. },
  5317. "type": {
  5318. "type": "string"
  5319. }
  5320. }
  5321. }
  5322. },
  5323. "required": ["type", "config"]
  5324. },
  5325. "timeout_config": {
  5326. "type": "object",
  5327. "properties": {
  5328. "max_write_timeout": {
  5329. "type": "integer",
  5330. "minimum": 0
  5331. },
  5332. "max_read_timeout": {
  5333. "type": "integer",
  5334. "minimum": 0
  5335. },
  5336. "max_connect_timeout": {
  5337. "type": "integer",
  5338. "minimum": 0
  5339. }
  5340. },
  5341. "required": ["max_write_timeout", "max_read_timeout", "max_connect_timeout"]
  5342. },
  5343. "heads": {
  5344. "type": "array",
  5345. "items": {
  5346. "$ref": "#/components/schemas/HttpHeader"
  5347. }
  5348. },
  5349. "selected": {
  5350. "type": "boolean"
  5351. },
  5352. "desc": {
  5353. "type": "string"
  5354. },
  5355. "isInLoop": {
  5356. "type": "boolean"
  5357. }
  5358. },
  5359. "required": ["outputs", "method", "title", "type", "url"]
  5360. },
  5361. "RequestBody": {
  5362. "type": "object",
  5363. "properties": {
  5364. "data": {
  5365. "type": "array",
  5366. "items": {
  5367. "$ref": "#/components/schemas/RequestDataItem"
  5368. }
  5369. },
  5370. "type": {
  5371. "type": "string",
  5372. "enum": ["json", "form-data", "x-www-form-urlencoded", "raw", "binary"]
  5373. }
  5374. },
  5375. "required": ["data", "type"]
  5376. },
  5377. "RequestDataItem": {
  5378. "type": "object",
  5379. "properties": {
  5380. "type": {
  5381. "type": "string",
  5382. "enum": ["text", "file", "json"]
  5383. },
  5384. "value": {
  5385. "type": "string"
  5386. },
  5387. "key": {
  5388. "type": "string"
  5389. }
  5390. },
  5391. "required": ["type", "value"]
  5392. },
  5393. "HttpHeader": {
  5394. "type": "object",
  5395. "properties": {
  5396. "name": {
  5397. "type": "string"
  5398. },
  5399. "value": {
  5400. "type": "string"
  5401. }
  5402. },
  5403. "required": ["name", "value"]
  5404. }
  5405. },
  5406. "securitySchemes": {
  5407. "ApiKeyAuth": {
  5408. "type": "apiKey",
  5409. "in": "header",
  5410. "name": "Authorization"
  5411. }
  5412. }
  5413. },
  5414. "security": [
  5415. {
  5416. "ApiKeyAuth": []
  5417. }
  5418. ]
  5419. }