agent.openapi.json 227 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385
  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": "AgentApplication",
  21. "description": "智能体应用相关接口"
  22. },
  23. {
  24. "name": "tools",
  25. "description": "工具相关接口"
  26. },
  27. {
  28. "name": "agentLog",
  29. "description": "日志相关接口"
  30. }
  31. ],
  32. "paths": {
  33. "/api/agent/getBefore7DayAgentRunnerStatic": {
  34. "post": {
  35. "summary": "获取7天前的智能体运行状态",
  36. "deprecated": false,
  37. "description": "",
  38. "tags": ["agentLog"],
  39. "parameters": [
  40. {
  41. "name": "Authorization",
  42. "in": "header",
  43. "description": "",
  44. "example": "bpm_client_1519145361682206720",
  45. "schema": {
  46. "type": "string"
  47. }
  48. }
  49. ],
  50. "requestBody": {
  51. "content": {
  52. "application/json": {
  53. "schema": {
  54. "type": "object",
  55. "properties": {}
  56. },
  57. "example": {}
  58. }
  59. },
  60. "required": true
  61. },
  62. "responses": {
  63. "200": {
  64. "description": "",
  65. "content": {
  66. "application/json": {
  67. "schema": {
  68. "type": "object",
  69. "properties": {
  70. "isSuccess": {
  71. "type": "boolean"
  72. },
  73. "code": {
  74. "type": "integer"
  75. },
  76. "result": {
  77. "type": "object",
  78. "properties": {
  79. "avg_elapsed_sec": {
  80. "type": "string"
  81. },
  82. "error_total": {
  83. "type": "integer"
  84. },
  85. "process_total": {
  86. "type": "integer"
  87. },
  88. "run_total": {
  89. "type": "integer"
  90. },
  91. "success_total": {
  92. "type": "integer"
  93. }
  94. },
  95. "required": [
  96. "avg_elapsed_sec",
  97. "error_total",
  98. "process_total",
  99. "run_total",
  100. "success_total"
  101. ]
  102. },
  103. "isAuthorized": {
  104. "type": "boolean"
  105. }
  106. },
  107. "required": ["isSuccess", "code", "result", "isAuthorized"]
  108. },
  109. "example": {
  110. "isSuccess": true,
  111. "code": 1,
  112. "result": {
  113. "avg_elapsed_time": "2000.00",
  114. "error_total": 0,
  115. "run_total": 1,
  116. "success_total": 1
  117. },
  118. "isAuthorized": true
  119. }
  120. }
  121. },
  122. "headers": {}
  123. }
  124. },
  125. "security": []
  126. }
  127. },
  128. "/api/agent/getAgentRunnerPageList": {
  129. "post": {
  130. "summary": "获取智能体运行日志分页列表",
  131. "deprecated": false,
  132. "description": "",
  133. "tags": ["agentLog"],
  134. "parameters": [
  135. {
  136. "name": "Authorization",
  137. "in": "header",
  138. "description": "",
  139. "example": "bpm_client_1519145361682206720",
  140. "schema": {
  141. "type": "string"
  142. }
  143. }
  144. ],
  145. "requestBody": {
  146. "content": {
  147. "application/json": {
  148. "schema": {
  149. "type": "object",
  150. "properties": {
  151. "keyword": {
  152. "type": "string"
  153. },
  154. "status": {
  155. "type": "string"
  156. },
  157. "source": {
  158. "type": "string"
  159. },
  160. "pageIndex": {
  161. "type": "integer"
  162. },
  163. "pageSize": {
  164. "type": "integer"
  165. }
  166. },
  167. "required": ["keyword", "status", "source", "pageIndex", "pageSize"]
  168. },
  169. "example": {
  170. "keyword": "",
  171. "status": "running,finish,error",
  172. "source": "manual,schedule,webhook,api",
  173. "pageIndex": 1,
  174. "pageSize": 20
  175. }
  176. }
  177. },
  178. "required": true
  179. },
  180. "responses": {
  181. "200": {
  182. "description": "",
  183. "content": {
  184. "application/json": {
  185. "schema": {
  186. "type": "object",
  187. "properties": {
  188. "isSuccess": {
  189. "type": "boolean"
  190. },
  191. "code": {
  192. "type": "integer"
  193. },
  194. "result": {
  195. "type": "object",
  196. "properties": {
  197. "currentPage": {
  198. "type": "integer"
  199. },
  200. "hasNextPage": {
  201. "type": "boolean"
  202. },
  203. "hasPreviousPage": {
  204. "type": "boolean"
  205. },
  206. "model": {
  207. "type": "array",
  208. "items": {
  209. "type": "object",
  210. "properties": {
  211. "agentName": {
  212. "type": "string"
  213. },
  214. "beginDate": {
  215. "type": "string"
  216. },
  217. "endDate": {
  218. "type": "string"
  219. },
  220. "runnerId": {
  221. "type": "string"
  222. },
  223. "status": {
  224. "type": "string"
  225. },
  226. "useTime": {
  227. "type": "integer"
  228. }
  229. }
  230. }
  231. },
  232. "pageSize": {
  233. "type": "integer"
  234. },
  235. "totalCount": {
  236. "type": "integer"
  237. },
  238. "totalPages": {
  239. "type": "integer"
  240. }
  241. },
  242. "required": [
  243. "currentPage",
  244. "hasNextPage",
  245. "hasPreviousPage",
  246. "model",
  247. "pageSize",
  248. "totalCount",
  249. "totalPages"
  250. ]
  251. },
  252. "isAuthorized": {
  253. "type": "boolean"
  254. }
  255. },
  256. "required": ["isSuccess", "code", "result", "isAuthorized"]
  257. },
  258. "example": {
  259. "isSuccess": true,
  260. "code": 1,
  261. "result": {
  262. "currentPage": 1,
  263. "hasNextPage": false,
  264. "hasPreviousPage": false,
  265. "model": [
  266. {
  267. "agentName": "智能编演示",
  268. "beginDate": "2026-06-03 16:34:01",
  269. "endDate": "2026-06-03 16:34:03",
  270. "runnerId": "3b73469d-329d-493e-bc69-d0f3f8e33c72",
  271. "status": "finish",
  272. "useTime": 2000
  273. }
  274. ],
  275. "pageSize": 20,
  276. "totalCount": 1,
  277. "totalPages": 1
  278. },
  279. "isAuthorized": true
  280. }
  281. }
  282. },
  283. "headers": {}
  284. }
  285. },
  286. "security": []
  287. }
  288. },
  289. "/api/agent/doDeleteAgent": {
  290. "post": {
  291. "summary": "删除智能体",
  292. "deprecated": false,
  293. "description": "",
  294. "tags": ["Agent"],
  295. "parameters": [
  296. {
  297. "name": "id",
  298. "in": "query",
  299. "description": "",
  300. "required": true,
  301. "schema": {
  302. "type": "string"
  303. }
  304. },
  305. {
  306. "name": "Authorization",
  307. "in": "header",
  308. "description": "",
  309. "example": "bpm_client_1518988661083869184",
  310. "schema": {
  311. "type": "string"
  312. }
  313. }
  314. ],
  315. "responses": {
  316. "200": {
  317. "description": "",
  318. "content": {
  319. "application/json": {
  320. "schema": {
  321. "type": "object",
  322. "properties": {
  323. "isSuccess": {
  324. "type": "boolean"
  325. },
  326. "code": {
  327. "type": "integer"
  328. },
  329. "result": {
  330. "type": "string"
  331. },
  332. "isAuthorized": {
  333. "type": "boolean"
  334. }
  335. },
  336. "required": ["isSuccess", "code", "result", "isAuthorized"]
  337. },
  338. "example": {
  339. "isSuccess": true,
  340. "code": 1,
  341. "isAuthorized": true
  342. }
  343. }
  344. },
  345. "headers": {}
  346. }
  347. },
  348. "security": []
  349. }
  350. },
  351. "/api/ai/agent/suggested-questions": {
  352. "post": {
  353. "summary": "获取智能体建议提问列表",
  354. "deprecated": false,
  355. "description": "",
  356. "tags": ["AgentApplication"],
  357. "parameters": [
  358. {
  359. "name": "Authorization",
  360. "in": "header",
  361. "description": "",
  362. "example": "bpm_client_1518266702310150144",
  363. "schema": {
  364. "type": "string"
  365. }
  366. }
  367. ],
  368. "requestBody": {
  369. "content": {
  370. "application/json": {
  371. "schema": {
  372. "type": "object",
  373. "properties": {
  374. "id": {
  375. "type": "string"
  376. },
  377. "limit": {
  378. "type": "integer"
  379. }
  380. },
  381. "required": ["id", "limit"]
  382. },
  383. "example": {
  384. "id": "7ccae457-69e2-4cf6-9335-a5d1fa052a2b",
  385. "limit": 6
  386. }
  387. }
  388. },
  389. "required": true
  390. },
  391. "responses": {
  392. "200": {
  393. "description": "",
  394. "content": {
  395. "application/json": {
  396. "schema": {
  397. "type": "object",
  398. "properties": {
  399. "isSuccess": {
  400. "type": "boolean"
  401. },
  402. "code": {
  403. "type": "integer"
  404. },
  405. "result": {
  406. "type": "array",
  407. "items": {
  408. "type": "object",
  409. "properties": {
  410. "knowledge_base_id": {
  411. "type": "string"
  412. },
  413. "question": {
  414. "type": "string"
  415. },
  416. "source": {
  417. "type": "string"
  418. }
  419. },
  420. "required": ["knowledge_base_id", "question", "source"]
  421. }
  422. },
  423. "isAuthorized": {
  424. "type": "boolean"
  425. }
  426. },
  427. "required": ["isSuccess", "code", "result", "isAuthorized"]
  428. },
  429. "example": {
  430. "isSuccess": true,
  431. "code": 1,
  432. "result": [
  433. {
  434. "knowledge_base_id": "620a5d3f-29d4-49f4-8dde-5b4c4071eff0",
  435. "question": "介绍一下QueryParam",
  436. "source": "wiki"
  437. },
  438. {
  439. "knowledge_base_id": "620a5d3f-29d4-49f4-8dde-5b4c4071eff0",
  440. "question": "介绍一下ExternalAsynTaskService",
  441. "source": "wiki"
  442. },
  443. {
  444. "knowledge_base_id": "620a5d3f-29d4-49f4-8dde-5b4c4071eff0",
  445. "question": "什么是Asynchronous Task?",
  446. "source": "wiki"
  447. },
  448. {
  449. "knowledge_base_id": "620a5d3f-29d4-49f4-8dde-5b4c4071eff0",
  450. "question": "如何使用Java上传文件并处理响应结果?",
  451. "source": "document"
  452. },
  453. {
  454. "knowledge_base_id": "620a5d3f-29d4-49f4-8dde-5b4c4071eff0",
  455. "question": "什么是框架统一响应数据包结构?",
  456. "source": "wiki"
  457. },
  458. {
  459. "knowledge_base_id": "fdb64e26-b6a7-41b1-ad11-d7039add6661",
  460. "question": "我的快递物流一直不更新怎么办?",
  461. "source": "faq"
  462. }
  463. ],
  464. "isAuthorized": true
  465. }
  466. }
  467. },
  468. "headers": {}
  469. }
  470. },
  471. "security": []
  472. }
  473. },
  474. "/api/openapi/doBatchGenerateUUID": {
  475. "post": {
  476. "summary": "批量生成UUID",
  477. "deprecated": false,
  478. "description": "",
  479. "tags": ["tools"],
  480. "parameters": [
  481. {
  482. "name": "Authorization",
  483. "in": "header",
  484. "description": "",
  485. "example": "bpm_client_1490845225663336448",
  486. "schema": {
  487. "type": "string",
  488. "default": "bpm_client_1490845225663336448"
  489. }
  490. }
  491. ],
  492. "responses": {
  493. "200": {
  494. "description": "",
  495. "content": {
  496. "application/json": {
  497. "schema": {
  498. "type": "object",
  499. "properties": {
  500. "isSuccess": {
  501. "type": "boolean"
  502. },
  503. "code": {
  504. "type": "integer"
  505. },
  506. "result": {
  507. "type": "array",
  508. "items": {
  509. "type": "string"
  510. }
  511. },
  512. "isAuthorized": {
  513. "type": "boolean"
  514. }
  515. },
  516. "required": ["isSuccess", "code", "result", "isAuthorized"]
  517. },
  518. "example": {
  519. "isSuccess": true,
  520. "code": 1,
  521. "result": [
  522. "a33c9f0a-bc3a-4a25-86ba-080ee6772063",
  523. "efab3a9d-e5f6-4339-8d6c-6189b85d984f"
  524. ],
  525. "isAuthorized": true
  526. }
  527. }
  528. },
  529. "headers": {}
  530. }
  531. },
  532. "security": []
  533. }
  534. },
  535. "/api/agent/getAgentList": {
  536. "post": {
  537. "summary": "获取智能体列表",
  538. "deprecated": false,
  539. "description": "",
  540. "tags": ["Agent"],
  541. "parameters": [
  542. {
  543. "name": "pageIndex",
  544. "in": "query",
  545. "description": "",
  546. "required": true,
  547. "example": 1,
  548. "schema": {
  549. "type": "number"
  550. }
  551. },
  552. {
  553. "name": "Authorization",
  554. "in": "header",
  555. "description": "",
  556. "example": "bpm_client_1492899187547705344",
  557. "schema": {
  558. "type": "string",
  559. "default": "bpm_client_1492899187547705344"
  560. }
  561. }
  562. ],
  563. "responses": {
  564. "200": {
  565. "description": "",
  566. "content": {
  567. "application/json": {
  568. "schema": {
  569. "type": "object",
  570. "properties": {
  571. "isSuccess": {
  572. "type": "boolean"
  573. },
  574. "code": {
  575. "type": "integer"
  576. },
  577. "result": {
  578. "type": "object",
  579. "properties": {
  580. "currentPage": {
  581. "type": "integer"
  582. },
  583. "hasNextPage": {
  584. "type": "boolean"
  585. },
  586. "hasPreviousPage": {
  587. "type": "boolean"
  588. },
  589. "model": {
  590. "type": "array",
  591. "items": {
  592. "type": "object",
  593. "properties": {
  594. "conversation_variables": {
  595. "type": "array",
  596. "items": {
  597. "type": "string"
  598. }
  599. },
  600. "env_variables": {
  601. "type": "array",
  602. "items": {
  603. "type": "object",
  604. "properties": {
  605. "name": {
  606. "type": "string"
  607. },
  608. "type": {
  609. "type": "string"
  610. },
  611. "value": {
  612. "type": "string"
  613. }
  614. },
  615. "required": ["name", "type", "value"]
  616. }
  617. },
  618. "id": {
  619. "type": "string"
  620. },
  621. "name": {
  622. "type": "string"
  623. },
  624. "profilePhoto": {
  625. "type": "string"
  626. },
  627. "viewPort": {
  628. "type": "object",
  629. "properties": {
  630. "x": {
  631. "type": "integer"
  632. },
  633. "y": {
  634. "type": "integer"
  635. },
  636. "zoom": {
  637. "type": "integer"
  638. }
  639. },
  640. "required": ["x", "y", "zoom"]
  641. }
  642. },
  643. "required": [
  644. "conversation_variables",
  645. "env_variables",
  646. "id",
  647. "name",
  648. "profilePhoto",
  649. "viewPort"
  650. ]
  651. }
  652. },
  653. "pageSize": {
  654. "type": "integer"
  655. },
  656. "totalCount": {
  657. "type": "integer"
  658. },
  659. "totalPages": {
  660. "type": "integer"
  661. }
  662. },
  663. "required": [
  664. "currentPage",
  665. "hasNextPage",
  666. "hasPreviousPage",
  667. "model",
  668. "pageSize",
  669. "totalCount",
  670. "totalPages"
  671. ]
  672. },
  673. "isAuthorized": {
  674. "type": "boolean"
  675. }
  676. },
  677. "required": ["isSuccess", "code", "result", "isAuthorized"]
  678. },
  679. "example": {
  680. "isSuccess": true,
  681. "code": 1,
  682. "result": {
  683. "currentPage": 1,
  684. "hasNextPage": true,
  685. "hasPreviousPage": false,
  686. "model": [
  687. {
  688. "conversation_variables": [],
  689. "env_variables": [],
  690. "id": "00601f51-1cc8-4370-b2c5-876a970cf43b",
  691. "name": "test2",
  692. "profilePhoto": "111",
  693. "viewPort": {
  694. "x": 0,
  695. "y": 0,
  696. "zoom": 1
  697. }
  698. },
  699. {
  700. "conversation_variables": [],
  701. "env_variables": [],
  702. "id": "06335124-1342-47b8-9720-9a7da7b807aa",
  703. "name": "test2",
  704. "profilePhoto": "asdfasdf",
  705. "viewPort": {
  706. "x": 0,
  707. "y": 0,
  708. "zoom": 1
  709. }
  710. },
  711. {
  712. "conversation_variables": [],
  713. "env_variables": [],
  714. "id": "11b85594-463e-4296-b2bd-9312343750e8",
  715. "name": "test",
  716. "profilePhoto": "111",
  717. "viewPort": {
  718. "x": 0,
  719. "y": 0,
  720. "zoom": 1
  721. }
  722. },
  723. {
  724. "conversation_variables": [],
  725. "env_variables": [],
  726. "id": "45b8d1f1-422c-4e96-95a3-5d3f97f1b46a",
  727. "name": "test1",
  728. "profilePhoto": "sdfasdfaf",
  729. "viewPort": {
  730. "x": 0,
  731. "y": 0,
  732. "zoom": 1
  733. }
  734. },
  735. {
  736. "conversation_variables": [],
  737. "env_variables": [
  738. {
  739. "name": "api_address",
  740. "type": "string",
  741. "value": "http://shalu-componenttesting-admin-dev.shalu.com"
  742. }
  743. ],
  744. "id": "899be084-f363-4275-b5ba-7ddbb1ca8bef",
  745. "name": "test3",
  746. "profilePhoto": "11",
  747. "viewPort": {
  748. "x": 0,
  749. "y": 0,
  750. "zoom": 1
  751. }
  752. },
  753. {
  754. "conversation_variables": [],
  755. "env_variables": [
  756. {
  757. "name": "test",
  758. "type": "string",
  759. "value": "aaaa"
  760. },
  761. {
  762. "name": "bbb",
  763. "type": "string",
  764. "value": "afasdf"
  765. },
  766. {
  767. "name": "test",
  768. "type": "string",
  769. "value": "aaaa"
  770. },
  771. {
  772. "name": "test22",
  773. "type": "string",
  774. "value": "344334"
  775. }
  776. ],
  777. "id": "8ad90e7a-cd4d-432a-83f5-49ba43ddd59d",
  778. "name": "test1",
  779. "profilePhoto": "22",
  780. "viewPort": {
  781. "x": 0,
  782. "y": 0,
  783. "zoom": 1
  784. }
  785. },
  786. {
  787. "conversation_variables": [],
  788. "env_variables": [
  789. {
  790. "name": "api_address",
  791. "type": "string",
  792. "value": "http://shalu-componenttesting-admin-dev.shalu.com"
  793. }
  794. ],
  795. "id": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  796. "name": "测试智能体",
  797. "profilePhoto": "1111",
  798. "viewPort": {
  799. "x": 10,
  800. "y": 10,
  801. "zoom": 1
  802. }
  803. },
  804. {
  805. "conversation_variables": [],
  806. "env_variables": [],
  807. "id": "d576a5a3-204b-4233-af8d-4358c774cc57",
  808. "name": "test",
  809. "profilePhoto": "232323",
  810. "viewPort": {
  811. "x": 0,
  812. "y": 0,
  813. "zoom": 1
  814. }
  815. },
  816. {
  817. "conversation_variables": [],
  818. "env_variables": [],
  819. "id": "e0a7e5e0-7923-4607-a60a-0dc35f0d7797",
  820. "name": "222",
  821. "profilePhoto": "sdfasdf",
  822. "viewPort": {
  823. "x": 0,
  824. "y": 0,
  825. "zoom": 1
  826. }
  827. }
  828. ],
  829. "pageSize": 20,
  830. "totalCount": 9,
  831. "totalPages": 1
  832. },
  833. "isAuthorized": true
  834. }
  835. }
  836. },
  837. "headers": {}
  838. }
  839. },
  840. "security": []
  841. }
  842. },
  843. "/api/agent/doEditAgent": {
  844. "post": {
  845. "summary": "智能体编辑",
  846. "deprecated": false,
  847. "description": "",
  848. "tags": ["Agent"],
  849. "parameters": [
  850. {
  851. "name": "Authorization",
  852. "in": "header",
  853. "description": "",
  854. "example": "bpm_client_1492899187547705344",
  855. "schema": {
  856. "type": "string",
  857. "default": "bpm_client_1492899187547705344"
  858. }
  859. }
  860. ],
  861. "responses": {
  862. "200": {
  863. "description": "",
  864. "content": {
  865. "application/json": {
  866. "schema": {
  867. "type": "object",
  868. "properties": {
  869. "isSuccess": {
  870. "type": "boolean"
  871. },
  872. "code": {
  873. "type": "integer"
  874. },
  875. "result": {
  876. "type": "string"
  877. },
  878. "isAuthorized": {
  879. "type": "boolean"
  880. }
  881. },
  882. "required": ["isSuccess", "code", "result", "isAuthorized"]
  883. },
  884. "example": {
  885. "isSuccess": true,
  886. "code": 1,
  887. "result": "20d31522-66e7-463e-81d7-7fb7fd5864f7",
  888. "isAuthorized": true
  889. }
  890. }
  891. },
  892. "headers": {}
  893. }
  894. },
  895. "security": []
  896. }
  897. },
  898. "/api/agent/doSaveAgentVariables": {
  899. "post": {
  900. "summary": "保存智能体变量",
  901. "deprecated": false,
  902. "description": "",
  903. "tags": ["Agent"],
  904. "parameters": [
  905. {
  906. "name": "Authorization",
  907. "in": "header",
  908. "description": "",
  909. "example": "bpm_client_1492899187547705344",
  910. "schema": {
  911. "type": "string",
  912. "default": "bpm_client_1492899187547705344"
  913. }
  914. }
  915. ],
  916. "requestBody": {
  917. "content": {
  918. "application/json": {
  919. "schema": {
  920. "type": "object",
  921. "properties": {
  922. "appAgentId": {
  923. "type": "string"
  924. },
  925. "conversation_variables": {
  926. "type": "array",
  927. "items": {
  928. "type": "string"
  929. }
  930. },
  931. "env_variables": {
  932. "type": "array",
  933. "items": {
  934. "type": "object",
  935. "properties": {
  936. "name": {
  937. "type": "string"
  938. },
  939. "value": {
  940. "type": "string"
  941. },
  942. "type": {
  943. "type": "string"
  944. }
  945. }
  946. }
  947. }
  948. },
  949. "required": ["appAgentId", "conversation_variables", "env_variables"]
  950. },
  951. "example": {
  952. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  953. "conversation_variables": [],
  954. "env_variables": [
  955. {
  956. "name": "api_address",
  957. "value": "http://shalu-componenttesting-admin-dev.shalu.com",
  958. "type": "string"
  959. }
  960. ]
  961. }
  962. }
  963. },
  964. "required": true
  965. },
  966. "responses": {
  967. "200": {
  968. "description": "",
  969. "content": {
  970. "application/json": {
  971. "schema": {
  972. "type": "object",
  973. "properties": {
  974. "isSuccess": {
  975. "type": "boolean"
  976. },
  977. "code": {
  978. "type": "integer"
  979. },
  980. "result": {
  981. "type": "string"
  982. },
  983. "isAuthorized": {
  984. "type": "boolean"
  985. }
  986. },
  987. "required": ["isSuccess", "code", "result", "isAuthorized"]
  988. },
  989. "example": {
  990. "isSuccess": true,
  991. "code": 1,
  992. "isAuthorized": true
  993. }
  994. }
  995. },
  996. "headers": {}
  997. }
  998. },
  999. "security": []
  1000. }
  1001. },
  1002. "/api/agent/getAgentInfo": {
  1003. "post": {
  1004. "summary": "获取智能体信息",
  1005. "deprecated": false,
  1006. "description": "",
  1007. "tags": ["Agent"],
  1008. "parameters": [
  1009. {
  1010. "name": "Authorization",
  1011. "in": "header",
  1012. "description": "",
  1013. "example": "bpm_client_1492899187547705344",
  1014. "schema": {
  1015. "type": "string",
  1016. "default": "bpm_client_1492899187547705344"
  1017. }
  1018. }
  1019. ],
  1020. "requestBody": {
  1021. "content": {
  1022. "application/json": {
  1023. "schema": {
  1024. "type": "object",
  1025. "properties": {
  1026. "id": {
  1027. "type": "string"
  1028. }
  1029. },
  1030. "required": ["id"]
  1031. },
  1032. "example": {
  1033. "id": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8"
  1034. }
  1035. }
  1036. },
  1037. "required": true
  1038. },
  1039. "responses": {
  1040. "200": {
  1041. "description": "",
  1042. "content": {
  1043. "application/json": {
  1044. "schema": {
  1045. "type": "object",
  1046. "properties": {
  1047. "isSuccess": {
  1048. "type": "boolean"
  1049. },
  1050. "code": {
  1051. "type": "integer"
  1052. },
  1053. "result": {
  1054. "type": "object",
  1055. "properties": {
  1056. "conversation_variables": {
  1057. "type": "array",
  1058. "items": {
  1059. "type": "string"
  1060. }
  1061. },
  1062. "edges": {
  1063. "type": "array",
  1064. "items": {
  1065. "type": "object",
  1066. "properties": {
  1067. "appAgentId": {
  1068. "type": "string"
  1069. },
  1070. "creationTime": {
  1071. "type": "string"
  1072. },
  1073. "data": {
  1074. "type": "object",
  1075. "properties": {
  1076. "isInLoop": {
  1077. "type": "boolean"
  1078. },
  1079. "sourceType": {
  1080. "type": "string"
  1081. },
  1082. "targetType": {
  1083. "type": "string"
  1084. }
  1085. },
  1086. "required": ["isInLoop", "sourceType", "targetType"]
  1087. },
  1088. "id": {
  1089. "type": "string"
  1090. },
  1091. "isDeleted": {
  1092. "type": "boolean"
  1093. },
  1094. "selected": {
  1095. "type": "boolean"
  1096. },
  1097. "source": {
  1098. "type": "string"
  1099. },
  1100. "sourceHandle": {
  1101. "type": "string"
  1102. },
  1103. "target": {
  1104. "type": "string"
  1105. },
  1106. "targetHandle": {
  1107. "type": "string"
  1108. },
  1109. "type": {
  1110. "type": "string"
  1111. },
  1112. "updateTime": {
  1113. "type": "string"
  1114. },
  1115. "zIndex": {
  1116. "type": "integer"
  1117. }
  1118. },
  1119. "required": [
  1120. "appAgentId",
  1121. "creationTime",
  1122. "data",
  1123. "id",
  1124. "isDeleted",
  1125. "selected",
  1126. "source",
  1127. "sourceHandle",
  1128. "target",
  1129. "targetHandle",
  1130. "type",
  1131. "updateTime",
  1132. "zIndex"
  1133. ]
  1134. }
  1135. },
  1136. "env_variables": {
  1137. "type": "array",
  1138. "items": {
  1139. "type": "object",
  1140. "properties": {
  1141. "is_require": {
  1142. "type": "boolean"
  1143. },
  1144. "name": {
  1145. "type": "string"
  1146. },
  1147. "type": {
  1148. "type": "string"
  1149. },
  1150. "value": {
  1151. "type": "string"
  1152. }
  1153. }
  1154. }
  1155. },
  1156. "id": {
  1157. "type": "string"
  1158. },
  1159. "name": {
  1160. "type": "string"
  1161. },
  1162. "nodes": {
  1163. "type": "array",
  1164. "items": {
  1165. "type": "object",
  1166. "properties": {
  1167. "appAgentId": {
  1168. "type": "string"
  1169. },
  1170. "creationTime": {
  1171. "type": "string"
  1172. },
  1173. "creatorUserId": {
  1174. "type": "string"
  1175. },
  1176. "data": {
  1177. "type": "object",
  1178. "properties": {
  1179. "outputs": {
  1180. "type": "array",
  1181. "items": {
  1182. "type": "object",
  1183. "properties": {
  1184. "name": {
  1185. "type": "string"
  1186. },
  1187. "describe": {
  1188. "type": "string"
  1189. },
  1190. "is_require": {
  1191. "type": "boolean"
  1192. },
  1193. "type": {
  1194. "type": "string"
  1195. }
  1196. },
  1197. "required": ["name", "describe", "is_require", "type"]
  1198. }
  1199. },
  1200. "bodyType": {
  1201. "type": "string"
  1202. },
  1203. "exception": {
  1204. "type": "string"
  1205. },
  1206. "ssl_verify": {
  1207. "type": "boolean"
  1208. },
  1209. "body": {
  1210. "type": "object",
  1211. "properties": {
  1212. "data": {
  1213. "type": "array",
  1214. "items": {
  1215. "type": "object",
  1216. "properties": {
  1217. "type": {
  1218. "type": "string"
  1219. },
  1220. "value": {
  1221. "type": "string"
  1222. },
  1223. "key": {
  1224. "type": "string"
  1225. }
  1226. },
  1227. "required": ["type", "value", "key"]
  1228. }
  1229. },
  1230. "type": {
  1231. "type": "string"
  1232. }
  1233. },
  1234. "required": ["data", "type"]
  1235. },
  1236. "title": {
  1237. "type": "string"
  1238. },
  1239. "type": {
  1240. "type": "string"
  1241. },
  1242. "error_strategy": {
  1243. "type": "string"
  1244. },
  1245. "retry_config": {
  1246. "type": "object",
  1247. "properties": {
  1248. "max_retries": {
  1249. "type": "integer"
  1250. },
  1251. "retry_enabled": {
  1252. "type": "boolean"
  1253. },
  1254. "retry_interval": {
  1255. "type": "integer"
  1256. }
  1257. },
  1258. "required": ["max_retries", "retry_enabled", "retry_interval"]
  1259. },
  1260. "authorization": {
  1261. "type": "object",
  1262. "properties": {
  1263. "type": {
  1264. "type": "string"
  1265. },
  1266. "config": {
  1267. "type": "object",
  1268. "properties": {
  1269. "api_key": {
  1270. "type": "string"
  1271. },
  1272. "header": {
  1273. "type": "string"
  1274. },
  1275. "type": {
  1276. "type": "string"
  1277. }
  1278. },
  1279. "required": ["api_key", "header", "type"]
  1280. }
  1281. },
  1282. "required": ["type", "config"]
  1283. },
  1284. "output": {
  1285. "type": "object",
  1286. "properties": {
  1287. "headers": {
  1288. "type": "array",
  1289. "items": {
  1290. "type": "string"
  1291. }
  1292. },
  1293. "status_code": {
  1294. "type": "integer"
  1295. },
  1296. "files": {
  1297. "type": "array",
  1298. "items": {
  1299. "type": "string"
  1300. }
  1301. },
  1302. "body": {
  1303. "type": "string"
  1304. }
  1305. },
  1306. "required": ["headers", "status_code", "files", "body"]
  1307. },
  1308. "timeout_config": {
  1309. "type": "object",
  1310. "properties": {
  1311. "max_write_timeout": {
  1312. "type": "integer"
  1313. },
  1314. "max_read_timeout": {
  1315. "type": "integer"
  1316. },
  1317. "max_connect_timeout": {
  1318. "type": "integer"
  1319. }
  1320. },
  1321. "required": [
  1322. "max_write_timeout",
  1323. "max_read_timeout",
  1324. "max_connect_timeout"
  1325. ]
  1326. },
  1327. "exceptionDefaultValue": {
  1328. "type": "object",
  1329. "properties": {
  1330. "headers": {
  1331. "type": "string"
  1332. },
  1333. "status_code": {
  1334. "type": "integer"
  1335. },
  1336. "body": {
  1337. "type": "string"
  1338. }
  1339. },
  1340. "required": ["headers", "status_code", "body"]
  1341. },
  1342. "id": {
  1343. "type": "string"
  1344. },
  1345. "selected": {
  1346. "type": "boolean"
  1347. },
  1348. "height": {
  1349. "type": "integer"
  1350. },
  1351. "errorConfig": {
  1352. "type": "object",
  1353. "properties": {
  1354. "retry_delay": {
  1355. "type": "integer"
  1356. },
  1357. "retry": {
  1358. "type": "boolean"
  1359. },
  1360. "max_retry": {
  1361. "type": "integer"
  1362. }
  1363. },
  1364. "required": ["retry_delay", "retry", "max_retry"]
  1365. },
  1366. "output_can_alter": {
  1367. "type": "boolean"
  1368. },
  1369. "timeoutConfig": {
  1370. "type": "object",
  1371. "properties": {
  1372. "read": {
  1373. "type": "integer"
  1374. },
  1375. "write": {
  1376. "type": "integer"
  1377. },
  1378. "connect": {
  1379. "type": "integer"
  1380. }
  1381. },
  1382. "required": ["read", "write", "connect"]
  1383. },
  1384. "variables": {
  1385. "type": "array",
  1386. "items": {
  1387. "type": "object",
  1388. "properties": {
  1389. "name": {
  1390. "type": "string"
  1391. },
  1392. "type": {
  1393. "type": "string"
  1394. },
  1395. "value": {
  1396. "type": "string"
  1397. }
  1398. },
  1399. "required": ["name", "type", "value"]
  1400. }
  1401. },
  1402. "method": {
  1403. "type": "string"
  1404. },
  1405. "isInIteration": {
  1406. "type": "boolean"
  1407. },
  1408. "default_value": {
  1409. "type": "array",
  1410. "items": {
  1411. "type": "string"
  1412. }
  1413. },
  1414. "params": {
  1415. "type": "array",
  1416. "items": {
  1417. "type": "string"
  1418. }
  1419. },
  1420. "nodeType": {
  1421. "type": "string"
  1422. },
  1423. "url": {
  1424. "type": "string"
  1425. },
  1426. "width": {
  1427. "type": "integer"
  1428. },
  1429. "verifySSL": {
  1430. "type": "boolean"
  1431. },
  1432. "heads": {
  1433. "type": "array",
  1434. "items": {
  1435. "type": "string"
  1436. }
  1437. },
  1438. "position": {
  1439. "type": "object",
  1440. "properties": {
  1441. "x": {
  1442. "type": "integer"
  1443. },
  1444. "y": {
  1445. "type": "integer"
  1446. }
  1447. },
  1448. "required": ["x", "y"]
  1449. },
  1450. "desc": {
  1451. "type": "string"
  1452. },
  1453. "isInLoop": {
  1454. "type": "boolean"
  1455. },
  1456. "filter_by": {
  1457. "type": "object",
  1458. "properties": {
  1459. "conditions": {
  1460. "type": "array",
  1461. "items": {
  1462. "type": "object",
  1463. "properties": {
  1464. "varType": {
  1465. "type": "string"
  1466. },
  1467. "comparison_operator": {
  1468. "type": "string"
  1469. },
  1470. "right_value": {
  1471. "type": "string"
  1472. }
  1473. }
  1474. }
  1475. },
  1476. "enabled": {
  1477. "type": "boolean"
  1478. }
  1479. },
  1480. "required": ["conditions", "enabled"]
  1481. },
  1482. "limit": {
  1483. "type": "object",
  1484. "properties": {
  1485. "size": {
  1486. "type": "integer"
  1487. },
  1488. "enabled": {
  1489. "type": "boolean"
  1490. }
  1491. },
  1492. "required": ["size", "enabled"]
  1493. },
  1494. "order_by": {
  1495. "type": "object",
  1496. "properties": {
  1497. "value": {
  1498. "type": "string"
  1499. },
  1500. "enabled": {
  1501. "type": "boolean"
  1502. },
  1503. "key": {
  1504. "type": "string"
  1505. }
  1506. },
  1507. "required": ["value", "enabled", "key"]
  1508. },
  1509. "extract_by": {
  1510. "type": "object",
  1511. "properties": {
  1512. "serial": {
  1513. "type": "string"
  1514. },
  1515. "enabled": {
  1516. "type": "boolean"
  1517. }
  1518. },
  1519. "required": ["serial", "enabled"]
  1520. },
  1521. "code": {
  1522. "type": "string"
  1523. },
  1524. "code_language": {
  1525. "type": "string"
  1526. },
  1527. "cases": {
  1528. "type": "array",
  1529. "items": {
  1530. "type": "object",
  1531. "properties": {
  1532. "logical_operator": {
  1533. "type": "string"
  1534. },
  1535. "id": {
  1536. "type": "string"
  1537. },
  1538. "conditions": {
  1539. "type": "array",
  1540. "items": {
  1541. "type": "object",
  1542. "properties": {
  1543. "varType": {
  1544. "type": "string"
  1545. },
  1546. "left_value": {
  1547. "type": "string"
  1548. },
  1549. "comparison_operator": {
  1550. "type": "string"
  1551. },
  1552. "right_value": {
  1553. "type": "string"
  1554. }
  1555. },
  1556. "required": [
  1557. "varType",
  1558. "left_value",
  1559. "comparison_operator",
  1560. "right_value"
  1561. ]
  1562. }
  1563. }
  1564. },
  1565. "required": ["logical_operator", "id", "conditions"]
  1566. }
  1567. }
  1568. },
  1569. "required": [
  1570. "outputs",
  1571. "bodyType",
  1572. "exception",
  1573. "ssl_verify",
  1574. "body",
  1575. "title",
  1576. "type",
  1577. "error_strategy",
  1578. "retry_config",
  1579. "authorization",
  1580. "output",
  1581. "timeout_config",
  1582. "exceptionDefaultValue",
  1583. "id",
  1584. "selected",
  1585. "height",
  1586. "errorConfig",
  1587. "output_can_alter",
  1588. "timeoutConfig",
  1589. "variables",
  1590. "method",
  1591. "isInIteration",
  1592. "default_value",
  1593. "params",
  1594. "nodeType",
  1595. "url",
  1596. "width",
  1597. "verifySSL",
  1598. "heads",
  1599. "position",
  1600. "desc",
  1601. "isInLoop"
  1602. ]
  1603. },
  1604. "height": {
  1605. "type": "integer"
  1606. },
  1607. "id": {
  1608. "type": "string"
  1609. },
  1610. "isDeleted": {
  1611. "type": "boolean"
  1612. },
  1613. "position": {
  1614. "type": "object",
  1615. "properties": {
  1616. "x": {
  1617. "type": "integer"
  1618. },
  1619. "y": {
  1620. "type": "integer"
  1621. }
  1622. },
  1623. "required": ["x", "y"]
  1624. },
  1625. "selected": {
  1626. "type": "boolean"
  1627. },
  1628. "type": {
  1629. "type": "string"
  1630. },
  1631. "updateTime": {
  1632. "type": "string"
  1633. },
  1634. "width": {
  1635. "type": "integer"
  1636. },
  1637. "zIndex": {
  1638. "type": "integer"
  1639. },
  1640. "deleterUserId": {
  1641. "type": "string"
  1642. },
  1643. "deletionTime": {
  1644. "type": "string"
  1645. }
  1646. },
  1647. "required": [
  1648. "appAgentId",
  1649. "creationTime",
  1650. "creatorUserId",
  1651. "data",
  1652. "height",
  1653. "id",
  1654. "isDeleted",
  1655. "position",
  1656. "selected",
  1657. "type",
  1658. "updateTime",
  1659. "width",
  1660. "zIndex"
  1661. ]
  1662. }
  1663. },
  1664. "profilePhoto": {
  1665. "type": "string"
  1666. },
  1667. "viewPort": {
  1668. "type": "object",
  1669. "properties": {
  1670. "x": {
  1671. "type": "integer"
  1672. },
  1673. "y": {
  1674. "type": "integer"
  1675. },
  1676. "zoom": {
  1677. "type": "integer"
  1678. }
  1679. },
  1680. "required": ["x", "y", "zoom"]
  1681. }
  1682. },
  1683. "required": [
  1684. "conversation_variables",
  1685. "edges",
  1686. "env_variables",
  1687. "id",
  1688. "name",
  1689. "nodes",
  1690. "profilePhoto",
  1691. "viewPort"
  1692. ]
  1693. },
  1694. "isAuthorized": {
  1695. "type": "boolean"
  1696. }
  1697. },
  1698. "required": ["isSuccess", "code", "result", "isAuthorized"]
  1699. },
  1700. "example": {
  1701. "isSuccess": true,
  1702. "code": 1,
  1703. "result": {
  1704. "conversation_variables": [],
  1705. "edges": [
  1706. {
  1707. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  1708. "creationTime": "2026-03-02 17:55:12",
  1709. "data": {
  1710. "isInLoop": false,
  1711. "sourceType": "if-else",
  1712. "targetType": "list-operator"
  1713. },
  1714. "id": "7e6724f3-296b-4390-99cf-d8f680f80bc4",
  1715. "isDeleted": false,
  1716. "selected": false,
  1717. "source": "de35b389-3782-474c-9dd9-cb1356dea54b",
  1718. "sourceHandle": "c2cb978e-fce8-11f0-a59d-266b7b87fca6-1",
  1719. "target": "6764ede2-2c3d-46bb-ae9a-fb0a892aff84",
  1720. "targetHandle": "target",
  1721. "type": "custom",
  1722. "updateTime": "2026-03-02 17:55:12",
  1723. "zIndex": 0
  1724. },
  1725. {
  1726. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  1727. "creationTime": "2026-03-03 11:34:27",
  1728. "data": {
  1729. "isInLoop": false,
  1730. "sourceType": "http-request",
  1731. "targetType": "code"
  1732. },
  1733. "id": "b81ae979-bf7c-412f-9fa3-948094be68d3",
  1734. "isDeleted": false,
  1735. "selected": true,
  1736. "source": "492048da-6f33-4a36-adc5-cff4b973b053",
  1737. "sourceHandle": "source",
  1738. "target": "c91eb026-e86a-418f-a865-a98aa60bcf19",
  1739. "targetHandle": "target",
  1740. "type": "custom",
  1741. "updateTime": "2026-03-03 11:34:27",
  1742. "zIndex": 0
  1743. }
  1744. ],
  1745. "env_variables": [
  1746. {
  1747. "is_require": false,
  1748. "name": "api_address",
  1749. "type": "string",
  1750. "value": "http://shalu-componenttesting-admin-dev.shalu.com"
  1751. }
  1752. ],
  1753. "id": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  1754. "name": "测试智能体",
  1755. "nodes": [
  1756. {
  1757. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  1758. "creationTime": "2026-02-24 16:44:21",
  1759. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  1760. "data": {
  1761. "outputs": [
  1762. {
  1763. "name": "body",
  1764. "describe": "响应内容",
  1765. "is_require": false,
  1766. "type": "string"
  1767. },
  1768. {
  1769. "name": "status_code",
  1770. "describe": "响应状态码",
  1771. "is_require": false,
  1772. "type": "number"
  1773. },
  1774. {
  1775. "name": "headers",
  1776. "describe": "响应头列表 JSON",
  1777. "is_require": false,
  1778. "type": "object"
  1779. }
  1780. ],
  1781. "bodyType": "json",
  1782. "exception": "none",
  1783. "ssl_verify": false,
  1784. "body": {
  1785. "data": [
  1786. {
  1787. "type": "text",
  1788. "value": "",
  1789. "key": ""
  1790. }
  1791. ],
  1792. "type": "json"
  1793. },
  1794. "title": "HTTP 请求",
  1795. "type": "http-request",
  1796. "error_strategy": "none",
  1797. "retry_config": {
  1798. "max_retries": 3,
  1799. "retry_enabled": false,
  1800. "retry_interval": 100
  1801. },
  1802. "authorization": {
  1803. "type": "none",
  1804. "config": {}
  1805. },
  1806. "output": {
  1807. "headers": [],
  1808. "status_code": 200,
  1809. "files": [],
  1810. "body": ""
  1811. },
  1812. "timeout_config": {
  1813. "max_write_timeout": 1,
  1814. "max_read_timeout": 1,
  1815. "max_connect_timeout": 1
  1816. },
  1817. "exceptionDefaultValue": {
  1818. "headers": "{}",
  1819. "status_code": 0,
  1820. "body": ""
  1821. },
  1822. "id": "03d43e1a-5e10-4456-a188-c5507ef373ee",
  1823. "selected": false,
  1824. "height": 96,
  1825. "errorConfig": {
  1826. "retry_delay": 100,
  1827. "retry": false,
  1828. "max_retry": 3
  1829. },
  1830. "output_can_alter": false,
  1831. "timeoutConfig": {
  1832. "read": 1,
  1833. "write": 1,
  1834. "connect": 1
  1835. },
  1836. "variables": [],
  1837. "method": "get",
  1838. "isInIteration": false,
  1839. "default_value": [],
  1840. "params": [],
  1841. "nodeType": "http-request",
  1842. "url": "1",
  1843. "width": 96,
  1844. "verifySSL": false,
  1845. "heads": [],
  1846. "position": {
  1847. "x": 256,
  1848. "y": -560
  1849. },
  1850. "desc": "",
  1851. "isInLoop": false
  1852. },
  1853. "height": 96,
  1854. "id": "03d43e1a-5e10-4456-a188-c5507ef373ee",
  1855. "isDeleted": false,
  1856. "position": {
  1857. "x": 288,
  1858. "y": -496
  1859. },
  1860. "selected": false,
  1861. "type": "custom",
  1862. "updateTime": "2026-02-24 17:02:57",
  1863. "width": 96,
  1864. "zIndex": 1
  1865. },
  1866. {
  1867. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  1868. "creationTime": "2026-02-24 16:44:03",
  1869. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  1870. "data": {
  1871. "outputs": [
  1872. {
  1873. "name": "body",
  1874. "describe": "响应内容",
  1875. "is_require": false,
  1876. "type": "string"
  1877. },
  1878. {
  1879. "name": "status_code",
  1880. "describe": "响应状态码",
  1881. "is_require": false,
  1882. "type": "number"
  1883. },
  1884. {
  1885. "name": "headers",
  1886. "describe": "响应头列表 JSON",
  1887. "is_require": false,
  1888. "type": "object"
  1889. }
  1890. ],
  1891. "bodyType": "json",
  1892. "exception": "none",
  1893. "ssl_verify": false,
  1894. "body": {
  1895. "data": [
  1896. {
  1897. "type": "text",
  1898. "value": "",
  1899. "key": ""
  1900. }
  1901. ],
  1902. "type": "json"
  1903. },
  1904. "title": "HTTP 请求",
  1905. "type": "http-request",
  1906. "error_strategy": "none",
  1907. "retry_config": {
  1908. "max_retries": 3,
  1909. "retry_enabled": false,
  1910. "retry_interval": 100
  1911. },
  1912. "authorization": {
  1913. "type": "none",
  1914. "config": {}
  1915. },
  1916. "output": {
  1917. "headers": [],
  1918. "status_code": 200,
  1919. "files": [],
  1920. "body": ""
  1921. },
  1922. "timeout_config": {
  1923. "max_write_timeout": 1,
  1924. "max_read_timeout": 1,
  1925. "max_connect_timeout": 1
  1926. },
  1927. "exceptionDefaultValue": {
  1928. "headers": "{}",
  1929. "status_code": 0,
  1930. "body": ""
  1931. },
  1932. "id": "094df381-3fb4-4a24-a47a-32540ff8a30f",
  1933. "selected": false,
  1934. "height": 96,
  1935. "errorConfig": {
  1936. "retry_delay": 100,
  1937. "retry": false,
  1938. "max_retry": 3
  1939. },
  1940. "output_can_alter": false,
  1941. "timeoutConfig": {
  1942. "read": 1,
  1943. "write": 1,
  1944. "connect": 1
  1945. },
  1946. "variables": [],
  1947. "method": "get",
  1948. "isInIteration": false,
  1949. "default_value": [],
  1950. "params": [],
  1951. "nodeType": "http-request",
  1952. "url": "",
  1953. "width": 96,
  1954. "verifySSL": false,
  1955. "heads": [],
  1956. "position": {
  1957. "x": -192,
  1958. "y": -560
  1959. },
  1960. "desc": "",
  1961. "isInLoop": false
  1962. },
  1963. "height": 96,
  1964. "id": "094df381-3fb4-4a24-a47a-32540ff8a30f",
  1965. "isDeleted": false,
  1966. "position": {
  1967. "x": -192,
  1968. "y": -560
  1969. },
  1970. "selected": false,
  1971. "type": "custom",
  1972. "updateTime": "2026-02-24 17:07:33",
  1973. "width": 96,
  1974. "zIndex": 1
  1975. },
  1976. {
  1977. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  1978. "creationTime": "2026-02-24 16:36:51",
  1979. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  1980. "data": {
  1981. "outputs": [
  1982. {
  1983. "name": "body",
  1984. "describe": "响应内容",
  1985. "is_require": false,
  1986. "type": "string"
  1987. },
  1988. {
  1989. "name": "status_code",
  1990. "describe": "响应状态码",
  1991. "is_require": false,
  1992. "type": "number"
  1993. },
  1994. {
  1995. "name": "headers",
  1996. "describe": "响应头列表 JSON",
  1997. "is_require": false,
  1998. "type": "object"
  1999. }
  2000. ],
  2001. "bodyType": "json",
  2002. "exception": "none",
  2003. "ssl_verify": false,
  2004. "body": {
  2005. "data": [
  2006. {
  2007. "type": "text",
  2008. "value": "",
  2009. "key": ""
  2010. }
  2011. ],
  2012. "type": "json"
  2013. },
  2014. "title": "HTTP 请求",
  2015. "type": "http-request",
  2016. "error_strategy": "none",
  2017. "retry_config": {
  2018. "max_retries": 3,
  2019. "retry_enabled": false,
  2020. "retry_interval": 100
  2021. },
  2022. "authorization": {
  2023. "type": "none",
  2024. "config": {}
  2025. },
  2026. "output": {
  2027. "headers": [],
  2028. "status_code": 200,
  2029. "files": [],
  2030. "body": ""
  2031. },
  2032. "timeout_config": {
  2033. "max_write_timeout": 1,
  2034. "max_read_timeout": 1,
  2035. "max_connect_timeout": 1
  2036. },
  2037. "exceptionDefaultValue": {
  2038. "headers": "{}",
  2039. "status_code": 0,
  2040. "body": ""
  2041. },
  2042. "id": "0f5242d7-67c4-4181-aa92-135ad2ee7049",
  2043. "selected": false,
  2044. "height": 96,
  2045. "errorConfig": {
  2046. "retry_delay": 100,
  2047. "retry": false,
  2048. "max_retry": 3
  2049. },
  2050. "output_can_alter": false,
  2051. "timeoutConfig": {
  2052. "read": 1,
  2053. "write": 1,
  2054. "connect": 1
  2055. },
  2056. "variables": [],
  2057. "method": "get",
  2058. "isInIteration": false,
  2059. "default_value": [],
  2060. "params": [],
  2061. "nodeType": "http-request",
  2062. "url": "13",
  2063. "width": 96,
  2064. "verifySSL": false,
  2065. "heads": [],
  2066. "position": {
  2067. "x": 1008,
  2068. "y": -80
  2069. },
  2070. "desc": "",
  2071. "isInLoop": false
  2072. },
  2073. "height": 96,
  2074. "id": "0f5242d7-67c4-4181-aa92-135ad2ee7049",
  2075. "isDeleted": false,
  2076. "position": {
  2077. "x": 816,
  2078. "y": -352
  2079. },
  2080. "selected": false,
  2081. "type": "custom",
  2082. "updateTime": "2026-02-24 17:01:59",
  2083. "width": 96,
  2084. "zIndex": 1
  2085. },
  2086. {
  2087. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2088. "creationTime": "2026-02-24 16:40:29",
  2089. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  2090. "data": {
  2091. "outputs": [
  2092. {
  2093. "name": "body",
  2094. "describe": "响应内容",
  2095. "is_require": false,
  2096. "type": "string"
  2097. },
  2098. {
  2099. "name": "status_code",
  2100. "describe": "响应状态码",
  2101. "is_require": false,
  2102. "type": "number"
  2103. },
  2104. {
  2105. "name": "headers",
  2106. "describe": "响应头列表 JSON",
  2107. "is_require": false,
  2108. "type": "object"
  2109. }
  2110. ],
  2111. "bodyType": "json",
  2112. "exception": "none",
  2113. "ssl_verify": false,
  2114. "body": {
  2115. "data": [
  2116. {
  2117. "type": "text",
  2118. "value": "",
  2119. "key": ""
  2120. }
  2121. ],
  2122. "type": "json"
  2123. },
  2124. "title": "HTTP 请求",
  2125. "type": "http-request",
  2126. "error_strategy": "none",
  2127. "retry_config": {
  2128. "max_retries": 3,
  2129. "retry_enabled": false,
  2130. "retry_interval": 100
  2131. },
  2132. "authorization": {
  2133. "type": "none",
  2134. "config": {}
  2135. },
  2136. "output": {
  2137. "headers": [],
  2138. "status_code": 200,
  2139. "files": [],
  2140. "body": ""
  2141. },
  2142. "timeout_config": {
  2143. "max_write_timeout": 1,
  2144. "max_read_timeout": 1,
  2145. "max_connect_timeout": 1
  2146. },
  2147. "exceptionDefaultValue": {
  2148. "headers": "{}",
  2149. "status_code": 0,
  2150. "body": ""
  2151. },
  2152. "id": "3b9c1266-2120-4df8-a1fe-f31b90890f1a",
  2153. "selected": false,
  2154. "height": 96,
  2155. "errorConfig": {
  2156. "retry_delay": 100,
  2157. "retry": false,
  2158. "max_retry": 3
  2159. },
  2160. "output_can_alter": false,
  2161. "timeoutConfig": {
  2162. "read": 1,
  2163. "write": 1,
  2164. "connect": 1
  2165. },
  2166. "variables": [],
  2167. "method": "get",
  2168. "isInIteration": false,
  2169. "default_value": [],
  2170. "params": [],
  2171. "nodeType": "http-request",
  2172. "url": "123",
  2173. "width": 96,
  2174. "verifySSL": false,
  2175. "heads": [],
  2176. "position": {
  2177. "x": -560,
  2178. "y": -16
  2179. },
  2180. "desc": "",
  2181. "isInLoop": false
  2182. },
  2183. "height": 96,
  2184. "id": "3b9c1266-2120-4df8-a1fe-f31b90890f1a",
  2185. "isDeleted": false,
  2186. "position": {
  2187. "x": -560,
  2188. "y": -16
  2189. },
  2190. "selected": false,
  2191. "type": "custom",
  2192. "updateTime": "2026-02-25 11:01:24",
  2193. "width": 96,
  2194. "zIndex": 1
  2195. },
  2196. {
  2197. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2198. "creationTime": "2026-01-28 10:24:45",
  2199. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  2200. "data": {
  2201. "outputs": [
  2202. {
  2203. "name": "body",
  2204. "describe": "响应内容",
  2205. "type": "string"
  2206. },
  2207. {
  2208. "name": "status_code",
  2209. "describe": "响应状态码",
  2210. "type": "number"
  2211. },
  2212. {
  2213. "name": "headers",
  2214. "describe": "响应头列表 JSON",
  2215. "type": "object"
  2216. }
  2217. ],
  2218. "bodyType": "json",
  2219. "exception": "none",
  2220. "ssl_verify": false,
  2221. "body": {
  2222. "data": [
  2223. {
  2224. "type": "text",
  2225. "value": "",
  2226. "key": ""
  2227. }
  2228. ],
  2229. "type": "json"
  2230. },
  2231. "title": "HTTP 请求",
  2232. "type": "http-request",
  2233. "error_strategy": "none",
  2234. "retry_config": {
  2235. "max_retries": 3,
  2236. "retry_enabled": false,
  2237. "retry_interval": 100
  2238. },
  2239. "authorization": {
  2240. "type": "none",
  2241. "config": {
  2242. "api_key": "",
  2243. "header": "",
  2244. "type": ""
  2245. }
  2246. },
  2247. "output": {
  2248. "headers": [],
  2249. "status_code": 200,
  2250. "files": [],
  2251. "body": ""
  2252. },
  2253. "timeout_config": {
  2254. "max_write_timeout": 1,
  2255. "max_read_timeout": 1,
  2256. "max_connect_timeout": 1
  2257. },
  2258. "exceptionDefaultValue": {
  2259. "headers": "{}",
  2260. "status_code": 0,
  2261. "body": ""
  2262. },
  2263. "id": "492048da-6f33-4a36-adc5-cff4b973b053",
  2264. "selected": true,
  2265. "height": 40,
  2266. "errorConfig": {
  2267. "retry_delay": 100,
  2268. "retry": false,
  2269. "max_retry": 3
  2270. },
  2271. "output_can_alter": false,
  2272. "timeoutConfig": {
  2273. "read": 1,
  2274. "write": 1,
  2275. "connect": 1
  2276. },
  2277. "variables": [],
  2278. "method": "post",
  2279. "isInIteration": false,
  2280. "default_value": [],
  2281. "params": [],
  2282. "nodeType": "http-request",
  2283. "url": "#{env.api_address}/api/agent/getAgentInfo",
  2284. "width": 20,
  2285. "verifySSL": false,
  2286. "heads": [],
  2287. "position": {
  2288. "x": 64,
  2289. "y": -400
  2290. },
  2291. "desc": "",
  2292. "isInLoop": false
  2293. },
  2294. "deleterUserId": "",
  2295. "deletionTime": "2026-03-03 11:32:46",
  2296. "height": 40,
  2297. "id": "492048da-6f33-4a36-adc5-cff4b973b053",
  2298. "isDeleted": false,
  2299. "position": {
  2300. "x": 64,
  2301. "y": -400
  2302. },
  2303. "selected": true,
  2304. "type": "custom",
  2305. "updateTime": "2026-02-25 11:02:50",
  2306. "width": 20,
  2307. "zIndex": 1
  2308. },
  2309. {
  2310. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2311. "creationTime": "2026-02-24 16:44:27",
  2312. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  2313. "data": {
  2314. "outputs": [
  2315. {
  2316. "name": "body",
  2317. "describe": "响应内容",
  2318. "is_require": false,
  2319. "type": "string"
  2320. },
  2321. {
  2322. "name": "status_code",
  2323. "describe": "响应状态码",
  2324. "is_require": false,
  2325. "type": "number"
  2326. },
  2327. {
  2328. "name": "headers",
  2329. "describe": "响应头列表 JSON",
  2330. "is_require": false,
  2331. "type": "object"
  2332. }
  2333. ],
  2334. "bodyType": "json",
  2335. "exception": "none",
  2336. "ssl_verify": false,
  2337. "body": {
  2338. "data": [
  2339. {
  2340. "type": "text",
  2341. "value": "",
  2342. "key": ""
  2343. }
  2344. ],
  2345. "type": "json"
  2346. },
  2347. "title": "HTTP 请求",
  2348. "type": "http-request",
  2349. "error_strategy": "none",
  2350. "retry_config": {
  2351. "max_retries": 3,
  2352. "retry_enabled": false,
  2353. "retry_interval": 100
  2354. },
  2355. "authorization": {
  2356. "type": "none",
  2357. "config": {}
  2358. },
  2359. "output": {
  2360. "headers": [],
  2361. "status_code": 200,
  2362. "files": [],
  2363. "body": ""
  2364. },
  2365. "timeout_config": {
  2366. "max_write_timeout": 1,
  2367. "max_read_timeout": 1,
  2368. "max_connect_timeout": 1
  2369. },
  2370. "exceptionDefaultValue": {
  2371. "headers": "{}",
  2372. "status_code": 0,
  2373. "body": ""
  2374. },
  2375. "id": "50e48fcf-ce68-49a4-923e-87b05f8d22b8",
  2376. "selected": false,
  2377. "height": 96,
  2378. "errorConfig": {
  2379. "retry_delay": 100,
  2380. "retry": false,
  2381. "max_retry": 3
  2382. },
  2383. "output_can_alter": false,
  2384. "timeoutConfig": {
  2385. "read": 1,
  2386. "write": 1,
  2387. "connect": 1
  2388. },
  2389. "variables": [],
  2390. "method": "get",
  2391. "isInIteration": false,
  2392. "default_value": [],
  2393. "params": [],
  2394. "nodeType": "http-request",
  2395. "url": "",
  2396. "width": 96,
  2397. "verifySSL": false,
  2398. "heads": [],
  2399. "position": {
  2400. "x": -256,
  2401. "y": -32
  2402. },
  2403. "desc": "",
  2404. "isInLoop": false
  2405. },
  2406. "height": 96,
  2407. "id": "50e48fcf-ce68-49a4-923e-87b05f8d22b8",
  2408. "isDeleted": false,
  2409. "position": {
  2410. "x": -256,
  2411. "y": -32
  2412. },
  2413. "selected": false,
  2414. "type": "custom",
  2415. "updateTime": "2026-02-25 11:01:09",
  2416. "width": 96,
  2417. "zIndex": 1
  2418. },
  2419. {
  2420. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2421. "creationTime": "2026-02-24 16:40:59",
  2422. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  2423. "data": {
  2424. "outputs": [
  2425. {
  2426. "name": "body",
  2427. "describe": "响应内容",
  2428. "is_require": false,
  2429. "type": "string"
  2430. },
  2431. {
  2432. "name": "status_code",
  2433. "describe": "响应状态码",
  2434. "is_require": false,
  2435. "type": "number"
  2436. },
  2437. {
  2438. "name": "headers",
  2439. "describe": "响应头列表 JSON",
  2440. "is_require": false,
  2441. "type": "object"
  2442. }
  2443. ],
  2444. "bodyType": "json",
  2445. "exception": "none",
  2446. "ssl_verify": false,
  2447. "body": {
  2448. "data": [
  2449. {
  2450. "type": "text",
  2451. "value": "",
  2452. "key": ""
  2453. }
  2454. ],
  2455. "type": "json"
  2456. },
  2457. "title": "HTTP 请求",
  2458. "type": "http-request",
  2459. "error_strategy": "none",
  2460. "retry_config": {
  2461. "max_retries": 3,
  2462. "retry_enabled": false,
  2463. "retry_interval": 100
  2464. },
  2465. "authorization": {
  2466. "type": "none",
  2467. "config": {}
  2468. },
  2469. "output": {
  2470. "headers": [],
  2471. "status_code": 200,
  2472. "files": [],
  2473. "body": ""
  2474. },
  2475. "timeout_config": {
  2476. "max_write_timeout": 1,
  2477. "max_read_timeout": 1,
  2478. "max_connect_timeout": 1
  2479. },
  2480. "exceptionDefaultValue": {
  2481. "headers": "{}",
  2482. "status_code": 0,
  2483. "body": ""
  2484. },
  2485. "id": "672d51a1-15d0-4c07-9536-8bdc1c5dc929",
  2486. "selected": false,
  2487. "height": 96,
  2488. "errorConfig": {
  2489. "retry_delay": 100,
  2490. "retry": false,
  2491. "max_retry": 3
  2492. },
  2493. "output_can_alter": false,
  2494. "timeoutConfig": {
  2495. "read": 1,
  2496. "write": 1,
  2497. "connect": 1
  2498. },
  2499. "variables": [],
  2500. "method": "get",
  2501. "isInIteration": false,
  2502. "default_value": [],
  2503. "params": [],
  2504. "nodeType": "http-request",
  2505. "url": "",
  2506. "width": 96,
  2507. "verifySSL": false,
  2508. "heads": [],
  2509. "position": {
  2510. "x": -496,
  2511. "y": -240
  2512. },
  2513. "desc": "",
  2514. "isInLoop": false
  2515. },
  2516. "height": 96,
  2517. "id": "672d51a1-15d0-4c07-9536-8bdc1c5dc929",
  2518. "isDeleted": false,
  2519. "position": {
  2520. "x": -368,
  2521. "y": -576
  2522. },
  2523. "selected": false,
  2524. "type": "custom",
  2525. "updateTime": "2026-02-24 17:02:03",
  2526. "width": 96,
  2527. "zIndex": 1
  2528. },
  2529. {
  2530. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2531. "creationTime": "2026-01-29 16:24:26",
  2532. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  2533. "data": {
  2534. "outputs": [
  2535. {
  2536. "name": "result",
  2537. "describe": "过滤结果",
  2538. "is_require": false,
  2539. "type": "array[string]"
  2540. },
  2541. {
  2542. "name": "first_record",
  2543. "describe": "第一条记录",
  2544. "is_require": false,
  2545. "type": ""
  2546. },
  2547. {
  2548. "name": "last_record",
  2549. "describe": "最后一条记录",
  2550. "is_require": false,
  2551. "type": ""
  2552. }
  2553. ],
  2554. "output_can_alter": false,
  2555. "variables": [
  2556. {
  2557. "name": "",
  2558. "type": "array[string]",
  2559. "value": "#{c91eb026-e86a-418f-a865-a98aa60bcf19.result}"
  2560. }
  2561. ],
  2562. "filter_by": {
  2563. "conditions": [
  2564. {
  2565. "varType": "string",
  2566. "comparison_operator": "contains",
  2567. "right_value": "22"
  2568. }
  2569. ],
  2570. "enabled": false
  2571. },
  2572. "isInIteration": false,
  2573. "default_value": [],
  2574. "title": "列表操作",
  2575. "type": "list-operator",
  2576. "nodeType": "list-operator",
  2577. "error_strategy": "none",
  2578. "retry_config": {
  2579. "max_retries": 3,
  2580. "retry_enabled": false,
  2581. "retry_interval": 100
  2582. },
  2583. "timeout_config": {
  2584. "max_write_timeout": 0,
  2585. "max_read_timeout": 0,
  2586. "max_connect_timeout": 0
  2587. },
  2588. "limit": {
  2589. "size": 2,
  2590. "enabled": true
  2591. },
  2592. "width": 20,
  2593. "order_by": {
  2594. "value": "asc",
  2595. "enabled": true,
  2596. "key": ""
  2597. },
  2598. "id": "6764ede2-2c3d-46bb-ae9a-fb0a892aff84",
  2599. "position": {
  2600. "x": 368,
  2601. "y": -656
  2602. },
  2603. "extract_by": {
  2604. "serial": "1",
  2605. "enabled": true
  2606. },
  2607. "selected": false,
  2608. "desc": "",
  2609. "isInLoop": false,
  2610. "height": 40
  2611. },
  2612. "height": 40,
  2613. "id": "6764ede2-2c3d-46bb-ae9a-fb0a892aff84",
  2614. "isDeleted": false,
  2615. "position": {
  2616. "x": 32,
  2617. "y": -816
  2618. },
  2619. "selected": true,
  2620. "type": "custom",
  2621. "updateTime": "2026-02-24 17:02:01",
  2622. "width": 20,
  2623. "zIndex": 1
  2624. },
  2625. {
  2626. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2627. "creationTime": "2026-02-24 16:37:19",
  2628. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  2629. "data": {
  2630. "outputs": [
  2631. {
  2632. "name": "body",
  2633. "describe": "响应内容",
  2634. "is_require": false,
  2635. "type": "string"
  2636. },
  2637. {
  2638. "name": "status_code",
  2639. "describe": "响应状态码",
  2640. "is_require": false,
  2641. "type": "number"
  2642. },
  2643. {
  2644. "name": "headers",
  2645. "describe": "响应头列表 JSON",
  2646. "is_require": false,
  2647. "type": "object"
  2648. }
  2649. ],
  2650. "bodyType": "json",
  2651. "exception": "none",
  2652. "ssl_verify": false,
  2653. "body": {
  2654. "data": [
  2655. {
  2656. "type": "text",
  2657. "value": "",
  2658. "key": ""
  2659. }
  2660. ],
  2661. "type": "json"
  2662. },
  2663. "title": "HTTP 请求",
  2664. "type": "http-request",
  2665. "error_strategy": "none",
  2666. "retry_config": {
  2667. "max_retries": 3,
  2668. "retry_enabled": false,
  2669. "retry_interval": 100
  2670. },
  2671. "authorization": {
  2672. "type": "none",
  2673. "config": {}
  2674. },
  2675. "output": {
  2676. "headers": [],
  2677. "status_code": 200,
  2678. "files": [],
  2679. "body": ""
  2680. },
  2681. "timeout_config": {
  2682. "max_write_timeout": 1,
  2683. "max_read_timeout": 1,
  2684. "max_connect_timeout": 1
  2685. },
  2686. "exceptionDefaultValue": {
  2687. "headers": "{}",
  2688. "status_code": 0,
  2689. "body": ""
  2690. },
  2691. "id": "9b31887b-fdd6-47f1-9eaa-59c17c1b48e3",
  2692. "selected": false,
  2693. "height": 96,
  2694. "errorConfig": {
  2695. "retry_delay": 100,
  2696. "retry": false,
  2697. "max_retry": 3
  2698. },
  2699. "output_can_alter": false,
  2700. "timeoutConfig": {
  2701. "read": 1,
  2702. "write": 1,
  2703. "connect": 1
  2704. },
  2705. "variables": [],
  2706. "method": "get",
  2707. "isInIteration": false,
  2708. "default_value": [],
  2709. "params": [],
  2710. "nodeType": "http-request",
  2711. "url": "",
  2712. "width": 96,
  2713. "verifySSL": false,
  2714. "heads": [],
  2715. "position": {
  2716. "x": 1088,
  2717. "y": 160
  2718. },
  2719. "desc": "",
  2720. "isInLoop": false
  2721. },
  2722. "height": 96,
  2723. "id": "9b31887b-fdd6-47f1-9eaa-59c17c1b48e3",
  2724. "isDeleted": false,
  2725. "position": {
  2726. "x": 624,
  2727. "y": -128
  2728. },
  2729. "selected": false,
  2730. "type": "custom",
  2731. "updateTime": "2026-02-24 17:01:59",
  2732. "width": 96,
  2733. "zIndex": 1
  2734. },
  2735. {
  2736. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2737. "creationTime": "2026-01-28 19:54:03",
  2738. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  2739. "data": {
  2740. "outputs": [
  2741. {
  2742. "name": "result",
  2743. "type": "array[string]"
  2744. }
  2745. ],
  2746. "output_can_alter": true,
  2747. "variables": [
  2748. {
  2749. "name": "str",
  2750. "type": "string",
  2751. "value": ""
  2752. }
  2753. ],
  2754. "code": "\nfunction main(str) {\n return {\n result: ['11','22','33']\n }\n}\n",
  2755. "isInIteration": false,
  2756. "default_value": [],
  2757. "title": "代码执行",
  2758. "type": "code",
  2759. "nodeType": "code",
  2760. "error_strategy": "none",
  2761. "retry_config": {
  2762. "max_retries": 3,
  2763. "retry_enabled": false,
  2764. "retry_interval": 100
  2765. },
  2766. "timeout_config": {
  2767. "max_write_timeout": 0,
  2768. "max_read_timeout": 0,
  2769. "max_connect_timeout": 0
  2770. },
  2771. "code_language": "javascript",
  2772. "width": 20,
  2773. "id": "c91eb026-e86a-418f-a865-a98aa60bcf19",
  2774. "position": {
  2775. "x": 976,
  2776. "y": -256
  2777. },
  2778. "selected": false,
  2779. "desc": "",
  2780. "isInLoop": false,
  2781. "height": 40
  2782. },
  2783. "height": 40,
  2784. "id": "c91eb026-e86a-418f-a865-a98aa60bcf19",
  2785. "isDeleted": false,
  2786. "position": {
  2787. "x": 816,
  2788. "y": -496
  2789. },
  2790. "selected": true,
  2791. "type": "custom",
  2792. "updateTime": "2026-02-24 17:01:58",
  2793. "width": 20,
  2794. "zIndex": 1
  2795. },
  2796. {
  2797. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2798. "creationTime": "2026-01-29 13:07:48",
  2799. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  2800. "data": {
  2801. "outputs": [],
  2802. "output_can_alter": true,
  2803. "variables": [],
  2804. "cases": [
  2805. {
  2806. "logical_operator": "and",
  2807. "id": "c2cb978e-fce8-11f0-a59d-266b7b87fca6-1",
  2808. "conditions": [
  2809. {
  2810. "varType": "string",
  2811. "left_value": "#{c91eb026-e86a-418f-a865-a98aa60bcf19.result.result.name}",
  2812. "comparison_operator": "is",
  2813. "right_value": "智能"
  2814. }
  2815. ]
  2816. },
  2817. {
  2818. "logical_operator": "and",
  2819. "id": "c2cb978e-fce8-11f0-a59d-266b7b87fca6-2",
  2820. "conditions": [
  2821. {
  2822. "varType": "string",
  2823. "left_value": "#{c91eb026-e86a-418f-a865-a98aa60bcf19.result.result.name}",
  2824. "comparison_operator": "is",
  2825. "right_value": "测试智能体"
  2826. }
  2827. ]
  2828. }
  2829. ],
  2830. "isInIteration": false,
  2831. "default_value": [],
  2832. "title": "条件分支",
  2833. "type": "if-else",
  2834. "nodeType": "condition",
  2835. "error_strategy": "none",
  2836. "retry_config": {
  2837. "max_retries": 3,
  2838. "retry_enabled": false,
  2839. "retry_interval": 100
  2840. },
  2841. "timeout_config": {
  2842. "max_write_timeout": 0,
  2843. "max_read_timeout": 0,
  2844. "max_connect_timeout": 0
  2845. },
  2846. "width": 20,
  2847. "id": "de35b389-3782-474c-9dd9-cb1356dea54b",
  2848. "position": {
  2849. "x": 1088,
  2850. "y": -768
  2851. },
  2852. "selected": false,
  2853. "desc": "",
  2854. "isInLoop": false,
  2855. "height": 40
  2856. },
  2857. "height": 40,
  2858. "id": "de35b389-3782-474c-9dd9-cb1356dea54b",
  2859. "isDeleted": false,
  2860. "position": {
  2861. "x": 800,
  2862. "y": -784
  2863. },
  2864. "selected": true,
  2865. "type": "custom",
  2866. "updateTime": "2026-02-24 17:02:00",
  2867. "width": 20,
  2868. "zIndex": 1
  2869. },
  2870. {
  2871. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2872. "creationTime": "2026-02-24 16:43:53",
  2873. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  2874. "data": {
  2875. "outputs": [
  2876. {
  2877. "name": "body",
  2878. "describe": "响应内容",
  2879. "is_require": false,
  2880. "type": "string"
  2881. },
  2882. {
  2883. "name": "status_code",
  2884. "describe": "响应状态码",
  2885. "is_require": false,
  2886. "type": "number"
  2887. },
  2888. {
  2889. "name": "headers",
  2890. "describe": "响应头列表 JSON",
  2891. "is_require": false,
  2892. "type": "object"
  2893. }
  2894. ],
  2895. "bodyType": "json",
  2896. "exception": "none",
  2897. "ssl_verify": false,
  2898. "body": {
  2899. "data": [
  2900. {
  2901. "type": "text",
  2902. "value": "",
  2903. "key": ""
  2904. }
  2905. ],
  2906. "type": "json"
  2907. },
  2908. "title": "HTTP 请求",
  2909. "type": "http-request",
  2910. "error_strategy": "none",
  2911. "retry_config": {
  2912. "max_retries": 3,
  2913. "retry_enabled": false,
  2914. "retry_interval": 100
  2915. },
  2916. "authorization": {
  2917. "type": "none",
  2918. "config": {}
  2919. },
  2920. "output": {
  2921. "headers": [],
  2922. "status_code": 200,
  2923. "files": [],
  2924. "body": ""
  2925. },
  2926. "timeout_config": {
  2927. "max_write_timeout": 1,
  2928. "max_read_timeout": 1,
  2929. "max_connect_timeout": 1
  2930. },
  2931. "exceptionDefaultValue": {
  2932. "headers": "{}",
  2933. "status_code": 0,
  2934. "body": ""
  2935. },
  2936. "id": "e0af10b6-2675-4b46-becb-f4efceb6e1df",
  2937. "selected": false,
  2938. "height": 96,
  2939. "errorConfig": {
  2940. "retry_delay": 100,
  2941. "retry": false,
  2942. "max_retry": 3
  2943. },
  2944. "output_can_alter": false,
  2945. "timeoutConfig": {
  2946. "read": 1,
  2947. "write": 1,
  2948. "connect": 1
  2949. },
  2950. "variables": [],
  2951. "method": "get",
  2952. "isInIteration": false,
  2953. "default_value": [],
  2954. "params": [],
  2955. "nodeType": "http-request",
  2956. "url": "1",
  2957. "width": 96,
  2958. "verifySSL": false,
  2959. "heads": [],
  2960. "position": {
  2961. "x": -32,
  2962. "y": -16
  2963. },
  2964. "desc": "",
  2965. "isInLoop": false
  2966. },
  2967. "height": 96,
  2968. "id": "e0af10b6-2675-4b46-becb-f4efceb6e1df",
  2969. "isDeleted": false,
  2970. "position": {
  2971. "x": -32,
  2972. "y": -16
  2973. },
  2974. "selected": false,
  2975. "type": "custom",
  2976. "updateTime": "2026-02-25 11:01:27",
  2977. "width": 96,
  2978. "zIndex": 1
  2979. },
  2980. {
  2981. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  2982. "creationTime": "2026-02-24 16:43:48",
  2983. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  2984. "data": {
  2985. "outputs": [
  2986. {
  2987. "name": "body",
  2988. "describe": "响应内容",
  2989. "is_require": false,
  2990. "type": "string"
  2991. },
  2992. {
  2993. "name": "status_code",
  2994. "describe": "响应状态码",
  2995. "is_require": false,
  2996. "type": "number"
  2997. },
  2998. {
  2999. "name": "headers",
  3000. "describe": "响应头列表 JSON",
  3001. "is_require": false,
  3002. "type": "object"
  3003. }
  3004. ],
  3005. "bodyType": "json",
  3006. "exception": "none",
  3007. "ssl_verify": false,
  3008. "body": {
  3009. "data": [
  3010. {
  3011. "type": "text",
  3012. "value": "",
  3013. "key": ""
  3014. }
  3015. ],
  3016. "type": "json"
  3017. },
  3018. "title": "HTTP 请求",
  3019. "type": "http-request",
  3020. "error_strategy": "none",
  3021. "retry_config": {
  3022. "max_retries": 3,
  3023. "retry_enabled": false,
  3024. "retry_interval": 100
  3025. },
  3026. "authorization": {
  3027. "type": "none",
  3028. "config": {}
  3029. },
  3030. "output": {
  3031. "headers": [],
  3032. "status_code": 200,
  3033. "files": [],
  3034. "body": ""
  3035. },
  3036. "timeout_config": {
  3037. "max_write_timeout": 1,
  3038. "max_read_timeout": 1,
  3039. "max_connect_timeout": 1
  3040. },
  3041. "exceptionDefaultValue": {
  3042. "headers": "{}",
  3043. "status_code": 0,
  3044. "body": ""
  3045. },
  3046. "id": "ea894ed1-5de4-411f-9917-0828c6f0f15d",
  3047. "selected": false,
  3048. "height": 96,
  3049. "errorConfig": {
  3050. "retry_delay": 100,
  3051. "retry": false,
  3052. "max_retry": 3
  3053. },
  3054. "output_can_alter": false,
  3055. "timeoutConfig": {
  3056. "read": 1,
  3057. "write": 1,
  3058. "connect": 1
  3059. },
  3060. "variables": [],
  3061. "method": "get",
  3062. "isInIteration": false,
  3063. "default_value": [],
  3064. "params": [],
  3065. "nodeType": "http-request",
  3066. "url": "",
  3067. "width": 96,
  3068. "verifySSL": false,
  3069. "heads": [],
  3070. "position": {
  3071. "x": -208,
  3072. "y": 304
  3073. },
  3074. "desc": "",
  3075. "isInLoop": false
  3076. },
  3077. "height": 96,
  3078. "id": "ea894ed1-5de4-411f-9917-0828c6f0f15d",
  3079. "isDeleted": false,
  3080. "position": {
  3081. "x": -208,
  3082. "y": 304
  3083. },
  3084. "selected": false,
  3085. "type": "custom",
  3086. "updateTime": "2026-02-25 11:02:57",
  3087. "width": 96,
  3088. "zIndex": 1
  3089. }
  3090. ],
  3091. "profilePhoto": "1111",
  3092. "viewPort": {
  3093. "x": 10,
  3094. "y": 10,
  3095. "zoom": 1
  3096. }
  3097. },
  3098. "isAuthorized": true
  3099. }
  3100. }
  3101. },
  3102. "headers": {}
  3103. }
  3104. },
  3105. "security": []
  3106. }
  3107. },
  3108. "/api/agent/doNewAgentNode": {
  3109. "post": {
  3110. "summary": "智能体添加节点",
  3111. "deprecated": false,
  3112. "description": "",
  3113. "tags": ["Agent"],
  3114. "parameters": [
  3115. {
  3116. "name": "Authorization",
  3117. "in": "header",
  3118. "description": "",
  3119. "example": "bpm_client_1492899187547705344",
  3120. "schema": {
  3121. "type": "string",
  3122. "default": "bpm_client_1492899187547705344"
  3123. }
  3124. }
  3125. ],
  3126. "requestBody": {
  3127. "content": {
  3128. "application/json": {
  3129. "schema": {
  3130. "type": "object",
  3131. "properties": {
  3132. "appAgentId": {
  3133. "type": "string"
  3134. },
  3135. "parentId": {
  3136. "type": "string"
  3137. },
  3138. "position": {
  3139. "type": "object",
  3140. "properties": {
  3141. "x": {
  3142. "type": "integer"
  3143. },
  3144. "y": {
  3145. "type": "integer"
  3146. }
  3147. },
  3148. "required": ["x", "y"]
  3149. },
  3150. "width": {
  3151. "type": "integer"
  3152. },
  3153. "height": {
  3154. "type": "integer"
  3155. },
  3156. "selected": {
  3157. "type": "boolean"
  3158. },
  3159. "nodeType": {
  3160. "type": "string"
  3161. },
  3162. "zIndex": {
  3163. "type": "integer"
  3164. },
  3165. "prevNodeId": {
  3166. "type": "string"
  3167. },
  3168. "nodeHandleId": {
  3169. "type": "string"
  3170. }
  3171. },
  3172. "required": [
  3173. "appAgentId",
  3174. "position",
  3175. "width",
  3176. "height",
  3177. "selected",
  3178. "nodeType",
  3179. "zIndex"
  3180. ]
  3181. },
  3182. "examples": {
  3183. "1": {
  3184. "value": {
  3185. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3186. "parentId": "",
  3187. "position": {
  3188. "x": 20,
  3189. "y": 30
  3190. },
  3191. "width": 20,
  3192. "height": 40,
  3193. "selected": true,
  3194. "nodeType": "http-request",
  3195. "zIndex": 1,
  3196. "prevNodeId": "",
  3197. "nodeHandleId": ""
  3198. },
  3199. "summary": "HTTP请求"
  3200. },
  3201. "2": {
  3202. "value": {
  3203. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3204. "parentId": "",
  3205. "position": {
  3206. "x": 20,
  3207. "y": 30
  3208. },
  3209. "width": 20,
  3210. "height": 40,
  3211. "selected": true,
  3212. "nodeType": "code",
  3213. "zIndex": 1
  3214. },
  3215. "summary": "代码执行"
  3216. },
  3217. "3": {
  3218. "value": {
  3219. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3220. "parentId": "",
  3221. "position": {
  3222. "x": 20,
  3223. "y": 30
  3224. },
  3225. "width": 20,
  3226. "height": 40,
  3227. "selected": true,
  3228. "nodeType": "if-else",
  3229. "zIndex": 1
  3230. },
  3231. "summary": "条件分支"
  3232. },
  3233. "4": {
  3234. "value": {
  3235. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3236. "parentId": "",
  3237. "position": {
  3238. "x": 20,
  3239. "y": 30
  3240. },
  3241. "width": 20,
  3242. "height": 40,
  3243. "selected": true,
  3244. "nodeType": "iteration",
  3245. "zIndex": 1
  3246. },
  3247. "summary": "迭代"
  3248. },
  3249. "5": {
  3250. "value": {
  3251. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3252. "parentId": "",
  3253. "position": {
  3254. "x": 20,
  3255. "y": 30
  3256. },
  3257. "width": 20,
  3258. "height": 40,
  3259. "selected": true,
  3260. "nodeType": "list-operator",
  3261. "zIndex": 1
  3262. },
  3263. "summary": "列表操作"
  3264. },
  3265. "6": {
  3266. "value": {
  3267. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3268. "parentId": "",
  3269. "position": {
  3270. "x": 20,
  3271. "y": 30
  3272. },
  3273. "width": 20,
  3274. "height": 40,
  3275. "selected": true,
  3276. "nodeType": "loop",
  3277. "zIndex": 1
  3278. },
  3279. "summary": "循环"
  3280. },
  3281. "7": {
  3282. "value": {
  3283. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3284. "parentId": "74bc1d79-b51e-4279-b7e9-c0029a1ac154",
  3285. "position": {
  3286. "x": 20,
  3287. "y": 30
  3288. },
  3289. "width": 20,
  3290. "height": 40,
  3291. "selected": true,
  3292. "nodeType": "code",
  3293. "zIndex": 1
  3294. },
  3295. "summary": "代码(迭代内)"
  3296. },
  3297. "8": {
  3298. "value": {
  3299. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3300. "parentId": "74bc1d79-b51e-4279-b7e9-c0029a1ac154",
  3301. "position": {
  3302. "x": 20,
  3303. "y": 30
  3304. },
  3305. "width": 20,
  3306. "height": 40,
  3307. "selected": true,
  3308. "nodeType": "end",
  3309. "zIndex": 1
  3310. },
  3311. "summary": "结束输出"
  3312. },
  3313. "9": {
  3314. "value": {
  3315. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3316. "parentId": "",
  3317. "position": {
  3318. "x": 20,
  3319. "y": 30
  3320. },
  3321. "width": 20,
  3322. "height": 40,
  3323. "selected": true,
  3324. "nodeType": "start",
  3325. "zIndex": 1
  3326. },
  3327. "summary": "用户输入"
  3328. },
  3329. "10": {
  3330. "value": {
  3331. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3332. "parentId": "",
  3333. "position": {
  3334. "x": 20,
  3335. "y": 30
  3336. },
  3337. "width": 20,
  3338. "height": 40,
  3339. "selected": true,
  3340. "nodeType": "trigger-schedule",
  3341. "zIndex": 1
  3342. },
  3343. "summary": "定时触发器"
  3344. },
  3345. "11": {
  3346. "value": {
  3347. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3348. "parentId": "",
  3349. "position": {
  3350. "x": 20,
  3351. "y": 30
  3352. },
  3353. "width": 20,
  3354. "height": 40,
  3355. "selected": true,
  3356. "nodeType": "trigger-webhook",
  3357. "zIndex": 1,
  3358. "prevNodeId": "",
  3359. "nodeHandleId": ""
  3360. },
  3361. "summary": "WebHook触发器"
  3362. }
  3363. }
  3364. }
  3365. },
  3366. "required": true
  3367. },
  3368. "responses": {
  3369. "200": {
  3370. "description": "",
  3371. "content": {
  3372. "application/json": {
  3373. "schema": {
  3374. "type": "object",
  3375. "properties": {
  3376. "isSuccess": {
  3377. "type": "boolean"
  3378. },
  3379. "code": {
  3380. "type": "integer"
  3381. },
  3382. "result": {
  3383. "type": "string"
  3384. },
  3385. "isAuthorized": {
  3386. "type": "boolean"
  3387. }
  3388. },
  3389. "required": ["isSuccess", "code", "result", "isAuthorized"]
  3390. },
  3391. "example": {
  3392. "isSuccess": true,
  3393. "code": 1,
  3394. "result": "d0ada9b3-0507-4f3a-8020-310b0c1a2756",
  3395. "isAuthorized": true
  3396. }
  3397. }
  3398. },
  3399. "headers": {}
  3400. }
  3401. },
  3402. "security": []
  3403. }
  3404. },
  3405. "/api/agent/doUpdateAgentNode": {
  3406. "post": {
  3407. "summary": "更新智能体节点",
  3408. "deprecated": false,
  3409. "description": "",
  3410. "tags": ["Agent"],
  3411. "parameters": [
  3412. {
  3413. "name": "Authorization",
  3414. "in": "header",
  3415. "description": "",
  3416. "example": "bpm_client_1492899187547705344",
  3417. "schema": {
  3418. "type": "string",
  3419. "default": "bpm_client_1492899187547705344"
  3420. }
  3421. }
  3422. ],
  3423. "requestBody": {
  3424. "content": {
  3425. "application/json": {
  3426. "schema": {
  3427. "type": "object",
  3428. "properties": {
  3429. "id": {
  3430. "type": "string"
  3431. },
  3432. "appAgentId": {
  3433. "type": "string"
  3434. },
  3435. "parentId": {
  3436. "type": "string"
  3437. },
  3438. "position": {
  3439. "type": "object",
  3440. "properties": {
  3441. "x": {
  3442. "type": "integer"
  3443. },
  3444. "y": {
  3445. "type": "integer"
  3446. }
  3447. },
  3448. "required": ["x", "y"]
  3449. },
  3450. "width": {
  3451. "type": "integer"
  3452. },
  3453. "height": {
  3454. "type": "integer"
  3455. },
  3456. "selected": {
  3457. "type": "boolean"
  3458. },
  3459. "nodeType": {
  3460. "type": "string"
  3461. },
  3462. "zIndex": {
  3463. "type": "integer"
  3464. },
  3465. "data": {
  3466. "type": "object",
  3467. "properties": {}
  3468. }
  3469. },
  3470. "required": [
  3471. "id",
  3472. "appAgentId",
  3473. "parentId",
  3474. "position",
  3475. "width",
  3476. "height",
  3477. "selected",
  3478. "nodeType",
  3479. "zIndex",
  3480. "data"
  3481. ]
  3482. },
  3483. "examples": {
  3484. "1": {
  3485. "value": {
  3486. "id": "492048da-6f33-4a36-adc5-cff4b973b053",
  3487. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3488. "parentId": "",
  3489. "name": "HTTP 请求 1",
  3490. "remark": "",
  3491. "position": {
  3492. "x": 20,
  3493. "y": 30
  3494. },
  3495. "width": 20,
  3496. "height": 40,
  3497. "selected": true,
  3498. "nodeType": "http-request",
  3499. "zIndex": 1,
  3500. "data": {
  3501. "outputs": [
  3502. {
  3503. "name": "body",
  3504. "describe": "响应内容",
  3505. "type": "string"
  3506. },
  3507. {
  3508. "name": "status_code",
  3509. "describe": "响应状态码",
  3510. "type": "number"
  3511. },
  3512. {
  3513. "name": "headers",
  3514. "describe": "响应头列表 JSON",
  3515. "type": "object"
  3516. }
  3517. ],
  3518. "output_can_alter": false,
  3519. "variables": [],
  3520. "method": "post",
  3521. "ssl_verify": false,
  3522. "isInIteration": false,
  3523. "default_value": [],
  3524. "body": {
  3525. "type": "json",
  3526. "data": [
  3527. {
  3528. "key": "",
  3529. "type": "text",
  3530. "value": "{\"id\":\"b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8\"}"
  3531. }
  3532. ]
  3533. },
  3534. "params": [],
  3535. "title": "HTTP 请求",
  3536. "type": "http-request",
  3537. "error_strategy": "none",
  3538. "retry_config": {
  3539. "max_retries": 3,
  3540. "retry_enabled": false,
  3541. "retry_interval": 100
  3542. },
  3543. "url": "#{env.api_address}/api/agent/getAgentInfo",
  3544. "authorization": {
  3545. "type": "none",
  3546. "config": {
  3547. "api_key": "",
  3548. "header": "",
  3549. "type": ""
  3550. }
  3551. },
  3552. "timeout_config": {
  3553. "max_write_timeout": 0,
  3554. "max_read_timeout": 0,
  3555. "max_connect_timeout": 0
  3556. },
  3557. "heads": [
  3558. {
  3559. "name": "Authorization",
  3560. "value": "bpm_client_1473687766939209728"
  3561. }
  3562. ],
  3563. "selected": true,
  3564. "desc": "",
  3565. "isInLoop": false
  3566. }
  3567. },
  3568. "summary": "HTTP请求"
  3569. },
  3570. "2": {
  3571. "value": {
  3572. "id": "c91eb026-e86a-418f-a865-a98aa60bcf19",
  3573. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3574. "parentId": "",
  3575. "name": "代码执行 1",
  3576. "remark": "",
  3577. "position": {
  3578. "x": 20,
  3579. "y": 30
  3580. },
  3581. "width": 20,
  3582. "height": 40,
  3583. "selected": true,
  3584. "zIndex": 1,
  3585. "data": {
  3586. "outputs": [
  3587. {
  3588. "name": "result",
  3589. "type": "array[string]"
  3590. }
  3591. ],
  3592. "output_can_alter": true,
  3593. "variables": [
  3594. {
  3595. "name": "str",
  3596. "type": "string",
  3597. "value": "#{492048da-6f33-4a36-adc5-cff4b973b053.body}"
  3598. }
  3599. ],
  3600. "code": "\nfunction main(str) {\n return {\n result: ['11','22','33']\n }\n}\n",
  3601. "isInIteration": false,
  3602. "default_value": [],
  3603. "title": "代码执行",
  3604. "type": "code",
  3605. "nodeType": "code",
  3606. "error_strategy": "none",
  3607. "retry_config": {
  3608. "max_retries": 3,
  3609. "retry_enabled": false,
  3610. "retry_interval": 100
  3611. },
  3612. "timeout_config": {
  3613. "max_write_timeout": 0,
  3614. "max_read_timeout": 0,
  3615. "max_connect_timeout": 0
  3616. },
  3617. "code_language": "javascript",
  3618. "width": 20,
  3619. "id": "c91eb026-e86a-418f-a865-a98aa60bcf19",
  3620. "position": {
  3621. "x": 816,
  3622. "y": -496
  3623. },
  3624. "selected": false,
  3625. "desc": "",
  3626. "isInLoop": false,
  3627. "height": 40
  3628. }
  3629. },
  3630. "summary": "代码执行"
  3631. },
  3632. "3": {
  3633. "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}",
  3634. "summary": "条件分支"
  3635. },
  3636. "4": {
  3637. "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}",
  3638. "summary": "列表操作"
  3639. },
  3640. "5": {
  3641. "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}",
  3642. "summary": "循环"
  3643. },
  3644. "6": {
  3645. "value": {
  3646. "id": "74bc1d79-b51e-4279-b7e9-c0029a1ac154",
  3647. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3648. "name": "迭代 1",
  3649. "remark": "",
  3650. "position": {
  3651. "x": 20,
  3652. "y": 30
  3653. },
  3654. "width": 20,
  3655. "height": 40,
  3656. "selected": true,
  3657. "zIndex": 1,
  3658. "data": {
  3659. "output_iteration_variable": {
  3660. "name": "",
  3661. "type": "string",
  3662. "value": "#{25f07893-8a36-4355-9c2d-2007a448dcae.result}"
  3663. },
  3664. "output_can_alter": true,
  3665. "variables": [
  3666. {
  3667. "name": "iteration_input",
  3668. "type": "array[string]",
  3669. "value": "#{c91eb026-e86a-418f-a865-a98aa60bcf19.result}"
  3670. }
  3671. ],
  3672. "error_handle_mode": "terminated",
  3673. "flatten_output": false,
  3674. "isInIteration": true,
  3675. "default_value": [],
  3676. "start_node_id": "e6b5f725-3504-4cc0-b26f-fe39337d0aee",
  3677. "title": "迭代",
  3678. "type": "iteration",
  3679. "error_strategy": "none",
  3680. "retry_config": {
  3681. "max_retries": 3,
  3682. "retry_enabled": false,
  3683. "retry_interval": 100
  3684. },
  3685. "iteration_id": "74bc1d79-b51e-4279-b7e9-c0029a1ac154",
  3686. "is_parallel": false,
  3687. "selected": false,
  3688. "desc": "",
  3689. "isInLoop": false,
  3690. "parallel_nums": 10
  3691. }
  3692. },
  3693. "summary": "迭代"
  3694. },
  3695. "7": {
  3696. "value": {
  3697. "id": "25f07893-8a36-4355-9c2d-2007a448dcae",
  3698. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3699. "parentId": "",
  3700. "name": "代码执行 2",
  3701. "remark": "",
  3702. "position": {
  3703. "x": 20,
  3704. "y": 30
  3705. },
  3706. "width": 20,
  3707. "height": 40,
  3708. "selected": true,
  3709. "zIndex": 1,
  3710. "data": {
  3711. "outputs": [
  3712. {
  3713. "name": "result",
  3714. "type": "string"
  3715. }
  3716. ],
  3717. "output_can_alter": true,
  3718. "variables": [
  3719. {
  3720. "name": "item",
  3721. "type": "string",
  3722. "value": "#{74bc1d79-b51e-4279-b7e9-c0029a1ac154.item}"
  3723. }
  3724. ],
  3725. "isInIteration": false,
  3726. "default_value": [],
  3727. "title": "代码执行",
  3728. "type": "code",
  3729. "error_strategy": "none",
  3730. "retry_config": {
  3731. "max_retries": 3,
  3732. "retry_enabled": false,
  3733. "retry_interval": 100
  3734. },
  3735. "timeout_config": {
  3736. "max_write_timeout": 0,
  3737. "max_read_timeout": 0,
  3738. "max_connect_timeout": 0
  3739. },
  3740. "code": "\nfunction main(item) {\n return {\n result: item\n }\n}\n",
  3741. "code_language": "javascript",
  3742. "selected": false,
  3743. "desc": "",
  3744. "isInLoop": false
  3745. }
  3746. },
  3747. "summary": "代码(迭代内)"
  3748. },
  3749. "8": {
  3750. "value": {
  3751. "id": "3ba96b4e-25c2-486a-be27-94ab9957aba1",
  3752. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3753. "name": "迭代 1",
  3754. "remark": "",
  3755. "position": {
  3756. "x": 20,
  3757. "y": 30
  3758. },
  3759. "width": 20,
  3760. "height": 40,
  3761. "selected": true,
  3762. "zIndex": 1,
  3763. "data": {
  3764. "outputs": [
  3765. {
  3766. "name": "aa",
  3767. "type": "array[string]",
  3768. "value": "#{c91eb026-e86a-418f-a865-a98aa60bcf19.result}"
  3769. },
  3770. {
  3771. "name": "bb",
  3772. "type": "string",
  3773. "value": "#{492048da-6f33-4a36-adc5-cff4b973b053.body}"
  3774. },
  3775. {
  3776. "name": "cc",
  3777. "type": "array[string]",
  3778. "value": "#{74bc1d79-b51e-4279-b7e9-c0029a1ac154.output}"
  3779. }
  3780. ],
  3781. "output_can_alter": true,
  3782. "variables": [],
  3783. "isInIteration": false,
  3784. "default_value": [],
  3785. "type": "end",
  3786. "error_strategy": "none",
  3787. "retry_config": {
  3788. "max_retries": 3,
  3789. "retry_enabled": false,
  3790. "retry_interval": 100
  3791. },
  3792. "selected": false,
  3793. "isInLoop": false
  3794. }
  3795. },
  3796. "summary": "结束输出"
  3797. },
  3798. "9": {
  3799. "value": {
  3800. "id": "da46a998-7707-4505-a1ee-830182d0b6e1",
  3801. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3802. "name": "用户输入 1",
  3803. "remark": "",
  3804. "position": {
  3805. "x": 20,
  3806. "y": 30
  3807. },
  3808. "width": 20,
  3809. "height": 40,
  3810. "selected": true,
  3811. "zIndex": 1,
  3812. "data": {
  3813. "outputs": [],
  3814. "output_can_alter": true,
  3815. "variables": [
  3816. {
  3817. "label": "a1",
  3818. "max_length": 50,
  3819. "formType": "text-input",
  3820. "default_value": "",
  3821. "is_require": true
  3822. },
  3823. {
  3824. "label": "a2",
  3825. "max_length": 50,
  3826. "formType": "text-area",
  3827. "default_value": "",
  3828. "is_require": true
  3829. },
  3830. {
  3831. "label": "a3",
  3832. "formType": "select",
  3833. "default_value": "11",
  3834. "is_require": true,
  3835. "options": ["11", "22", "33"]
  3836. },
  3837. {
  3838. "label": "a4",
  3839. "formType": "number",
  3840. "default_value": 11,
  3841. "is_require": true
  3842. },
  3843. {
  3844. "label": "a5",
  3845. "formType": "checkbox",
  3846. "default_value": true,
  3847. "is_require": true
  3848. },
  3849. {
  3850. "label": "a6",
  3851. "formType": "file",
  3852. "default_value": {
  3853. "id": "11",
  3854. "name": "1.jpg",
  3855. "extensionName": ".jpg",
  3856. "size": 11213,
  3857. "path": "/aa"
  3858. },
  3859. "file_types": [],
  3860. "file_extensions": [],
  3861. "is_require": true
  3862. },
  3863. {
  3864. "label": "a7",
  3865. "formType": "file-list",
  3866. "default_value": [
  3867. {
  3868. "id": "11",
  3869. "name": "1.jpg",
  3870. "extensionName": ".jpg",
  3871. "size": 11213,
  3872. "path": "/aa"
  3873. }
  3874. ],
  3875. "file_types": [],
  3876. "file_extensions": [],
  3877. "is_require": true
  3878. },
  3879. {
  3880. "label": "a8",
  3881. "formType": "json_object",
  3882. "default_value": {
  3883. "text": ""
  3884. },
  3885. "is_require": true
  3886. }
  3887. ],
  3888. "isInIteration": false,
  3889. "default_value": [],
  3890. "type": "start",
  3891. "error_strategy": "none",
  3892. "retry_config": {
  3893. "max_retries": 3,
  3894. "retry_enabled": false,
  3895. "retry_interval": 100
  3896. },
  3897. "selected": false,
  3898. "isInLoop": false
  3899. }
  3900. },
  3901. "summary": "用户输入"
  3902. },
  3903. "10": {
  3904. "value": {
  3905. "id": "096eea5e-d5ed-4f68-9861-16ae73958980",
  3906. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3907. "name": "定时触发器 1",
  3908. "remark": "",
  3909. "position": {
  3910. "x": 20,
  3911. "y": 30
  3912. },
  3913. "width": 20,
  3914. "height": 40,
  3915. "selected": true,
  3916. "zIndex": 1,
  3917. "data": {
  3918. "outputs": [],
  3919. "output_can_alter": true,
  3920. "variables": [],
  3921. "isInIteration": false,
  3922. "default_value": [],
  3923. "visual_config": {
  3924. "monthly_days": ["1"],
  3925. "weekdays": ["sun"],
  3926. "time": "12:00",
  3927. "minute": 0
  3928. },
  3929. "type": "trigger-schedule",
  3930. "error_strategy": "none",
  3931. "retry_config": {
  3932. "max_retries": 3,
  3933. "retry_enabled": false,
  3934. "retry_interval": 100
  3935. },
  3936. "frequency": "daily",
  3937. "mode": "cron",
  3938. "cron_expression": "0 30 14 * * ? *",
  3939. "selected": false,
  3940. "isInLoop": false
  3941. }
  3942. },
  3943. "summary": "定时触发器"
  3944. },
  3945. "11": {
  3946. "value": {
  3947. "id": "f18f4871-7caa-4eb7-9000-226fc680997e",
  3948. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  3949. "name": "Webhook 触发器 1",
  3950. "remark": "",
  3951. "position": {
  3952. "x": 20,
  3953. "y": 30
  3954. },
  3955. "width": 20,
  3956. "height": 40,
  3957. "selected": true,
  3958. "zIndex": 1,
  3959. "data": {
  3960. "outputs": [],
  3961. "headers": [
  3962. {
  3963. "name": "a1",
  3964. "required": false
  3965. },
  3966. {
  3967. "name": "a2",
  3968. "required": false
  3969. },
  3970. {
  3971. "name": "a3",
  3972. "required": false
  3973. }
  3974. ],
  3975. "output_can_alter": true,
  3976. "variables": [],
  3977. "method": "post",
  3978. "webhook_url": "/api/agent/webhook/f18f4871-7caa-4eb7-9000-226fc680997e",
  3979. "webhook_debug_url": "/api/agent/webhook-debug/f18f4871-7caa-4eb7-9000-226fc680997e",
  3980. "isInIteration": false,
  3981. "response_body": "",
  3982. "default_value": [],
  3983. "body": [
  3984. {
  3985. "name": "c1",
  3986. "type": "string",
  3987. "required": false
  3988. },
  3989. {
  3990. "name": "c2",
  3991. "type": "string",
  3992. "required": false
  3993. },
  3994. {
  3995. "name": "c3",
  3996. "type": "string",
  3997. "required": false
  3998. }
  3999. ],
  4000. "params": [
  4001. {
  4002. "name": "b1",
  4003. "type": "string",
  4004. "required": false
  4005. },
  4006. {
  4007. "name": "b2",
  4008. "type": "string",
  4009. "required": false
  4010. },
  4011. {
  4012. "name": "b3",
  4013. "type": "string",
  4014. "required": false
  4015. }
  4016. ],
  4017. "type": "trigger-webhook",
  4018. "async_mode": true,
  4019. "error_strategy": "none",
  4020. "retry_config": {
  4021. "max_retries": 3,
  4022. "retry_enabled": false,
  4023. "retry_interval": 100
  4024. },
  4025. "response_content_type": "application/json",
  4026. "content_type": "application/json",
  4027. "selected": false,
  4028. "isInLoop": false,
  4029. "response_status_code": 200
  4030. }
  4031. },
  4032. "summary": "WebHook触发器"
  4033. }
  4034. }
  4035. }
  4036. },
  4037. "required": true
  4038. },
  4039. "responses": {
  4040. "200": {
  4041. "description": "",
  4042. "content": {
  4043. "application/json": {
  4044. "schema": {
  4045. "type": "object",
  4046. "properties": {
  4047. "isSuccess": {
  4048. "type": "boolean"
  4049. },
  4050. "code": {
  4051. "type": "integer"
  4052. },
  4053. "isAuthorized": {
  4054. "type": "boolean"
  4055. },
  4056. "result": {
  4057. "type": "object"
  4058. }
  4059. },
  4060. "required": ["isSuccess", "code", "isAuthorized"]
  4061. },
  4062. "example": {
  4063. "isSuccess": true,
  4064. "code": 1,
  4065. "isAuthorized": true
  4066. }
  4067. }
  4068. },
  4069. "headers": {}
  4070. }
  4071. },
  4072. "security": []
  4073. }
  4074. },
  4075. "/api/agent/doDeleteAgentNode": {
  4076. "post": {
  4077. "summary": "删除智能体节点",
  4078. "deprecated": false,
  4079. "description": "",
  4080. "tags": ["Agent"],
  4081. "parameters": [
  4082. {
  4083. "name": "Authorization",
  4084. "in": "header",
  4085. "description": "",
  4086. "example": "bpm_client_1492899187547705344",
  4087. "schema": {
  4088. "type": "string",
  4089. "default": "bpm_client_1492899187547705344"
  4090. }
  4091. }
  4092. ],
  4093. "requestBody": {
  4094. "content": {
  4095. "application/json": {
  4096. "schema": {
  4097. "type": "object",
  4098. "properties": {
  4099. "id": {
  4100. "type": "string"
  4101. }
  4102. },
  4103. "required": ["id"]
  4104. },
  4105. "example": {
  4106. "id": "492048da-6f33-4a36-adc5-cff4b973b053"
  4107. }
  4108. }
  4109. },
  4110. "required": true
  4111. },
  4112. "responses": {
  4113. "200": {
  4114. "description": "",
  4115. "content": {
  4116. "application/json": {
  4117. "schema": {
  4118. "type": "object",
  4119. "properties": {
  4120. "isSuccess": {
  4121. "type": "boolean"
  4122. },
  4123. "code": {
  4124. "type": "integer"
  4125. },
  4126. "isAuthorized": {
  4127. "type": "boolean"
  4128. }
  4129. },
  4130. "required": ["isSuccess", "code", "isAuthorized"]
  4131. },
  4132. "example": {
  4133. "isSuccess": true,
  4134. "code": 1,
  4135. "isAuthorized": true
  4136. }
  4137. }
  4138. },
  4139. "headers": {}
  4140. }
  4141. },
  4142. "security": []
  4143. }
  4144. },
  4145. "/api/agent/doNewAgentNodeWithEdge": {
  4146. "post": {
  4147. "summary": "根据边缘线,创建新的智能体节点",
  4148. "deprecated": false,
  4149. "description": "",
  4150. "tags": ["Agent"],
  4151. "parameters": [
  4152. {
  4153. "name": "Authorization",
  4154. "in": "header",
  4155. "description": "",
  4156. "example": "bpm_client_1492899187547705344",
  4157. "schema": {
  4158. "type": "string",
  4159. "default": "bpm_client_1492899187547705344"
  4160. }
  4161. }
  4162. ],
  4163. "requestBody": {
  4164. "content": {
  4165. "application/json": {
  4166. "schema": {
  4167. "type": "object",
  4168. "properties": {
  4169. "edgeId": {
  4170. "type": "string"
  4171. },
  4172. "newNode": {
  4173. "type": "object",
  4174. "properties": {
  4175. "appAgentId": {
  4176. "type": "string"
  4177. },
  4178. "parentId": {
  4179. "type": "string"
  4180. },
  4181. "position": {
  4182. "type": "object",
  4183. "properties": {
  4184. "x": {
  4185. "type": "integer"
  4186. },
  4187. "y": {
  4188. "type": "integer"
  4189. }
  4190. },
  4191. "required": ["x", "y"]
  4192. },
  4193. "width": {
  4194. "type": "integer"
  4195. },
  4196. "height": {
  4197. "type": "integer"
  4198. },
  4199. "selected": {
  4200. "type": "boolean"
  4201. },
  4202. "nodeType": {
  4203. "type": "string"
  4204. },
  4205. "zIndex": {
  4206. "type": "integer"
  4207. },
  4208. "prevNodeId": {
  4209. "type": "string"
  4210. },
  4211. "nodeHandleId": {
  4212. "type": "string"
  4213. }
  4214. },
  4215. "required": [
  4216. "appAgentId",
  4217. "parentId",
  4218. "position",
  4219. "width",
  4220. "height",
  4221. "selected",
  4222. "nodeType",
  4223. "zIndex",
  4224. "prevNodeId",
  4225. "nodeHandleId"
  4226. ]
  4227. }
  4228. },
  4229. "required": ["edgeId", "newNode"]
  4230. },
  4231. "example": {
  4232. "edgeId": "f70a68a4-1a00-4c38-907b-dd8565087248",
  4233. "newNode": {
  4234. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  4235. "parentId": "",
  4236. "position": {
  4237. "x": 20,
  4238. "y": 30
  4239. },
  4240. "width": 20,
  4241. "height": 40,
  4242. "selected": true,
  4243. "nodeType": "http-request",
  4244. "zIndex": 1,
  4245. "prevNodeId": "",
  4246. "nodeHandleId": ""
  4247. }
  4248. }
  4249. }
  4250. },
  4251. "required": true
  4252. },
  4253. "responses": {
  4254. "200": {
  4255. "description": "",
  4256. "content": {
  4257. "application/json": {
  4258. "schema": {
  4259. "type": "object",
  4260. "properties": {
  4261. "isSuccess": {
  4262. "type": "boolean"
  4263. },
  4264. "code": {
  4265. "type": "integer"
  4266. },
  4267. "result": {
  4268. "type": "string"
  4269. },
  4270. "isAuthorized": {
  4271. "type": "boolean"
  4272. }
  4273. },
  4274. "required": ["isSuccess", "code", "result", "isAuthorized"]
  4275. },
  4276. "example": {
  4277. "isSuccess": true,
  4278. "code": 1,
  4279. "result": "ab9cc26c-6152-4097-a85c-46fec6450aa8",
  4280. "isAuthorized": true
  4281. }
  4282. }
  4283. },
  4284. "headers": {}
  4285. }
  4286. },
  4287. "security": []
  4288. }
  4289. },
  4290. "/api/agent/doNewEdge": {
  4291. "post": {
  4292. "summary": "新增智能体边缘信息",
  4293. "deprecated": false,
  4294. "description": "",
  4295. "tags": ["Agent"],
  4296. "parameters": [
  4297. {
  4298. "name": "Authorization",
  4299. "in": "header",
  4300. "description": "",
  4301. "example": "bpm_client_1492899187547705344",
  4302. "schema": {
  4303. "type": "string",
  4304. "default": "bpm_client_1492899187547705344"
  4305. }
  4306. }
  4307. ],
  4308. "requestBody": {
  4309. "content": {
  4310. "application/json": {
  4311. "schema": {
  4312. "type": "object",
  4313. "properties": {
  4314. "appAgentId": {
  4315. "type": "string"
  4316. },
  4317. "source": {
  4318. "type": "string"
  4319. },
  4320. "sourceHandle": {
  4321. "type": "string"
  4322. },
  4323. "target": {
  4324. "type": "string"
  4325. },
  4326. "zIndex": {
  4327. "type": "integer"
  4328. }
  4329. },
  4330. "required": ["appAgentId", "source", "target", "zIndex"]
  4331. },
  4332. "examples": {
  4333. "1": {
  4334. "value": {
  4335. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  4336. "source": "492048da-6f33-4a36-adc5-cff4b973b053",
  4337. "target": "c91eb026-e86a-418f-a865-a98aa60bcf19",
  4338. "zIndex": 0
  4339. },
  4340. "summary": "普通节点"
  4341. },
  4342. "2": {
  4343. "value": {
  4344. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  4345. "source": "de35b389-3782-474c-9dd9-cb1356dea54b",
  4346. "sourceHandle": "c2cb978e-fce8-11f0-a59d-266b7b87fca6-1",
  4347. "target": "6764ede2-2c3d-46bb-ae9a-fb0a892aff84",
  4348. "zIndex": 0
  4349. },
  4350. "summary": "条件分支节点边缘"
  4351. }
  4352. }
  4353. }
  4354. },
  4355. "required": true
  4356. },
  4357. "responses": {
  4358. "200": {
  4359. "description": "",
  4360. "content": {
  4361. "application/json": {
  4362. "schema": {
  4363. "type": "object",
  4364. "properties": {
  4365. "isSuccess": {
  4366. "type": "boolean"
  4367. },
  4368. "code": {
  4369. "type": "integer"
  4370. },
  4371. "isAuthorized": {
  4372. "type": "boolean"
  4373. }
  4374. },
  4375. "required": ["isSuccess", "code", "isAuthorized"]
  4376. },
  4377. "example": {
  4378. "isSuccess": true,
  4379. "code": 1,
  4380. "isAuthorized": true
  4381. }
  4382. }
  4383. },
  4384. "headers": {}
  4385. }
  4386. },
  4387. "security": []
  4388. }
  4389. },
  4390. "/api/agent/doDeleteEdge": {
  4391. "post": {
  4392. "summary": "删除智能体边缘信息",
  4393. "deprecated": false,
  4394. "description": "",
  4395. "tags": ["Agent"],
  4396. "parameters": [
  4397. {
  4398. "name": "Authorization",
  4399. "in": "header",
  4400. "description": "",
  4401. "example": "bpm_client_1492899187547705344",
  4402. "schema": {
  4403. "type": "string",
  4404. "default": "bpm_client_1492899187547705344"
  4405. }
  4406. }
  4407. ],
  4408. "requestBody": {
  4409. "content": {
  4410. "application/json": {
  4411. "schema": {
  4412. "type": "object",
  4413. "properties": {
  4414. "id": {
  4415. "type": "string"
  4416. }
  4417. },
  4418. "required": ["id"]
  4419. },
  4420. "example": {
  4421. "id": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8"
  4422. }
  4423. }
  4424. },
  4425. "required": true
  4426. },
  4427. "responses": {
  4428. "200": {
  4429. "description": "",
  4430. "content": {
  4431. "application/json": {
  4432. "schema": {
  4433. "type": "object",
  4434. "properties": {
  4435. "isSuccess": {
  4436. "type": "boolean"
  4437. },
  4438. "code": {
  4439. "type": "integer"
  4440. },
  4441. "isAuthorized": {
  4442. "type": "boolean"
  4443. }
  4444. },
  4445. "required": ["isSuccess", "code", "isAuthorized"]
  4446. },
  4447. "example": {
  4448. "isSuccess": true,
  4449. "code": 1,
  4450. "isAuthorized": true
  4451. }
  4452. }
  4453. },
  4454. "headers": {}
  4455. }
  4456. },
  4457. "security": []
  4458. }
  4459. },
  4460. "/api/agent/doSelectedEdge": {
  4461. "post": {
  4462. "summary": "选中智能体边缘",
  4463. "deprecated": false,
  4464. "description": "",
  4465. "tags": ["Agent"],
  4466. "parameters": [
  4467. {
  4468. "name": "Authorization",
  4469. "in": "header",
  4470. "description": "",
  4471. "example": "bpm_client_1492899187547705344",
  4472. "schema": {
  4473. "type": "string",
  4474. "default": "bpm_client_1492899187547705344"
  4475. }
  4476. }
  4477. ],
  4478. "requestBody": {
  4479. "content": {
  4480. "application/json": {
  4481. "schema": {
  4482. "type": "object",
  4483. "properties": {
  4484. "id": {
  4485. "type": "string"
  4486. }
  4487. },
  4488. "required": ["id"]
  4489. },
  4490. "example": {
  4491. "id": "e518d540-2242-4def-8d42-381d9fab59ee"
  4492. }
  4493. }
  4494. },
  4495. "required": true
  4496. },
  4497. "responses": {
  4498. "200": {
  4499. "description": "",
  4500. "content": {
  4501. "application/json": {
  4502. "schema": {
  4503. "type": "object",
  4504. "properties": {
  4505. "isSuccess": {
  4506. "type": "boolean"
  4507. },
  4508. "code": {
  4509. "type": "integer"
  4510. },
  4511. "isAuthorized": {
  4512. "type": "boolean"
  4513. }
  4514. },
  4515. "required": ["isSuccess", "code", "isAuthorized"]
  4516. },
  4517. "example": {
  4518. "isSuccess": true,
  4519. "code": 1,
  4520. "isAuthorized": true
  4521. }
  4522. }
  4523. },
  4524. "headers": {}
  4525. }
  4526. },
  4527. "security": []
  4528. }
  4529. },
  4530. "/api/agent/doExecute": {
  4531. "post": {
  4532. "summary": "运行智能体",
  4533. "deprecated": false,
  4534. "description": "",
  4535. "tags": ["Agent"],
  4536. "parameters": [
  4537. {
  4538. "name": "Authorization",
  4539. "in": "header",
  4540. "description": "",
  4541. "example": "bpm_client_1492899187547705344",
  4542. "schema": {
  4543. "type": "string",
  4544. "default": "bpm_client_1492899187547705344"
  4545. }
  4546. }
  4547. ],
  4548. "requestBody": {
  4549. "content": {
  4550. "application/json": {
  4551. "schema": {
  4552. "type": "object",
  4553. "properties": {
  4554. "appAgentId": {
  4555. "type": "string"
  4556. },
  4557. "start_node_id": {
  4558. "type": "string"
  4559. },
  4560. "is_debugger": {
  4561. "type": "boolean"
  4562. },
  4563. "responseType": {
  4564. "type": "string"
  4565. },
  4566. "params": {
  4567. "type": "object",
  4568. "properties": {}
  4569. }
  4570. },
  4571. "required": ["appAgentId", "start_node_id", "is_debugger", "responseType", "params"]
  4572. },
  4573. "example": {
  4574. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  4575. "start_node_id": "492048da-6f33-4a36-adc5-cff4b973b053",
  4576. "is_debugger": true,
  4577. "responseType": "sse",
  4578. "params": {}
  4579. }
  4580. }
  4581. },
  4582. "required": true
  4583. },
  4584. "responses": {
  4585. "200": {
  4586. "description": "",
  4587. "content": {
  4588. "application/json": {
  4589. "schema": {
  4590. "type": "object",
  4591. "properties": {
  4592. "isSuccess": {
  4593. "type": "boolean"
  4594. },
  4595. "code": {
  4596. "type": "integer"
  4597. },
  4598. "result": {
  4599. "type": "string"
  4600. },
  4601. "isAuthorized": {
  4602. "type": "boolean"
  4603. }
  4604. },
  4605. "required": ["isSuccess", "code", "result", "isAuthorized"]
  4606. },
  4607. "example": {
  4608. "isSuccess": true,
  4609. "code": 1,
  4610. "result": "05d08317-6fb5-4af4-b0de-8365b4d8183e",
  4611. "isAuthorized": true
  4612. }
  4613. }
  4614. },
  4615. "headers": {}
  4616. }
  4617. },
  4618. "security": []
  4619. }
  4620. },
  4621. "/api/agent/getPrevNodeOutVariableList": {
  4622. "post": {
  4623. "summary": "根据节点id,获取节点之前的所有变量列表",
  4624. "deprecated": false,
  4625. "description": "",
  4626. "tags": ["Agent"],
  4627. "parameters": [
  4628. {
  4629. "name": "Authorization",
  4630. "in": "header",
  4631. "description": "",
  4632. "example": "bpm_client_1492899187547705344",
  4633. "schema": {
  4634. "type": "string",
  4635. "default": "bpm_client_1492899187547705344"
  4636. }
  4637. }
  4638. ],
  4639. "requestBody": {
  4640. "content": {
  4641. "application/json": {
  4642. "schema": {
  4643. "type": "object",
  4644. "properties": {
  4645. "node_id": {
  4646. "type": "string"
  4647. },
  4648. "varTypeList": {
  4649. "type": "array",
  4650. "items": {
  4651. "type": "string"
  4652. }
  4653. }
  4654. },
  4655. "required": ["node_id", "varTypeList"]
  4656. },
  4657. "example": {
  4658. "node_id": "3ba96b4e-25c2-486a-be27-94ab9957aba1",
  4659. "varTypeList": []
  4660. }
  4661. }
  4662. },
  4663. "required": true
  4664. },
  4665. "responses": {
  4666. "200": {
  4667. "description": "",
  4668. "content": {
  4669. "application/json": {
  4670. "schema": {
  4671. "type": "object",
  4672. "properties": {
  4673. "isSuccess": {
  4674. "type": "boolean"
  4675. },
  4676. "code": {
  4677. "type": "integer"
  4678. },
  4679. "result": {
  4680. "type": "array",
  4681. "items": {
  4682. "type": "object",
  4683. "properties": {
  4684. "id": {
  4685. "type": "string"
  4686. },
  4687. "name": {
  4688. "type": "string"
  4689. },
  4690. "variableList": {
  4691. "type": "array",
  4692. "items": {
  4693. "type": "object",
  4694. "properties": {
  4695. "expression": {
  4696. "type": "string"
  4697. },
  4698. "name": {
  4699. "type": "string"
  4700. },
  4701. "type": {
  4702. "type": "string"
  4703. }
  4704. },
  4705. "required": ["expression", "name", "type"]
  4706. }
  4707. }
  4708. },
  4709. "required": ["id", "name", "variableList"]
  4710. }
  4711. },
  4712. "isAuthorized": {
  4713. "type": "boolean"
  4714. }
  4715. },
  4716. "required": ["isSuccess", "code", "result", "isAuthorized"]
  4717. },
  4718. "example": {
  4719. "isSuccess": true,
  4720. "code": 1,
  4721. "result": [
  4722. {
  4723. "id": "74bc1d79-b51e-4279-b7e9-c0029a1ac154",
  4724. "name": "迭代 1",
  4725. "type": "iteration",
  4726. "variableList": [
  4727. {
  4728. "expression": "#{74bc1d79-b51e-4279-b7e9-c0029a1ac154.outputs}",
  4729. "name": "outputs",
  4730. "type": "array[string]"
  4731. }
  4732. ]
  4733. },
  4734. {
  4735. "id": "cae0c279-c1aa-40b6-9702-1df2af104a9b",
  4736. "name": "循环 1",
  4737. "type": "loop",
  4738. "variableList": [
  4739. {
  4740. "expression": "#{cae0c279-c1aa-40b6-9702-1df2af104a9b.aa}",
  4741. "name": "aa",
  4742. "type": "array[number]"
  4743. },
  4744. {
  4745. "expression": "#{cae0c279-c1aa-40b6-9702-1df2af104a9b.ifout}",
  4746. "name": "ifout",
  4747. "type": "boolean"
  4748. }
  4749. ]
  4750. },
  4751. {
  4752. "id": "c91eb026-e86a-418f-a865-a98aa60bcf19",
  4753. "name": "代码执行 1",
  4754. "type": "code",
  4755. "variableList": [
  4756. {
  4757. "expression": "#{c91eb026-e86a-418f-a865-a98aa60bcf19.result}",
  4758. "name": "result",
  4759. "type": "array[string]"
  4760. }
  4761. ]
  4762. },
  4763. {
  4764. "id": "env",
  4765. "name": "环境变量",
  4766. "variableList": [
  4767. {
  4768. "expression": "#{env.api_address}",
  4769. "name": "api_address",
  4770. "type": "string"
  4771. }
  4772. ]
  4773. },
  4774. {
  4775. "id": "sys",
  4776. "name": "系统变量",
  4777. "variableList": [
  4778. {
  4779. "expression": "sys.app_id",
  4780. "name": "app_id",
  4781. "type": "string"
  4782. },
  4783. {
  4784. "expression": "sys.user_id",
  4785. "name": "user_id",
  4786. "type": "string"
  4787. },
  4788. {
  4789. "expression": "sys.run_id",
  4790. "name": "run_id",
  4791. "type": "string"
  4792. },
  4793. {
  4794. "expression": "sys.files",
  4795. "name": "files",
  4796. "type": "array[file]"
  4797. }
  4798. ]
  4799. }
  4800. ],
  4801. "isAuthorized": true
  4802. }
  4803. }
  4804. },
  4805. "headers": {}
  4806. }
  4807. },
  4808. "security": []
  4809. }
  4810. },
  4811. "/api/agent/getAgentNodeLastRunnerLogs": {
  4812. "post": {
  4813. "summary": "获取智能体节点的最后一次运行日志",
  4814. "deprecated": false,
  4815. "description": "",
  4816. "tags": ["Agent"],
  4817. "parameters": [
  4818. {
  4819. "name": "Authorization",
  4820. "in": "header",
  4821. "description": "",
  4822. "example": "bpm_client_1492899187547705344",
  4823. "schema": {
  4824. "type": "string",
  4825. "default": "bpm_client_1492899187547705344"
  4826. }
  4827. }
  4828. ],
  4829. "requestBody": {
  4830. "content": {
  4831. "application/json": {
  4832. "schema": {
  4833. "type": "object",
  4834. "properties": {
  4835. "node_id": {
  4836. "type": "string"
  4837. }
  4838. },
  4839. "required": ["node_id"]
  4840. },
  4841. "example": {
  4842. "node_id": "3ba96b4e-25c2-486a-be27-94ab9957aba1"
  4843. }
  4844. }
  4845. },
  4846. "required": true
  4847. },
  4848. "responses": {
  4849. "200": {
  4850. "description": "",
  4851. "content": {
  4852. "application/json": {
  4853. "schema": {
  4854. "type": "object",
  4855. "properties": {
  4856. "isSuccess": {
  4857. "type": "boolean"
  4858. },
  4859. "code": {
  4860. "type": "integer"
  4861. },
  4862. "result": {
  4863. "type": "object",
  4864. "properties": {
  4865. "appAgentId": {
  4866. "type": "string"
  4867. },
  4868. "appAgentNodeId": {
  4869. "type": "string"
  4870. },
  4871. "appAgentRunnerId": {
  4872. "type": "string"
  4873. },
  4874. "creationTime": {
  4875. "type": "string"
  4876. },
  4877. "errorMsg": {
  4878. "type": "string"
  4879. },
  4880. "id": {
  4881. "type": "string"
  4882. },
  4883. "isDeleted": {
  4884. "type": "boolean"
  4885. },
  4886. "raw": {
  4887. "type": "object",
  4888. "properties": {
  4889. "agent_node_id": {
  4890. "type": "string"
  4891. },
  4892. "children": {
  4893. "type": "array",
  4894. "items": {
  4895. "type": "string"
  4896. }
  4897. },
  4898. "end_time": {
  4899. "type": "integer"
  4900. },
  4901. "input_variable": {
  4902. "type": "object",
  4903. "properties": {
  4904. "str": {
  4905. "type": "string"
  4906. }
  4907. },
  4908. "required": ["str"]
  4909. },
  4910. "is_success": {
  4911. "type": "boolean"
  4912. },
  4913. "node_name": {
  4914. "type": "string"
  4915. },
  4916. "node_type": {
  4917. "type": "string"
  4918. },
  4919. "output_variable": {
  4920. "type": "object",
  4921. "properties": {
  4922. "result": {
  4923. "type": "array",
  4924. "items": {
  4925. "type": "string"
  4926. }
  4927. }
  4928. },
  4929. "required": ["result"]
  4930. },
  4931. "start_time": {
  4932. "type": "integer"
  4933. },
  4934. "use_time": {
  4935. "type": "integer"
  4936. }
  4937. },
  4938. "required": [
  4939. "agent_node_id",
  4940. "children",
  4941. "end_time",
  4942. "input_variable",
  4943. "is_success",
  4944. "node_name",
  4945. "node_type",
  4946. "output_variable",
  4947. "start_time",
  4948. "use_time"
  4949. ]
  4950. },
  4951. "status": {
  4952. "type": "string"
  4953. },
  4954. "updateTime": {
  4955. "type": "string"
  4956. },
  4957. "useTime": {
  4958. "type": "integer"
  4959. }
  4960. },
  4961. "required": [
  4962. "appAgentId",
  4963. "appAgentNodeId",
  4964. "appAgentRunnerId",
  4965. "creationTime",
  4966. "errorMsg",
  4967. "id",
  4968. "isDeleted",
  4969. "raw",
  4970. "status",
  4971. "updateTime",
  4972. "useTime"
  4973. ]
  4974. },
  4975. "isAuthorized": {
  4976. "type": "boolean"
  4977. }
  4978. },
  4979. "required": ["isSuccess", "code", "result", "isAuthorized"]
  4980. },
  4981. "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}"
  4982. }
  4983. },
  4984. "headers": {}
  4985. }
  4986. },
  4987. "security": []
  4988. }
  4989. },
  4990. "/api/agent/doAgentPublish": {
  4991. "post": {
  4992. "summary": "发布智能体",
  4993. "deprecated": false,
  4994. "description": "",
  4995. "tags": ["Agent"],
  4996. "parameters": [
  4997. {
  4998. "name": "Authorization",
  4999. "in": "header",
  5000. "description": "",
  5001. "example": "bpm_client_1496159371585916928",
  5002. "schema": {
  5003. "type": "string",
  5004. "default": "bpm_client_1496159371585916928"
  5005. }
  5006. }
  5007. ],
  5008. "requestBody": {
  5009. "content": {
  5010. "application/json": {
  5011. "schema": {
  5012. "type": "object",
  5013. "properties": {
  5014. "start_node_id": {
  5015. "type": "string"
  5016. },
  5017. "appAgentId": {
  5018. "type": "string",
  5019. "format": "uuid"
  5020. }
  5021. },
  5022. "required": ["start_node_id", "appAgentId"]
  5023. },
  5024. "example": {
  5025. "start_node_id": "3ba96b4e-25c2-486a-be27-94ab9957aba1"
  5026. }
  5027. }
  5028. },
  5029. "required": true
  5030. },
  5031. "responses": {
  5032. "200": {
  5033. "description": "",
  5034. "content": {
  5035. "application/json": {
  5036. "schema": {
  5037. "type": "object",
  5038. "properties": {
  5039. "isSuccess": {
  5040. "type": "boolean"
  5041. },
  5042. "code": {
  5043. "type": "integer"
  5044. },
  5045. "isAuthorized": {
  5046. "type": "boolean"
  5047. }
  5048. },
  5049. "required": ["isSuccess", "code", "isAuthorized"]
  5050. },
  5051. "example": {
  5052. "isSuccess": true,
  5053. "code": 1,
  5054. "isAuthorized": true
  5055. }
  5056. }
  5057. },
  5058. "headers": {}
  5059. }
  5060. },
  5061. "security": []
  5062. }
  5063. },
  5064. "/api/agent/getAgentMonacoEditorCompletions": {
  5065. "post": {
  5066. "summary": "获取智能体MonacoEditor提示器配置对象",
  5067. "deprecated": false,
  5068. "description": "",
  5069. "tags": ["Agent"],
  5070. "parameters": [
  5071. {
  5072. "name": "Authorization",
  5073. "in": "header",
  5074. "description": "",
  5075. "example": "bpm_client_1499247893062619136",
  5076. "schema": {
  5077. "type": "string",
  5078. "default": "bpm_client_1499247893062619136"
  5079. }
  5080. }
  5081. ],
  5082. "requestBody": {
  5083. "content": {
  5084. "application/json": {
  5085. "schema": {
  5086. "type": "object",
  5087. "properties": {}
  5088. },
  5089. "example": {}
  5090. }
  5091. },
  5092. "required": true
  5093. },
  5094. "responses": {
  5095. "200": {
  5096. "description": "",
  5097. "content": {
  5098. "application/json": {
  5099. "schema": {
  5100. "type": "object",
  5101. "properties": {
  5102. "isSuccess": {
  5103. "type": "boolean"
  5104. },
  5105. "code": {
  5106. "type": "integer"
  5107. },
  5108. "result": {
  5109. "type": "object",
  5110. "properties": {
  5111. "javascript": {
  5112. "type": "array",
  5113. "items": {
  5114. "type": "object",
  5115. "properties": {
  5116. "methods": {
  5117. "type": "array",
  5118. "items": {
  5119. "type": "string"
  5120. }
  5121. },
  5122. "object": {
  5123. "type": "string"
  5124. },
  5125. "properties": {
  5126. "type": "array",
  5127. "items": {
  5128. "type": "object",
  5129. "properties": {
  5130. "detail": {
  5131. "type": "string"
  5132. },
  5133. "documentation": {
  5134. "type": "string"
  5135. },
  5136. "insertText": {
  5137. "type": "string"
  5138. },
  5139. "kind": {
  5140. "type": "string"
  5141. },
  5142. "label": {
  5143. "type": "string"
  5144. },
  5145. "snippet": {
  5146. "type": "boolean"
  5147. }
  5148. },
  5149. "required": [
  5150. "detail",
  5151. "documentation",
  5152. "insertText",
  5153. "kind",
  5154. "label",
  5155. "snippet"
  5156. ]
  5157. }
  5158. },
  5159. "triggerCharacters": {
  5160. "type": "array",
  5161. "items": {
  5162. "type": "string"
  5163. }
  5164. }
  5165. },
  5166. "required": ["methods", "object", "properties", "triggerCharacters"]
  5167. }
  5168. }
  5169. },
  5170. "required": ["javascript"]
  5171. },
  5172. "isAuthorized": {
  5173. "type": "boolean"
  5174. }
  5175. },
  5176. "required": ["isSuccess", "code", "result", "isAuthorized"]
  5177. },
  5178. "example": {
  5179. "isSuccess": true,
  5180. "code": 1,
  5181. "result": {
  5182. "javascript": [
  5183. {
  5184. "methods": [],
  5185. "object": "user_mstr",
  5186. "properties": [
  5187. {
  5188. "detail": "Date creation_time",
  5189. "documentation": "creation_time",
  5190. "insertText": "creation_time",
  5191. "kind": "property",
  5192. "label": "creation_time",
  5193. "snippet": false
  5194. },
  5195. {
  5196. "detail": "String creation_user",
  5197. "documentation": "creation_user",
  5198. "insertText": "creation_user",
  5199. "kind": "property",
  5200. "label": "creation_user",
  5201. "snippet": false
  5202. },
  5203. {
  5204. "detail": "Date update_time",
  5205. "documentation": "update_time",
  5206. "insertText": "update_time",
  5207. "kind": "property",
  5208. "label": "update_time",
  5209. "snippet": false
  5210. },
  5211. {
  5212. "detail": "String update_user",
  5213. "documentation": "update_user",
  5214. "insertText": "update_user",
  5215. "kind": "property",
  5216. "label": "update_user",
  5217. "snippet": false
  5218. },
  5219. {
  5220. "detail": "Date delete_time",
  5221. "documentation": "delete_time",
  5222. "insertText": "delete_time",
  5223. "kind": "property",
  5224. "label": "delete_time",
  5225. "snippet": false
  5226. },
  5227. {
  5228. "detail": "String delete_user",
  5229. "documentation": "delete_user",
  5230. "insertText": "delete_user",
  5231. "kind": "property",
  5232. "label": "delete_user",
  5233. "snippet": false
  5234. },
  5235. {
  5236. "detail": "Boolean is_deleted",
  5237. "documentation": "is_deleted",
  5238. "insertText": "is_deleted",
  5239. "kind": "property",
  5240. "label": "is_deleted",
  5241. "snippet": false
  5242. },
  5243. {
  5244. "detail": "String user_code",
  5245. "documentation": "user_code",
  5246. "insertText": "user_code",
  5247. "kind": "property",
  5248. "label": "user_code",
  5249. "snippet": false
  5250. },
  5251. {
  5252. "detail": "String name",
  5253. "documentation": "name",
  5254. "insertText": "name",
  5255. "kind": "property",
  5256. "label": "name",
  5257. "snippet": false
  5258. },
  5259. {
  5260. "detail": "Integer age",
  5261. "documentation": "age",
  5262. "insertText": "age",
  5263. "kind": "property",
  5264. "label": "age",
  5265. "snippet": false
  5266. },
  5267. {
  5268. "detail": "Date borndate",
  5269. "documentation": "borndate",
  5270. "insertText": "borndate",
  5271. "kind": "property",
  5272. "label": "borndate",
  5273. "snippet": false
  5274. }
  5275. ],
  5276. "triggerCharacters": ["."]
  5277. },
  5278. {
  5279. "methods": [],
  5280. "object": "test_mstr",
  5281. "properties": [
  5282. {
  5283. "detail": "Date test_creation_time",
  5284. "documentation": "test_creation_time",
  5285. "insertText": "test_creation_time",
  5286. "kind": "property",
  5287. "label": "test_creation_time",
  5288. "snippet": false
  5289. },
  5290. {
  5291. "detail": "String test_creation_user",
  5292. "documentation": "test_creation_user",
  5293. "insertText": "test_creation_user",
  5294. "kind": "property",
  5295. "label": "test_creation_user",
  5296. "snippet": false
  5297. },
  5298. {
  5299. "detail": "Date test_update_time",
  5300. "documentation": "test_update_time",
  5301. "insertText": "test_update_time",
  5302. "kind": "property",
  5303. "label": "test_update_time",
  5304. "snippet": false
  5305. },
  5306. {
  5307. "detail": "String test_update_user",
  5308. "documentation": "test_update_user",
  5309. "insertText": "test_update_user",
  5310. "kind": "property",
  5311. "label": "test_update_user",
  5312. "snippet": false
  5313. },
  5314. {
  5315. "detail": "Date test_delete_time",
  5316. "documentation": "test_delete_time",
  5317. "insertText": "test_delete_time",
  5318. "kind": "property",
  5319. "label": "test_delete_time",
  5320. "snippet": false
  5321. },
  5322. {
  5323. "detail": "String test_delete_user",
  5324. "documentation": "test_delete_user",
  5325. "insertText": "test_delete_user",
  5326. "kind": "property",
  5327. "label": "test_delete_user",
  5328. "snippet": false
  5329. },
  5330. {
  5331. "detail": "Boolean test_is_deleted",
  5332. "documentation": "test_is_deleted",
  5333. "insertText": "test_is_deleted",
  5334. "kind": "property",
  5335. "label": "test_is_deleted",
  5336. "snippet": false
  5337. }
  5338. ],
  5339. "triggerCharacters": ["."]
  5340. },
  5341. {
  5342. "methods": [],
  5343. "object": "test3_mstr",
  5344. "properties": [
  5345. {
  5346. "detail": "String taskId",
  5347. "documentation": "taskId",
  5348. "insertText": "taskId",
  5349. "kind": "property",
  5350. "label": "taskId",
  5351. "snippet": false
  5352. },
  5353. {
  5354. "detail": "String snNumber",
  5355. "documentation": "snNumber",
  5356. "insertText": "snNumber",
  5357. "kind": "property",
  5358. "label": "snNumber",
  5359. "snippet": false
  5360. },
  5361. {
  5362. "detail": "Integer taskStatus",
  5363. "documentation": "taskStatus",
  5364. "insertText": "taskStatus",
  5365. "kind": "property",
  5366. "label": "taskStatus",
  5367. "snippet": false
  5368. },
  5369. {
  5370. "detail": "Date creationTime",
  5371. "documentation": "creationTime",
  5372. "insertText": "creationTime",
  5373. "kind": "property",
  5374. "label": "creationTime",
  5375. "snippet": false
  5376. }
  5377. ],
  5378. "triggerCharacters": ["."]
  5379. },
  5380. {
  5381. "methods": [],
  5382. "object": "test2_mstr",
  5383. "properties": [
  5384. {
  5385. "detail": "String taskId",
  5386. "documentation": "taskId",
  5387. "insertText": "taskId",
  5388. "kind": "property",
  5389. "label": "taskId",
  5390. "snippet": false
  5391. },
  5392. {
  5393. "detail": "String snNumber",
  5394. "documentation": "snNumber",
  5395. "insertText": "snNumber",
  5396. "kind": "property",
  5397. "label": "snNumber",
  5398. "snippet": false
  5399. },
  5400. {
  5401. "detail": "Integer taskStatus",
  5402. "documentation": "taskStatus",
  5403. "insertText": "taskStatus",
  5404. "kind": "property",
  5405. "label": "taskStatus",
  5406. "snippet": false
  5407. },
  5408. {
  5409. "detail": "Date creationTime",
  5410. "documentation": "creationTime",
  5411. "insertText": "creationTime",
  5412. "kind": "property",
  5413. "label": "creationTime",
  5414. "snippet": false
  5415. }
  5416. ],
  5417. "triggerCharacters": ["."]
  5418. },
  5419. {
  5420. "methods": [],
  5421. "object": "test1_mstr",
  5422. "properties": [
  5423. {
  5424. "detail": "String taskId",
  5425. "documentation": "taskId",
  5426. "insertText": "taskId",
  5427. "kind": "property",
  5428. "label": "taskId",
  5429. "snippet": false
  5430. },
  5431. {
  5432. "detail": "String snNumber",
  5433. "documentation": "snNumber",
  5434. "insertText": "snNumber",
  5435. "kind": "property",
  5436. "label": "snNumber",
  5437. "snippet": false
  5438. },
  5439. {
  5440. "detail": "Integer taskStatus",
  5441. "documentation": "taskStatus",
  5442. "insertText": "taskStatus",
  5443. "kind": "property",
  5444. "label": "taskStatus",
  5445. "snippet": false
  5446. },
  5447. {
  5448. "detail": "Date creationTime",
  5449. "documentation": "creationTime",
  5450. "insertText": "creationTime",
  5451. "kind": "property",
  5452. "label": "creationTime",
  5453. "snippet": false
  5454. }
  5455. ],
  5456. "triggerCharacters": ["."]
  5457. },
  5458. {
  5459. "methods": [],
  5460. "object": "chat_mstr",
  5461. "properties": [
  5462. {
  5463. "detail": "Date creation_time",
  5464. "documentation": "creation_time",
  5465. "insertText": "creation_time",
  5466. "kind": "property",
  5467. "label": "creation_time",
  5468. "snippet": false
  5469. },
  5470. {
  5471. "detail": "String creation_user",
  5472. "documentation": "creation_user",
  5473. "insertText": "creation_user",
  5474. "kind": "property",
  5475. "label": "creation_user",
  5476. "snippet": false
  5477. },
  5478. {
  5479. "detail": "Date update_time",
  5480. "documentation": "update_time",
  5481. "insertText": "update_time",
  5482. "kind": "property",
  5483. "label": "update_time",
  5484. "snippet": false
  5485. },
  5486. {
  5487. "detail": "String update_user",
  5488. "documentation": "update_user",
  5489. "insertText": "update_user",
  5490. "kind": "property",
  5491. "label": "update_user",
  5492. "snippet": false
  5493. },
  5494. {
  5495. "detail": "Date delete_time",
  5496. "documentation": "delete_time",
  5497. "insertText": "delete_time",
  5498. "kind": "property",
  5499. "label": "delete_time",
  5500. "snippet": false
  5501. },
  5502. {
  5503. "detail": "String delete_user",
  5504. "documentation": "delete_user",
  5505. "insertText": "delete_user",
  5506. "kind": "property",
  5507. "label": "delete_user",
  5508. "snippet": false
  5509. },
  5510. {
  5511. "detail": "Boolean is_deleted",
  5512. "documentation": "is_deleted",
  5513. "insertText": "is_deleted",
  5514. "kind": "property",
  5515. "label": "is_deleted",
  5516. "snippet": false
  5517. },
  5518. {
  5519. "detail": "Integer sess_id",
  5520. "documentation": "sess_id",
  5521. "insertText": "sess_id",
  5522. "kind": "property",
  5523. "label": "sess_id",
  5524. "snippet": false
  5525. },
  5526. {
  5527. "detail": "String type",
  5528. "documentation": "type",
  5529. "insertText": "type",
  5530. "kind": "property",
  5531. "label": "type",
  5532. "snippet": false
  5533. },
  5534. {
  5535. "detail": "String uniq_key",
  5536. "documentation": "uniq_key",
  5537. "insertText": "uniq_key",
  5538. "kind": "property",
  5539. "label": "uniq_key",
  5540. "snippet": false
  5541. },
  5542. {
  5543. "detail": "String grp_name",
  5544. "documentation": "grp_name",
  5545. "insertText": "grp_name",
  5546. "kind": "property",
  5547. "label": "grp_name",
  5548. "snippet": false
  5549. },
  5550. {
  5551. "detail": "Integer creat_by",
  5552. "documentation": "creat_by",
  5553. "insertText": "creat_by",
  5554. "kind": "property",
  5555. "label": "creat_by",
  5556. "snippet": false
  5557. },
  5558. {
  5559. "detail": "Date creat_time",
  5560. "documentation": "creat_time",
  5561. "insertText": "creat_time",
  5562. "kind": "property",
  5563. "label": "creat_time",
  5564. "snippet": false
  5565. },
  5566. {
  5567. "detail": "String chat_code",
  5568. "documentation": "chat_code",
  5569. "insertText": "chat_code",
  5570. "kind": "property",
  5571. "label": "chat_code",
  5572. "snippet": false
  5573. }
  5574. ],
  5575. "triggerCharacters": ["."]
  5576. }
  5577. ]
  5578. },
  5579. "isAuthorized": true
  5580. }
  5581. }
  5582. },
  5583. "headers": {}
  5584. }
  5585. },
  5586. "security": []
  5587. }
  5588. },
  5589. "/api/agent/getSupportCustomAgentNodeYamlList": {
  5590. "post": {
  5591. "summary": "获取支持的自定义智能体节点yaml列表",
  5592. "deprecated": false,
  5593. "description": "",
  5594. "tags": ["Agent"],
  5595. "parameters": [
  5596. {
  5597. "name": "Authorization",
  5598. "in": "header",
  5599. "description": "",
  5600. "example": "bpm_client_1500870842102321152",
  5601. "schema": {
  5602. "type": "string",
  5603. "default": "bpm_client_1500870842102321152"
  5604. }
  5605. }
  5606. ],
  5607. "requestBody": {
  5608. "content": {
  5609. "application/json": {
  5610. "schema": {
  5611. "type": "object",
  5612. "properties": {}
  5613. },
  5614. "example": {}
  5615. }
  5616. },
  5617. "required": true
  5618. },
  5619. "responses": {
  5620. "200": {
  5621. "description": "",
  5622. "content": {
  5623. "application/json": {
  5624. "schema": {
  5625. "type": "object",
  5626. "properties": {
  5627. "isSuccess": {
  5628. "type": "boolean"
  5629. },
  5630. "code": {
  5631. "type": "integer"
  5632. },
  5633. "result": {
  5634. "type": "array",
  5635. "items": {
  5636. "type": "string"
  5637. }
  5638. },
  5639. "isAuthorized": {
  5640. "type": "boolean"
  5641. }
  5642. },
  5643. "required": ["isSuccess", "code", "result", "isAuthorized"]
  5644. },
  5645. "example": {
  5646. "isSuccess": true,
  5647. "code": 1,
  5648. "result": [
  5649. {
  5650. "identity": {
  5651. "author": "lyh",
  5652. "description": "test1 desc",
  5653. "icon24": "",
  5654. "icon40": "",
  5655. "label": "test1",
  5656. "name": "test1",
  5657. "type": "custom-module-AgentNodeTest1"
  5658. },
  5659. "parameters": [
  5660. {
  5661. "defaultValue": "",
  5662. "description": "",
  5663. "label": "name",
  5664. "llm_description": "",
  5665. "max": 3.4028234663852886e38,
  5666. "min": 0,
  5667. "name": "name",
  5668. "options": [],
  5669. "placeholder": "",
  5670. "required": false,
  5671. "type": "text-input"
  5672. }
  5673. ]
  5674. }
  5675. ],
  5676. "isAuthorized": true
  5677. }
  5678. }
  5679. },
  5680. "headers": {}
  5681. }
  5682. },
  5683. "security": []
  5684. }
  5685. },
  5686. "/api/ai/agent/pageList": {
  5687. "post": {
  5688. "summary": "获取分页列表",
  5689. "deprecated": false,
  5690. "description": "",
  5691. "tags": ["AgentApplication"],
  5692. "parameters": [
  5693. {
  5694. "name": "Authorization",
  5695. "in": "header",
  5696. "description": "",
  5697. "example": "bpm_client_1513029045627916288",
  5698. "schema": {
  5699. "type": "string",
  5700. "default": "bpm_client_1513029045627916288"
  5701. }
  5702. }
  5703. ],
  5704. "requestBody": {
  5705. "content": {
  5706. "application/json": {
  5707. "schema": {
  5708. "type": "object",
  5709. "properties": {
  5710. "keyword": {
  5711. "type": "string"
  5712. },
  5713. "mode": {
  5714. "type": "string"
  5715. },
  5716. "type": {
  5717. "type": "string"
  5718. },
  5719. "pageIndex": {
  5720. "type": "integer"
  5721. },
  5722. "pageSize": {
  5723. "type": "integer"
  5724. }
  5725. },
  5726. "required": ["keyword", "mode", "type", "pageIndex", "pageSize"]
  5727. },
  5728. "example": {
  5729. "keyword": "",
  5730. "mode": "quick-answer",
  5731. "type": "rag-qa",
  5732. "pageIndex": 1,
  5733. "pageSize": 20
  5734. }
  5735. }
  5736. },
  5737. "required": true
  5738. },
  5739. "responses": {
  5740. "200": {
  5741. "description": "",
  5742. "content": {
  5743. "application/json": {
  5744. "schema": {
  5745. "type": "object",
  5746. "properties": {
  5747. "isSuccess": {
  5748. "type": "boolean"
  5749. },
  5750. "code": {
  5751. "type": "integer"
  5752. },
  5753. "result": {
  5754. "type": "object",
  5755. "properties": {
  5756. "currentPage": {
  5757. "type": "integer"
  5758. },
  5759. "hasNextPage": {
  5760. "type": "boolean"
  5761. },
  5762. "hasPreviousPage": {
  5763. "type": "boolean"
  5764. },
  5765. "model": {
  5766. "type": "array",
  5767. "items": {
  5768. "type": "object",
  5769. "properties": {
  5770. "avatar": {
  5771. "type": "string"
  5772. },
  5773. "config": {
  5774. "type": "object",
  5775. "properties": {
  5776. "advanced_config": {
  5777. "type": "object",
  5778. "properties": {
  5779. "enable_query_expansion": {
  5780. "type": "boolean"
  5781. },
  5782. "enable_rewrite": {
  5783. "type": "boolean"
  5784. },
  5785. "fallback_prompt": {
  5786. "type": "string"
  5787. },
  5788. "fallback_response": {
  5789. "type": "string"
  5790. },
  5791. "fallback_strategy": {
  5792. "type": "string"
  5793. },
  5794. "rewrite_prompt_system": {
  5795. "type": "string"
  5796. },
  5797. "rewrite_prompt_user": {
  5798. "type": "string"
  5799. }
  5800. },
  5801. "required": [
  5802. "enable_query_expansion",
  5803. "enable_rewrite",
  5804. "fallback_prompt",
  5805. "fallback_response",
  5806. "fallback_strategy",
  5807. "rewrite_prompt_system",
  5808. "rewrite_prompt_user"
  5809. ]
  5810. },
  5811. "basic_config": {
  5812. "type": "object",
  5813. "properties": {
  5814. "agent_mode": {
  5815. "type": "string"
  5816. },
  5817. "agent_type": {
  5818. "type": "string"
  5819. },
  5820. "context_template": {
  5821. "type": "string"
  5822. },
  5823. "suggested_prompts": {
  5824. "type": "array",
  5825. "items": {
  5826. "type": "string"
  5827. }
  5828. },
  5829. "system_prompt": {
  5830. "type": "string"
  5831. }
  5832. },
  5833. "required": [
  5834. "agent_mode",
  5835. "agent_type",
  5836. "context_template",
  5837. "suggested_prompts",
  5838. "system_prompt"
  5839. ]
  5840. },
  5841. "faq_config": {
  5842. "type": "object",
  5843. "properties": {
  5844. "faq_direct_answer_threshold": {
  5845. "type": "number"
  5846. },
  5847. "faq_priority_enabled": {
  5848. "type": "boolean"
  5849. },
  5850. "faq_score_boost": {
  5851. "type": "number"
  5852. }
  5853. },
  5854. "required": [
  5855. "faq_direct_answer_threshold",
  5856. "faq_priority_enabled",
  5857. "faq_score_boost"
  5858. ]
  5859. },
  5860. "img_vlm_config": {
  5861. "type": "object",
  5862. "properties": {
  5863. "image_storage_provider": {
  5864. "type": "string"
  5865. },
  5866. "image_upload_enabled": {
  5867. "type": "boolean"
  5868. },
  5869. "vlm_model_id": {
  5870. "type": "string"
  5871. }
  5872. },
  5873. "required": [
  5874. "image_storage_provider",
  5875. "image_upload_enabled",
  5876. "vlm_model_id"
  5877. ]
  5878. },
  5879. "kb_config": {
  5880. "type": "object",
  5881. "properties": {
  5882. "kb_selection_mode": {
  5883. "type": "string"
  5884. },
  5885. "knowledge_bases": {
  5886. "type": "array",
  5887. "items": {
  5888. "type": "string"
  5889. }
  5890. },
  5891. "retrieve_kb_only_when_mentioned": {
  5892. "type": "boolean"
  5893. },
  5894. "supported_file_types": {
  5895. "type": "array",
  5896. "items": {
  5897. "type": "string"
  5898. }
  5899. }
  5900. },
  5901. "required": [
  5902. "kb_selection_mode",
  5903. "knowledge_bases",
  5904. "retrieve_kb_only_when_mentioned",
  5905. "supported_file_types"
  5906. ]
  5907. },
  5908. "model_config": {
  5909. "type": "object",
  5910. "properties": {
  5911. "max_completion_tokens": {
  5912. "type": "integer"
  5913. },
  5914. "model_id": {
  5915. "type": "string"
  5916. },
  5917. "rerank_model_id": {
  5918. "type": "string"
  5919. },
  5920. "temperature": {
  5921. "type": "number"
  5922. },
  5923. "thinking": {
  5924. "type": "boolean"
  5925. }
  5926. },
  5927. "required": [
  5928. "max_completion_tokens",
  5929. "model_id",
  5930. "rerank_model_id",
  5931. "temperature",
  5932. "thinking"
  5933. ]
  5934. },
  5935. "multiple_config": {
  5936. "type": "object",
  5937. "properties": {
  5938. "history_turns": {
  5939. "type": "integer"
  5940. },
  5941. "multi_turn_enabled": {
  5942. "type": "boolean"
  5943. }
  5944. },
  5945. "required": ["history_turns", "multi_turn_enabled"]
  5946. },
  5947. "search_config": {
  5948. "type": "object",
  5949. "properties": {
  5950. "embedding_top_k": {
  5951. "type": "integer"
  5952. },
  5953. "keyword_threshold": {
  5954. "type": "number"
  5955. },
  5956. "rerank_threshold": {
  5957. "type": "number"
  5958. },
  5959. "rerank_top_k": {
  5960. "type": "integer"
  5961. },
  5962. "vector_threshold": {
  5963. "type": "number"
  5964. }
  5965. },
  5966. "required": [
  5967. "embedding_top_k",
  5968. "keyword_threshold",
  5969. "rerank_threshold",
  5970. "rerank_top_k",
  5971. "vector_threshold"
  5972. ]
  5973. },
  5974. "setting_config": {
  5975. "type": "object",
  5976. "properties": {
  5977. "allowed_tools": {
  5978. "type": "array",
  5979. "items": {
  5980. "type": "string"
  5981. }
  5982. },
  5983. "max_iterations": {
  5984. "type": "integer"
  5985. },
  5986. "mcp_selection_mode": {
  5987. "type": "string"
  5988. },
  5989. "mcp_services": {
  5990. "type": "array",
  5991. "items": {
  5992. "type": "string"
  5993. }
  5994. },
  5995. "selected_skills": {
  5996. "type": "array",
  5997. "items": {
  5998. "type": "string"
  5999. }
  6000. },
  6001. "skills_selection_mode": {
  6002. "type": "string"
  6003. }
  6004. },
  6005. "required": [
  6006. "allowed_tools",
  6007. "max_iterations",
  6008. "mcp_selection_mode",
  6009. "mcp_services",
  6010. "selected_skills",
  6011. "skills_selection_mode"
  6012. ]
  6013. },
  6014. "web_search_config": {
  6015. "type": "object",
  6016. "properties": {
  6017. "web_fetch_enabled": {
  6018. "type": "boolean"
  6019. },
  6020. "web_fetch_top_n": {
  6021. "type": "integer"
  6022. },
  6023. "web_search_enabled": {
  6024. "type": "boolean"
  6025. },
  6026. "web_search_max_results": {
  6027. "type": "integer"
  6028. }
  6029. },
  6030. "required": [
  6031. "web_fetch_enabled",
  6032. "web_fetch_top_n",
  6033. "web_search_enabled",
  6034. "web_search_max_results"
  6035. ]
  6036. }
  6037. },
  6038. "required": [
  6039. "advanced_config",
  6040. "basic_config",
  6041. "faq_config",
  6042. "img_vlm_config",
  6043. "kb_config",
  6044. "model_config",
  6045. "multiple_config",
  6046. "search_config",
  6047. "setting_config",
  6048. "web_search_config"
  6049. ]
  6050. },
  6051. "creationTime": {
  6052. "type": "string"
  6053. },
  6054. "creatorUserId": {
  6055. "type": "string"
  6056. },
  6057. "description": {
  6058. "type": "string"
  6059. },
  6060. "id": {
  6061. "type": "string"
  6062. },
  6063. "isDeleted": {
  6064. "type": "boolean"
  6065. },
  6066. "is_builtin": {
  6067. "type": "boolean"
  6068. },
  6069. "mode": {
  6070. "type": "string"
  6071. },
  6072. "name": {
  6073. "type": "string"
  6074. },
  6075. "type": {
  6076. "type": "string"
  6077. },
  6078. "updateTime": {
  6079. "type": "string"
  6080. }
  6081. }
  6082. }
  6083. },
  6084. "pageSize": {
  6085. "type": "integer"
  6086. },
  6087. "totalCount": {
  6088. "type": "integer"
  6089. },
  6090. "totalPages": {
  6091. "type": "integer"
  6092. }
  6093. },
  6094. "required": [
  6095. "currentPage",
  6096. "hasNextPage",
  6097. "hasPreviousPage",
  6098. "model",
  6099. "pageSize",
  6100. "totalCount",
  6101. "totalPages"
  6102. ]
  6103. },
  6104. "isAuthorized": {
  6105. "type": "boolean"
  6106. }
  6107. },
  6108. "required": ["isSuccess", "code", "result", "isAuthorized"]
  6109. },
  6110. "example": {
  6111. "isSuccess": true,
  6112. "code": 1,
  6113. "result": {
  6114. "currentPage": 1,
  6115. "hasNextPage": true,
  6116. "hasPreviousPage": false,
  6117. "model": [
  6118. {
  6119. "avatar": "",
  6120. "config": {
  6121. "advanced_config": {
  6122. "enable_query_expansion": true,
  6123. "enable_rewrite": true,
  6124. "fallback_prompt": "",
  6125. "fallback_response": "",
  6126. "fallback_strategy": "model",
  6127. "rewrite_prompt_system": "",
  6128. "rewrite_prompt_user": ""
  6129. },
  6130. "basic_config": {
  6131. "agent_mode": "quick-answer",
  6132. "agent_type": "rag-qa",
  6133. "context_template": "",
  6134. "suggested_prompts": [],
  6135. "system_prompt": ""
  6136. },
  6137. "faq_config": {
  6138. "faq_direct_answer_threshold": 0.9,
  6139. "faq_priority_enabled": true,
  6140. "faq_score_boost": 1.2
  6141. },
  6142. "img_vlm_config": {
  6143. "image_storage_provider": "local",
  6144. "image_upload_enabled": false,
  6145. "vlm_model_id": ""
  6146. },
  6147. "kb_config": {
  6148. "kb_selection_mode": "all",
  6149. "knowledge_bases": [],
  6150. "retrieve_kb_only_when_mentioned": false,
  6151. "supported_file_types": []
  6152. },
  6153. "model_config": {
  6154. "max_completion_tokens": 2048,
  6155. "model_id": "ea1598d8-1578-4ce3-8898-c47981e00e2a",
  6156. "rerank_model_id": "569ae4d9-4af2-46f4-b8cc-4676044c7369",
  6157. "temperature": 0.7,
  6158. "thinking": false
  6159. },
  6160. "multiple_config": {
  6161. "history_turns": 5,
  6162. "multi_turn_enabled": true
  6163. },
  6164. "search_config": {
  6165. "embedding_top_k": 10,
  6166. "keyword_threshold": 0.3,
  6167. "rerank_threshold": 0.5,
  6168. "rerank_top_k": 5,
  6169. "vector_threshold": 0.5
  6170. },
  6171. "setting_config": {
  6172. "allowed_tools": [],
  6173. "max_iterations": 10,
  6174. "mcp_selection_mode": "all",
  6175. "mcp_services": [],
  6176. "selected_skills": [],
  6177. "skills_selection_mode": "none"
  6178. },
  6179. "web_search_config": {
  6180. "web_fetch_enabled": false,
  6181. "web_fetch_top_n": 3,
  6182. "web_search_enabled": false,
  6183. "web_search_max_results": 5
  6184. }
  6185. },
  6186. "creationTime": "2026-05-12 17:04:41",
  6187. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  6188. "description": "快速问答-描述",
  6189. "id": "b6ce2c6a-5cf5-46ba-9f3a-c85ee8de20a9",
  6190. "isDeleted": false,
  6191. "is_builtin": false,
  6192. "mode": "quick-answer",
  6193. "name": "快速问答-智能体",
  6194. "type": "rag-qa",
  6195. "updateTime": "2026-05-12 17:04:41"
  6196. }
  6197. ],
  6198. "pageSize": 20,
  6199. "totalCount": 1,
  6200. "totalPages": 1
  6201. },
  6202. "isAuthorized": true
  6203. }
  6204. }
  6205. },
  6206. "headers": {}
  6207. }
  6208. },
  6209. "security": []
  6210. }
  6211. },
  6212. "/api/ai/agent/info": {
  6213. "post": {
  6214. "summary": "详情",
  6215. "deprecated": false,
  6216. "description": "",
  6217. "tags": ["AgentApplication"],
  6218. "parameters": [
  6219. {
  6220. "name": "Authorization",
  6221. "in": "header",
  6222. "description": "",
  6223. "example": "bpm_client_1513029045627916288",
  6224. "schema": {
  6225. "type": "string",
  6226. "default": "bpm_client_1513029045627916288"
  6227. }
  6228. }
  6229. ],
  6230. "requestBody": {
  6231. "content": {
  6232. "application/json": {
  6233. "schema": {
  6234. "type": "object",
  6235. "properties": {
  6236. "id": {
  6237. "type": "string"
  6238. }
  6239. },
  6240. "required": ["id"]
  6241. },
  6242. "example": {
  6243. "id": "3b5d7624-aa12-4c14-a58f-5a238f78377f"
  6244. }
  6245. }
  6246. },
  6247. "required": true
  6248. },
  6249. "responses": {
  6250. "200": {
  6251. "description": "",
  6252. "content": {
  6253. "application/json": {
  6254. "schema": {
  6255. "type": "object",
  6256. "properties": {
  6257. "isSuccess": {
  6258. "type": "boolean"
  6259. },
  6260. "code": {
  6261. "type": "integer"
  6262. },
  6263. "result": {
  6264. "type": "object",
  6265. "properties": {
  6266. "avatar": {
  6267. "type": "string"
  6268. },
  6269. "config": {
  6270. "type": "object",
  6271. "properties": {
  6272. "advanced_config": {
  6273. "type": "object",
  6274. "properties": {
  6275. "enable_query_expansion": {
  6276. "type": "boolean"
  6277. },
  6278. "enable_rewrite": {
  6279. "type": "boolean"
  6280. },
  6281. "fallback_prompt": {
  6282. "type": "string"
  6283. },
  6284. "fallback_response": {
  6285. "type": "string"
  6286. },
  6287. "fallback_strategy": {
  6288. "type": "string"
  6289. },
  6290. "rewrite_prompt_system": {
  6291. "type": "string"
  6292. },
  6293. "rewrite_prompt_user": {
  6294. "type": "string"
  6295. }
  6296. },
  6297. "required": [
  6298. "enable_query_expansion",
  6299. "enable_rewrite",
  6300. "fallback_prompt",
  6301. "fallback_response",
  6302. "fallback_strategy",
  6303. "rewrite_prompt_system",
  6304. "rewrite_prompt_user"
  6305. ]
  6306. },
  6307. "basic_config": {
  6308. "type": "object",
  6309. "properties": {
  6310. "agent_mode": {
  6311. "type": "string"
  6312. },
  6313. "agent_type": {
  6314. "type": "string"
  6315. },
  6316. "context_template": {
  6317. "type": "string"
  6318. },
  6319. "suggested_prompts": {
  6320. "type": "array",
  6321. "items": {
  6322. "type": "string"
  6323. }
  6324. },
  6325. "system_prompt": {
  6326. "type": "string"
  6327. }
  6328. },
  6329. "required": [
  6330. "agent_mode",
  6331. "agent_type",
  6332. "context_template",
  6333. "suggested_prompts",
  6334. "system_prompt"
  6335. ]
  6336. },
  6337. "faq_config": {
  6338. "type": "object",
  6339. "properties": {
  6340. "faq_direct_answer_threshold": {
  6341. "type": "number"
  6342. },
  6343. "faq_priority_enabled": {
  6344. "type": "boolean"
  6345. },
  6346. "faq_score_boost": {
  6347. "type": "number"
  6348. }
  6349. },
  6350. "required": [
  6351. "faq_direct_answer_threshold",
  6352. "faq_priority_enabled",
  6353. "faq_score_boost"
  6354. ]
  6355. },
  6356. "img_vlm_config": {
  6357. "type": "object",
  6358. "properties": {
  6359. "image_storage_provider": {
  6360. "type": "string"
  6361. },
  6362. "image_upload_enabled": {
  6363. "type": "boolean"
  6364. },
  6365. "vlm_model_id": {
  6366. "type": "string"
  6367. }
  6368. },
  6369. "required": [
  6370. "image_storage_provider",
  6371. "image_upload_enabled",
  6372. "vlm_model_id"
  6373. ]
  6374. },
  6375. "kb_config": {
  6376. "type": "object",
  6377. "properties": {
  6378. "kb_selection_mode": {
  6379. "type": "string"
  6380. },
  6381. "knowledge_bases": {
  6382. "type": "array",
  6383. "items": {
  6384. "type": "string"
  6385. }
  6386. },
  6387. "retrieve_kb_only_when_mentioned": {
  6388. "type": "boolean"
  6389. },
  6390. "supported_file_types": {
  6391. "type": "array",
  6392. "items": {
  6393. "type": "string"
  6394. }
  6395. }
  6396. },
  6397. "required": [
  6398. "kb_selection_mode",
  6399. "knowledge_bases",
  6400. "retrieve_kb_only_when_mentioned",
  6401. "supported_file_types"
  6402. ]
  6403. },
  6404. "model_config": {
  6405. "type": "object",
  6406. "properties": {
  6407. "max_completion_tokens": {
  6408. "type": "integer"
  6409. },
  6410. "model_id": {
  6411. "type": "string"
  6412. },
  6413. "rerank_model_id": {
  6414. "type": "string"
  6415. },
  6416. "temperature": {
  6417. "type": "number"
  6418. },
  6419. "thinking": {
  6420. "type": "boolean"
  6421. }
  6422. },
  6423. "required": [
  6424. "max_completion_tokens",
  6425. "model_id",
  6426. "rerank_model_id",
  6427. "temperature",
  6428. "thinking"
  6429. ]
  6430. },
  6431. "multiple_config": {
  6432. "type": "object",
  6433. "properties": {
  6434. "history_turns": {
  6435. "type": "integer"
  6436. },
  6437. "multi_turn_enabled": {
  6438. "type": "boolean"
  6439. }
  6440. },
  6441. "required": ["history_turns", "multi_turn_enabled"]
  6442. },
  6443. "search_config": {
  6444. "type": "object",
  6445. "properties": {
  6446. "embedding_top_k": {
  6447. "type": "integer"
  6448. },
  6449. "keyword_threshold": {
  6450. "type": "number"
  6451. },
  6452. "rerank_threshold": {
  6453. "type": "number"
  6454. },
  6455. "rerank_top_k": {
  6456. "type": "integer"
  6457. },
  6458. "vector_threshold": {
  6459. "type": "number"
  6460. }
  6461. },
  6462. "required": [
  6463. "embedding_top_k",
  6464. "keyword_threshold",
  6465. "rerank_threshold",
  6466. "rerank_top_k",
  6467. "vector_threshold"
  6468. ]
  6469. },
  6470. "setting_config": {
  6471. "type": "object",
  6472. "properties": {
  6473. "allowed_tools": {
  6474. "type": "array",
  6475. "items": {
  6476. "type": "string"
  6477. }
  6478. },
  6479. "max_iterations": {
  6480. "type": "integer"
  6481. },
  6482. "mcp_selection_mode": {
  6483. "type": "string"
  6484. },
  6485. "mcp_services": {
  6486. "type": "array",
  6487. "items": {
  6488. "type": "string"
  6489. }
  6490. },
  6491. "selected_skills": {
  6492. "type": "array",
  6493. "items": {
  6494. "type": "string"
  6495. }
  6496. },
  6497. "skills_selection_mode": {
  6498. "type": "string"
  6499. }
  6500. },
  6501. "required": [
  6502. "allowed_tools",
  6503. "max_iterations",
  6504. "mcp_selection_mode",
  6505. "mcp_services",
  6506. "selected_skills",
  6507. "skills_selection_mode"
  6508. ]
  6509. },
  6510. "web_search_config": {
  6511. "type": "object",
  6512. "properties": {
  6513. "web_fetch_enabled": {
  6514. "type": "boolean"
  6515. },
  6516. "web_fetch_top_n": {
  6517. "type": "integer"
  6518. },
  6519. "web_search_enabled": {
  6520. "type": "boolean"
  6521. },
  6522. "web_search_max_results": {
  6523. "type": "integer"
  6524. }
  6525. },
  6526. "required": [
  6527. "web_fetch_enabled",
  6528. "web_fetch_top_n",
  6529. "web_search_enabled",
  6530. "web_search_max_results"
  6531. ]
  6532. }
  6533. },
  6534. "required": [
  6535. "advanced_config",
  6536. "basic_config",
  6537. "faq_config",
  6538. "img_vlm_config",
  6539. "kb_config",
  6540. "model_config",
  6541. "multiple_config",
  6542. "search_config",
  6543. "setting_config",
  6544. "web_search_config"
  6545. ]
  6546. },
  6547. "creationTime": {
  6548. "type": "string"
  6549. },
  6550. "creatorUserId": {
  6551. "type": "string"
  6552. },
  6553. "description": {
  6554. "type": "string"
  6555. },
  6556. "id": {
  6557. "type": "string"
  6558. },
  6559. "isDeleted": {
  6560. "type": "boolean"
  6561. },
  6562. "is_builtin": {
  6563. "type": "boolean"
  6564. },
  6565. "mode": {
  6566. "type": "string"
  6567. },
  6568. "name": {
  6569. "type": "string"
  6570. },
  6571. "type": {
  6572. "type": "string"
  6573. },
  6574. "updateTime": {
  6575. "type": "string"
  6576. }
  6577. },
  6578. "required": [
  6579. "avatar",
  6580. "config",
  6581. "creationTime",
  6582. "creatorUserId",
  6583. "description",
  6584. "id",
  6585. "isDeleted",
  6586. "is_builtin",
  6587. "mode",
  6588. "name",
  6589. "type",
  6590. "updateTime"
  6591. ]
  6592. },
  6593. "isAuthorized": {
  6594. "type": "boolean"
  6595. }
  6596. },
  6597. "required": ["isSuccess", "code", "result", "isAuthorized"]
  6598. },
  6599. "example": {
  6600. "isSuccess": true,
  6601. "code": 1,
  6602. "result": {
  6603. "avatar": "",
  6604. "config": {
  6605. "advanced_config": {
  6606. "enable_query_expansion": true,
  6607. "enable_rewrite": true,
  6608. "fallback_prompt": "",
  6609. "fallback_response": "",
  6610. "fallback_strategy": "model",
  6611. "rewrite_prompt_system": "",
  6612. "rewrite_prompt_user": ""
  6613. },
  6614. "basic_config": {
  6615. "agent_mode": "quick-answer",
  6616. "agent_type": "rag-qa",
  6617. "context_template": "",
  6618. "suggested_prompts": [],
  6619. "system_prompt": ""
  6620. },
  6621. "faq_config": {
  6622. "faq_direct_answer_threshold": 0.9,
  6623. "faq_priority_enabled": true,
  6624. "faq_score_boost": 1.2
  6625. },
  6626. "img_vlm_config": {
  6627. "image_storage_provider": "local",
  6628. "image_upload_enabled": false,
  6629. "vlm_model_id": ""
  6630. },
  6631. "kb_config": {
  6632. "kb_selection_mode": "all",
  6633. "knowledge_bases": [],
  6634. "retrieve_kb_only_when_mentioned": false,
  6635. "supported_file_types": []
  6636. },
  6637. "model_config": {
  6638. "max_completion_tokens": 2048,
  6639. "model_id": "ea1598d8-1578-4ce3-8898-c47981e00e2a",
  6640. "rerank_model_id": "569ae4d9-4af2-46f4-b8cc-4676044c7369",
  6641. "temperature": 0.7,
  6642. "thinking": false
  6643. },
  6644. "multiple_config": {
  6645. "history_turns": 5,
  6646. "multi_turn_enabled": true
  6647. },
  6648. "search_config": {
  6649. "embedding_top_k": 10,
  6650. "keyword_threshold": 0.3,
  6651. "rerank_threshold": 0.5,
  6652. "rerank_top_k": 5,
  6653. "vector_threshold": 0.5
  6654. },
  6655. "setting_config": {
  6656. "allowed_tools": [
  6657. "knowledge_search",
  6658. "grep_chunks",
  6659. "list_knowledge_chunks",
  6660. "get_document_info",
  6661. "final_answer"
  6662. ],
  6663. "max_iterations": 10,
  6664. "mcp_selection_mode": "all",
  6665. "mcp_services": [],
  6666. "selected_skills": [],
  6667. "skills_selection_mode": "none"
  6668. },
  6669. "web_search_config": {
  6670. "web_fetch_enabled": false,
  6671. "web_fetch_top_n": 3,
  6672. "web_search_enabled": false,
  6673. "web_search_max_results": 5
  6674. }
  6675. },
  6676. "creationTime": "2026-05-12 20:16:36",
  6677. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  6678. "description": "快速问答-描述",
  6679. "id": "3b5d7624-aa12-4c14-a58f-5a238f78377f",
  6680. "isDeleted": false,
  6681. "is_builtin": false,
  6682. "mode": "quick-answer",
  6683. "name": "快速问答-智能体",
  6684. "type": "rag-qa",
  6685. "updateTime": "2026-05-12 20:16:36"
  6686. },
  6687. "isAuthorized": true
  6688. }
  6689. }
  6690. },
  6691. "headers": {}
  6692. }
  6693. },
  6694. "security": []
  6695. }
  6696. },
  6697. "/api/ai/agent/create": {
  6698. "post": {
  6699. "summary": "创建智能体",
  6700. "deprecated": false,
  6701. "description": "",
  6702. "tags": ["AgentApplication"],
  6703. "parameters": [
  6704. {
  6705. "name": "Authorization",
  6706. "in": "header",
  6707. "description": "",
  6708. "example": "bpm_client_1513029045627916288",
  6709. "schema": {
  6710. "type": "string",
  6711. "default": "bpm_client_1513029045627916288"
  6712. }
  6713. }
  6714. ],
  6715. "requestBody": {
  6716. "content": {
  6717. "application/json": {
  6718. "schema": {
  6719. "type": "object",
  6720. "properties": {
  6721. "name": {
  6722. "type": "string"
  6723. },
  6724. "description": {
  6725. "type": "string"
  6726. },
  6727. "avatar": {
  6728. "type": "string"
  6729. },
  6730. "mode": {
  6731. "type": "string"
  6732. },
  6733. "config": {
  6734. "type": "object",
  6735. "properties": {
  6736. "basic_config": {
  6737. "type": "object",
  6738. "properties": {
  6739. "system_prompt": {
  6740. "type": "string"
  6741. }
  6742. },
  6743. "required": ["system_prompt"]
  6744. },
  6745. "model_config": {
  6746. "type": "object",
  6747. "properties": {
  6748. "model_id": {
  6749. "type": "string"
  6750. },
  6751. "rerank_model_id": {
  6752. "type": "string"
  6753. },
  6754. "temperature": {
  6755. "type": "number"
  6756. },
  6757. "max_completion_tokens": {
  6758. "type": "integer"
  6759. },
  6760. "thinking": {
  6761. "type": "boolean"
  6762. }
  6763. },
  6764. "required": [
  6765. "model_id",
  6766. "rerank_model_id",
  6767. "temperature",
  6768. "max_completion_tokens",
  6769. "thinking"
  6770. ]
  6771. },
  6772. "setting_config": {
  6773. "type": "object",
  6774. "properties": {
  6775. "max_iterations": {
  6776. "type": "integer"
  6777. },
  6778. "mcp_selection_mode": {
  6779. "type": "string"
  6780. },
  6781. "mcp_services": {
  6782. "type": "array",
  6783. "items": {
  6784. "type": "string"
  6785. }
  6786. }
  6787. },
  6788. "required": ["max_iterations", "mcp_selection_mode", "mcp_services"]
  6789. },
  6790. "kb_config": {
  6791. "type": "object",
  6792. "properties": {
  6793. "kb_selection_mode": {
  6794. "type": "string"
  6795. },
  6796. "knowledge_bases": {
  6797. "type": "array",
  6798. "items": {
  6799. "type": "string"
  6800. }
  6801. },
  6802. "retrieve_kb_only_when_mentioned": {
  6803. "type": "boolean"
  6804. },
  6805. "supported_file_types": {
  6806. "type": "array",
  6807. "items": {
  6808. "type": "string"
  6809. }
  6810. }
  6811. },
  6812. "required": [
  6813. "kb_selection_mode",
  6814. "knowledge_bases",
  6815. "retrieve_kb_only_when_mentioned",
  6816. "supported_file_types"
  6817. ]
  6818. },
  6819. "img_vlm_config": {
  6820. "type": "object",
  6821. "properties": {
  6822. "image_upload_enabled": {
  6823. "type": "boolean"
  6824. },
  6825. "vlm_model_id": {
  6826. "type": "string"
  6827. },
  6828. "image_storage_provider": {
  6829. "type": "string"
  6830. }
  6831. },
  6832. "required": [
  6833. "image_upload_enabled",
  6834. "vlm_model_id",
  6835. "image_storage_provider"
  6836. ]
  6837. },
  6838. "faq_config": {
  6839. "type": "object",
  6840. "properties": {
  6841. "faq_priority_enabled": {
  6842. "type": "boolean"
  6843. },
  6844. "faq_direct_answer_threshold": {
  6845. "type": "number"
  6846. },
  6847. "faq_score_boost": {
  6848. "type": "number"
  6849. }
  6850. },
  6851. "required": [
  6852. "faq_priority_enabled",
  6853. "faq_direct_answer_threshold",
  6854. "faq_score_boost"
  6855. ]
  6856. },
  6857. "web_search_config": {
  6858. "type": "object",
  6859. "properties": {
  6860. "web_search_enabled": {
  6861. "type": "boolean"
  6862. },
  6863. "web_search_max_results": {
  6864. "type": "integer"
  6865. },
  6866. "web_search_provider_id": {
  6867. "type": "string"
  6868. },
  6869. "web_fetch_enabled": {
  6870. "type": "boolean"
  6871. },
  6872. "web_fetch_top_n": {
  6873. "type": "integer"
  6874. }
  6875. },
  6876. "required": [
  6877. "web_search_enabled",
  6878. "web_search_max_results",
  6879. "web_search_provider_id",
  6880. "web_fetch_enabled",
  6881. "web_fetch_top_n"
  6882. ]
  6883. },
  6884. "multiple_config": {
  6885. "type": "object",
  6886. "properties": {
  6887. "multi_turn_enabled": {
  6888. "type": "boolean"
  6889. },
  6890. "history_turns": {
  6891. "type": "integer"
  6892. }
  6893. },
  6894. "required": ["multi_turn_enabled", "history_turns"]
  6895. },
  6896. "search_config": {
  6897. "type": "object",
  6898. "properties": {
  6899. "embedding_top_k": {
  6900. "type": "integer"
  6901. },
  6902. "keyword_threshold": {
  6903. "type": "number"
  6904. },
  6905. "vector_threshold": {
  6906. "type": "number"
  6907. },
  6908. "rerank_top_k": {
  6909. "type": "integer"
  6910. },
  6911. "rerank_threshold": {
  6912. "type": "number"
  6913. }
  6914. },
  6915. "required": [
  6916. "embedding_top_k",
  6917. "keyword_threshold",
  6918. "vector_threshold",
  6919. "rerank_top_k",
  6920. "rerank_threshold"
  6921. ]
  6922. },
  6923. "advanced_config": {
  6924. "type": "object",
  6925. "properties": {
  6926. "enable_query_expansion": {
  6927. "type": "boolean"
  6928. },
  6929. "enable_rewrite": {
  6930. "type": "boolean"
  6931. },
  6932. "rewrite_prompt_system": {
  6933. "type": "string"
  6934. },
  6935. "rewrite_prompt_user": {
  6936. "type": "string"
  6937. },
  6938. "fallback_strategy": {
  6939. "type": "string"
  6940. },
  6941. "fallback_response": {
  6942. "type": "string"
  6943. },
  6944. "fallback_prompt": {
  6945. "type": "string"
  6946. }
  6947. },
  6948. "required": [
  6949. "enable_query_expansion",
  6950. "enable_rewrite",
  6951. "rewrite_prompt_system",
  6952. "rewrite_prompt_user",
  6953. "fallback_strategy",
  6954. "fallback_response",
  6955. "fallback_prompt"
  6956. ]
  6957. }
  6958. },
  6959. "required": [
  6960. "basic_config",
  6961. "model_config",
  6962. "setting_config",
  6963. "kb_config",
  6964. "img_vlm_config",
  6965. "faq_config",
  6966. "web_search_config",
  6967. "multiple_config",
  6968. "search_config",
  6969. "advanced_config"
  6970. ]
  6971. }
  6972. },
  6973. "required": ["name", "description", "avatar", "mode", "config"]
  6974. },
  6975. "examples": {
  6976. "1": {
  6977. "value": {
  6978. "name": "快速问答-智能体",
  6979. "description": "快速问答-描述",
  6980. "avatar": "",
  6981. "mode": "quick-answer",
  6982. "config": {
  6983. "basic_config": {
  6984. "system_prompt": "",
  6985. "context_template": ""
  6986. },
  6987. "model_config": {
  6988. "model_id": "ea1598d8-1578-4ce3-8898-c47981e00e2a",
  6989. "rerank_model_id": "569ae4d9-4af2-46f4-b8cc-4676044c7369",
  6990. "temperature": 0.7,
  6991. "max_completion_tokens": 2048,
  6992. "thinking": false
  6993. },
  6994. "setting_config": {
  6995. "max_iterations": 10,
  6996. "mcp_selection_mode": "all",
  6997. "mcp_services": []
  6998. },
  6999. "kb_config": {
  7000. "kb_selection_mode": "all",
  7001. "knowledge_bases": [],
  7002. "retrieve_kb_only_when_mentioned": false,
  7003. "supported_file_types": []
  7004. },
  7005. "img_vlm_config": {
  7006. "image_upload_enabled": false,
  7007. "vlm_model_id": "",
  7008. "image_storage_provider": "local"
  7009. },
  7010. "faq_config": {
  7011. "faq_priority_enabled": true,
  7012. "faq_direct_answer_threshold": 0.9,
  7013. "faq_score_boost": 1.2
  7014. },
  7015. "web_search_config": {
  7016. "web_search_enabled": false,
  7017. "web_search_max_results": 5,
  7018. "web_search_provider_id": "",
  7019. "web_fetch_enabled": false,
  7020. "web_fetch_top_n": 3
  7021. },
  7022. "multiple_config": {
  7023. "multi_turn_enabled": true,
  7024. "history_turns": 5
  7025. },
  7026. "search_config": {
  7027. "embedding_top_k": 10,
  7028. "keyword_threshold": 0.3,
  7029. "vector_threshold": 0.5,
  7030. "rerank_top_k": 5,
  7031. "rerank_threshold": 0.5
  7032. },
  7033. "advanced_config": {
  7034. "enable_query_expansion": true,
  7035. "enable_rewrite": true,
  7036. "rewrite_prompt_system": "",
  7037. "rewrite_prompt_user": "",
  7038. "fallback_strategy": "model",
  7039. "fallback_response": "",
  7040. "fallback_prompt": ""
  7041. }
  7042. }
  7043. },
  7044. "summary": "快速问答"
  7045. },
  7046. "2": {
  7047. "value": {
  7048. "name": "智能推理-RAG问答-智能体",
  7049. "description": "智能推理-RAG问答-描述",
  7050. "avatar": "",
  7051. "mode": "smart-reasoning",
  7052. "config": {
  7053. "basic_config": {
  7054. "system_prompt": ""
  7055. },
  7056. "model_config": {
  7057. "model_id": "ea1598d8-1578-4ce3-8898-c47981e00e2a",
  7058. "rerank_model_id": "569ae4d9-4af2-46f4-b8cc-4676044c7369",
  7059. "temperature": 0.7,
  7060. "max_completion_tokens": 2048,
  7061. "thinking": false
  7062. },
  7063. "setting_config": {
  7064. "max_iterations": 10,
  7065. "mcp_selection_mode": "all",
  7066. "mcp_services": []
  7067. },
  7068. "kb_config": {
  7069. "kb_selection_mode": "all",
  7070. "knowledge_bases": [],
  7071. "retrieve_kb_only_when_mentioned": false,
  7072. "supported_file_types": []
  7073. },
  7074. "img_vlm_config": {
  7075. "image_upload_enabled": false,
  7076. "vlm_model_id": "",
  7077. "image_storage_provider": "local"
  7078. },
  7079. "faq_config": {
  7080. "faq_priority_enabled": true,
  7081. "faq_direct_answer_threshold": 0.9,
  7082. "faq_score_boost": 1.2
  7083. },
  7084. "web_search_config": {
  7085. "web_search_enabled": false,
  7086. "web_search_max_results": 5,
  7087. "web_search_provider_id": "",
  7088. "web_fetch_enabled": false,
  7089. "web_fetch_top_n": 3
  7090. },
  7091. "multiple_config": {
  7092. "multi_turn_enabled": true,
  7093. "history_turns": 5
  7094. },
  7095. "search_config": {
  7096. "embedding_top_k": 10,
  7097. "keyword_threshold": 0.3,
  7098. "vector_threshold": 0.5,
  7099. "rerank_top_k": 5,
  7100. "rerank_threshold": 0.5
  7101. },
  7102. "advanced_config": {
  7103. "enable_query_expansion": true,
  7104. "enable_rewrite": true,
  7105. "rewrite_prompt_system": "",
  7106. "rewrite_prompt_user": "",
  7107. "fallback_strategy": "model",
  7108. "fallback_response": "",
  7109. "fallback_prompt": ""
  7110. }
  7111. }
  7112. },
  7113. "summary": "智能推理RAG问答"
  7114. }
  7115. }
  7116. }
  7117. },
  7118. "required": true
  7119. },
  7120. "responses": {
  7121. "200": {
  7122. "description": "",
  7123. "content": {
  7124. "application/json": {
  7125. "schema": {
  7126. "type": "object",
  7127. "properties": {
  7128. "isSuccess": {
  7129. "type": "boolean"
  7130. },
  7131. "code": {
  7132. "type": "integer"
  7133. },
  7134. "isAuthorized": {
  7135. "type": "boolean"
  7136. }
  7137. },
  7138. "required": ["isSuccess", "code", "isAuthorized"]
  7139. },
  7140. "example": {
  7141. "isSuccess": true,
  7142. "code": 1,
  7143. "isAuthorized": true
  7144. }
  7145. }
  7146. },
  7147. "headers": {}
  7148. }
  7149. },
  7150. "security": []
  7151. }
  7152. },
  7153. "/api/ai/agent/update": {
  7154. "post": {
  7155. "summary": "修改智能体",
  7156. "deprecated": false,
  7157. "description": "",
  7158. "tags": ["AgentApplication"],
  7159. "parameters": [
  7160. {
  7161. "name": "Authorization",
  7162. "in": "header",
  7163. "description": "",
  7164. "example": "bpm_client_1513029045627916288",
  7165. "schema": {
  7166. "type": "string",
  7167. "default": "bpm_client_1513029045627916288"
  7168. }
  7169. }
  7170. ],
  7171. "requestBody": {
  7172. "content": {
  7173. "application/json": {
  7174. "schema": {
  7175. "type": "object",
  7176. "properties": {
  7177. "id": {
  7178. "type": "string"
  7179. },
  7180. "name": {
  7181. "type": "string"
  7182. },
  7183. "description": {
  7184. "type": "string"
  7185. },
  7186. "avatar": {
  7187. "type": "string"
  7188. },
  7189. "mode": {
  7190. "type": "string"
  7191. },
  7192. "config": {
  7193. "type": "object",
  7194. "properties": {
  7195. "basic_config": {
  7196. "type": "object",
  7197. "properties": {
  7198. "system_prompt": {
  7199. "type": "string"
  7200. }
  7201. },
  7202. "required": ["system_prompt"]
  7203. },
  7204. "model_config": {
  7205. "type": "object",
  7206. "properties": {
  7207. "model_id": {
  7208. "type": "string"
  7209. },
  7210. "rerank_model_id": {
  7211. "type": "string"
  7212. },
  7213. "temperature": {
  7214. "type": "number"
  7215. },
  7216. "max_completion_tokens": {
  7217. "type": "integer"
  7218. },
  7219. "thinking": {
  7220. "type": "boolean"
  7221. }
  7222. },
  7223. "required": [
  7224. "model_id",
  7225. "rerank_model_id",
  7226. "temperature",
  7227. "max_completion_tokens",
  7228. "thinking"
  7229. ]
  7230. },
  7231. "setting_config": {
  7232. "type": "object",
  7233. "properties": {
  7234. "max_iterations": {
  7235. "type": "integer"
  7236. },
  7237. "mcp_selection_mode": {
  7238. "type": "string"
  7239. },
  7240. "mcp_services": {
  7241. "type": "array",
  7242. "items": {
  7243. "type": "string"
  7244. }
  7245. }
  7246. },
  7247. "required": ["max_iterations", "mcp_selection_mode", "mcp_services"]
  7248. },
  7249. "kb_config": {
  7250. "type": "object",
  7251. "properties": {
  7252. "kb_selection_mode": {
  7253. "type": "string"
  7254. },
  7255. "knowledge_bases": {
  7256. "type": "array",
  7257. "items": {
  7258. "type": "string"
  7259. }
  7260. },
  7261. "retrieve_kb_only_when_mentioned": {
  7262. "type": "boolean"
  7263. },
  7264. "supported_file_types": {
  7265. "type": "array",
  7266. "items": {
  7267. "type": "string"
  7268. }
  7269. }
  7270. },
  7271. "required": [
  7272. "kb_selection_mode",
  7273. "knowledge_bases",
  7274. "retrieve_kb_only_when_mentioned",
  7275. "supported_file_types"
  7276. ]
  7277. },
  7278. "img_vlm_config": {
  7279. "type": "object",
  7280. "properties": {
  7281. "image_upload_enabled": {
  7282. "type": "boolean"
  7283. },
  7284. "vlm_model_id": {
  7285. "type": "string"
  7286. },
  7287. "image_storage_provider": {
  7288. "type": "string"
  7289. }
  7290. },
  7291. "required": [
  7292. "image_upload_enabled",
  7293. "vlm_model_id",
  7294. "image_storage_provider"
  7295. ]
  7296. },
  7297. "faq_config": {
  7298. "type": "object",
  7299. "properties": {
  7300. "faq_priority_enabled": {
  7301. "type": "boolean"
  7302. },
  7303. "faq_direct_answer_threshold": {
  7304. "type": "number"
  7305. },
  7306. "faq_score_boost": {
  7307. "type": "number"
  7308. }
  7309. },
  7310. "required": [
  7311. "faq_priority_enabled",
  7312. "faq_direct_answer_threshold",
  7313. "faq_score_boost"
  7314. ]
  7315. },
  7316. "web_search_config": {
  7317. "type": "object",
  7318. "properties": {
  7319. "web_search_enabled": {
  7320. "type": "boolean"
  7321. },
  7322. "web_search_max_results": {
  7323. "type": "integer"
  7324. },
  7325. "web_search_provider_id": {
  7326. "type": "string"
  7327. },
  7328. "web_fetch_enabled": {
  7329. "type": "boolean"
  7330. },
  7331. "web_fetch_top_n": {
  7332. "type": "integer"
  7333. }
  7334. },
  7335. "required": [
  7336. "web_search_enabled",
  7337. "web_search_max_results",
  7338. "web_search_provider_id",
  7339. "web_fetch_enabled",
  7340. "web_fetch_top_n"
  7341. ]
  7342. },
  7343. "multiple_config": {
  7344. "type": "object",
  7345. "properties": {
  7346. "multi_turn_enabled": {
  7347. "type": "boolean"
  7348. },
  7349. "history_turns": {
  7350. "type": "integer"
  7351. }
  7352. },
  7353. "required": ["multi_turn_enabled", "history_turns"]
  7354. },
  7355. "search_config": {
  7356. "type": "object",
  7357. "properties": {
  7358. "embedding_top_k": {
  7359. "type": "integer"
  7360. },
  7361. "keyword_threshold": {
  7362. "type": "number"
  7363. },
  7364. "vector_threshold": {
  7365. "type": "number"
  7366. },
  7367. "rerank_top_k": {
  7368. "type": "integer"
  7369. },
  7370. "rerank_threshold": {
  7371. "type": "number"
  7372. }
  7373. },
  7374. "required": [
  7375. "embedding_top_k",
  7376. "keyword_threshold",
  7377. "vector_threshold",
  7378. "rerank_top_k",
  7379. "rerank_threshold"
  7380. ]
  7381. },
  7382. "advanced_config": {
  7383. "type": "object",
  7384. "properties": {
  7385. "enable_query_expansion": {
  7386. "type": "boolean"
  7387. },
  7388. "enable_rewrite": {
  7389. "type": "boolean"
  7390. },
  7391. "rewrite_prompt_system": {
  7392. "type": "string"
  7393. },
  7394. "rewrite_prompt_user": {
  7395. "type": "string"
  7396. },
  7397. "fallback_strategy": {
  7398. "type": "string"
  7399. },
  7400. "fallback_response": {
  7401. "type": "string"
  7402. },
  7403. "fallback_prompt": {
  7404. "type": "string"
  7405. }
  7406. },
  7407. "required": [
  7408. "enable_query_expansion",
  7409. "enable_rewrite",
  7410. "rewrite_prompt_system",
  7411. "rewrite_prompt_user",
  7412. "fallback_strategy",
  7413. "fallback_response",
  7414. "fallback_prompt"
  7415. ]
  7416. }
  7417. },
  7418. "required": [
  7419. "basic_config",
  7420. "model_config",
  7421. "setting_config",
  7422. "kb_config",
  7423. "img_vlm_config",
  7424. "faq_config",
  7425. "web_search_config",
  7426. "multiple_config",
  7427. "search_config",
  7428. "advanced_config"
  7429. ]
  7430. }
  7431. },
  7432. "required": ["id", "name", "description", "avatar", "mode", "config"]
  7433. },
  7434. "examples": {
  7435. "1": {
  7436. "value": {
  7437. "id": "3b5d7624-aa12-4c14-a58f-5a238f78377f",
  7438. "name": "快速问答-智能体",
  7439. "description": "快速问答-描述",
  7440. "avatar": "",
  7441. "mode": "quick-answer",
  7442. "config": {
  7443. "basic_config": {
  7444. "system_prompt": ""
  7445. },
  7446. "model_config": {
  7447. "model_id": "ea1598d8-1578-4ce3-8898-c47981e00e2a",
  7448. "rerank_model_id": "569ae4d9-4af2-46f4-b8cc-4676044c7369",
  7449. "temperature": 0.7,
  7450. "max_completion_tokens": 2048,
  7451. "thinking": false
  7452. },
  7453. "setting_config": {
  7454. "max_iterations": 10,
  7455. "mcp_selection_mode": "all",
  7456. "mcp_services": []
  7457. },
  7458. "kb_config": {
  7459. "kb_selection_mode": "all",
  7460. "knowledge_bases": [],
  7461. "retrieve_kb_only_when_mentioned": false,
  7462. "supported_file_types": []
  7463. },
  7464. "img_vlm_config": {
  7465. "image_upload_enabled": false,
  7466. "vlm_model_id": "",
  7467. "image_storage_provider": "local"
  7468. },
  7469. "faq_config": {
  7470. "faq_priority_enabled": true,
  7471. "faq_direct_answer_threshold": 0.9,
  7472. "faq_score_boost": 1.2
  7473. },
  7474. "web_search_config": {
  7475. "web_search_enabled": false,
  7476. "web_search_max_results": 5,
  7477. "web_search_provider_id": "",
  7478. "web_fetch_enabled": false,
  7479. "web_fetch_top_n": 3
  7480. },
  7481. "multiple_config": {
  7482. "multi_turn_enabled": true,
  7483. "history_turns": 5
  7484. },
  7485. "search_config": {
  7486. "embedding_top_k": 10,
  7487. "keyword_threshold": 0.3,
  7488. "vector_threshold": 0.5,
  7489. "rerank_top_k": 5,
  7490. "rerank_threshold": 0.5
  7491. },
  7492. "advanced_config": {
  7493. "enable_query_expansion": true,
  7494. "enable_rewrite": true,
  7495. "rewrite_prompt_system": "",
  7496. "rewrite_prompt_user": "",
  7497. "fallback_strategy": "model",
  7498. "fallback_response": "",
  7499. "fallback_prompt": ""
  7500. }
  7501. }
  7502. },
  7503. "summary": "快速问答"
  7504. },
  7505. "2": {
  7506. "value": {
  7507. "id": "7b91c87a-66b8-45aa-ad29-9c432a47a9d8",
  7508. "name": "智能推理-RAG问答-智能体",
  7509. "description": "智能推理-RAG问答-描述",
  7510. "avatar": "",
  7511. "mode": "smart-reasoning",
  7512. "config": {
  7513. "basic_config": {
  7514. "system_prompt": ""
  7515. },
  7516. "model_config": {
  7517. "model_id": "ea1598d8-1578-4ce3-8898-c47981e00e2a",
  7518. "rerank_model_id": "569ae4d9-4af2-46f4-b8cc-4676044c7369",
  7519. "temperature": 0.7,
  7520. "max_completion_tokens": 2048,
  7521. "thinking": false
  7522. },
  7523. "setting_config": {
  7524. "max_iterations": 10,
  7525. "mcp_selection_mode": "all",
  7526. "mcp_services": []
  7527. },
  7528. "kb_config": {
  7529. "kb_selection_mode": "all",
  7530. "knowledge_bases": [],
  7531. "retrieve_kb_only_when_mentioned": false,
  7532. "supported_file_types": []
  7533. },
  7534. "img_vlm_config": {
  7535. "image_upload_enabled": false,
  7536. "vlm_model_id": "",
  7537. "image_storage_provider": "local"
  7538. },
  7539. "faq_config": {
  7540. "faq_priority_enabled": true,
  7541. "faq_direct_answer_threshold": 0.9,
  7542. "faq_score_boost": 1.2
  7543. },
  7544. "web_search_config": {
  7545. "web_search_enabled": false,
  7546. "web_search_max_results": 5,
  7547. "web_search_provider_id": "",
  7548. "web_fetch_enabled": false,
  7549. "web_fetch_top_n": 3
  7550. },
  7551. "multiple_config": {
  7552. "multi_turn_enabled": true,
  7553. "history_turns": 5
  7554. },
  7555. "search_config": {
  7556. "embedding_top_k": 10,
  7557. "keyword_threshold": 0.3,
  7558. "vector_threshold": 0.5,
  7559. "rerank_top_k": 5,
  7560. "rerank_threshold": 0.5
  7561. },
  7562. "advanced_config": {
  7563. "enable_query_expansion": true,
  7564. "enable_rewrite": true,
  7565. "rewrite_prompt_system": "",
  7566. "rewrite_prompt_user": "",
  7567. "fallback_strategy": "model",
  7568. "fallback_response": "",
  7569. "fallback_prompt": ""
  7570. }
  7571. }
  7572. },
  7573. "summary": "智能推理RAG问答"
  7574. }
  7575. }
  7576. }
  7577. },
  7578. "required": true
  7579. },
  7580. "responses": {
  7581. "200": {
  7582. "description": "",
  7583. "content": {
  7584. "application/json": {
  7585. "schema": {
  7586. "type": "object",
  7587. "properties": {
  7588. "isSuccess": {
  7589. "type": "boolean"
  7590. },
  7591. "code": {
  7592. "type": "integer"
  7593. },
  7594. "isAuthorized": {
  7595. "type": "boolean"
  7596. }
  7597. },
  7598. "required": ["isSuccess", "code", "isAuthorized"]
  7599. },
  7600. "example": {
  7601. "isSuccess": true,
  7602. "code": 1,
  7603. "isAuthorized": true
  7604. }
  7605. }
  7606. },
  7607. "headers": {}
  7608. }
  7609. },
  7610. "security": []
  7611. }
  7612. },
  7613. "/api/ai/agent/delete": {
  7614. "post": {
  7615. "summary": "删除智能体",
  7616. "deprecated": false,
  7617. "description": "",
  7618. "tags": ["AgentApplication"],
  7619. "parameters": [
  7620. {
  7621. "name": "Authorization",
  7622. "in": "header",
  7623. "description": "",
  7624. "example": "bpm_client_1513029045627916288",
  7625. "schema": {
  7626. "type": "string",
  7627. "default": "bpm_client_1513029045627916288"
  7628. }
  7629. }
  7630. ],
  7631. "requestBody": {
  7632. "content": {
  7633. "application/json": {
  7634. "schema": {
  7635. "type": "object",
  7636. "properties": {
  7637. "id": {
  7638. "type": "string"
  7639. }
  7640. },
  7641. "required": ["id"]
  7642. },
  7643. "example": {
  7644. "id": "f38a66ef-e517-4730-b3ea-4d79e8869a41"
  7645. }
  7646. }
  7647. },
  7648. "required": true
  7649. },
  7650. "responses": {
  7651. "200": {
  7652. "description": "",
  7653. "content": {
  7654. "application/json": {
  7655. "schema": {
  7656. "type": "object",
  7657. "properties": {
  7658. "isSuccess": {
  7659. "type": "boolean"
  7660. },
  7661. "code": {
  7662. "type": "integer"
  7663. },
  7664. "isAuthorized": {
  7665. "type": "boolean"
  7666. }
  7667. },
  7668. "required": ["isSuccess", "code", "isAuthorized"]
  7669. },
  7670. "example": {
  7671. "isSuccess": true,
  7672. "code": 1,
  7673. "isAuthorized": true
  7674. }
  7675. }
  7676. },
  7677. "headers": {}
  7678. }
  7679. },
  7680. "security": []
  7681. }
  7682. },
  7683. "/api/ai/agent/tools": {
  7684. "post": {
  7685. "summary": "获取智能体可以使用的工具列表",
  7686. "deprecated": false,
  7687. "description": "",
  7688. "tags": ["AgentApplication"],
  7689. "parameters": [
  7690. {
  7691. "name": "Authorization",
  7692. "in": "header",
  7693. "description": "",
  7694. "example": "bpm_client_1513029045627916288",
  7695. "schema": {
  7696. "type": "string",
  7697. "default": "bpm_client_1513029045627916288"
  7698. }
  7699. }
  7700. ],
  7701. "requestBody": {
  7702. "content": {
  7703. "application/json": {
  7704. "schema": {
  7705. "type": "object",
  7706. "properties": {}
  7707. },
  7708. "example": {}
  7709. }
  7710. },
  7711. "required": true
  7712. },
  7713. "responses": {
  7714. "200": {
  7715. "description": "",
  7716. "content": {
  7717. "application/json": {
  7718. "schema": {
  7719. "type": "object",
  7720. "properties": {
  7721. "isSuccess": {
  7722. "type": "boolean"
  7723. },
  7724. "code": {
  7725. "type": "integer"
  7726. },
  7727. "result": {
  7728. "type": "array",
  7729. "items": {
  7730. "type": "object",
  7731. "properties": {
  7732. "description": {
  7733. "type": "string"
  7734. },
  7735. "label": {
  7736. "type": "string"
  7737. },
  7738. "name": {
  7739. "type": "string"
  7740. }
  7741. },
  7742. "required": ["description", "label", "name"]
  7743. }
  7744. },
  7745. "isAuthorized": {
  7746. "type": "boolean"
  7747. }
  7748. },
  7749. "required": ["isSuccess", "code", "result", "isAuthorized"]
  7750. },
  7751. "example": {
  7752. "isSuccess": true,
  7753. "code": 1,
  7754. "result": [
  7755. {
  7756. "description": "动态和反思性的问题解决思考工具",
  7757. "label": "思考",
  7758. "name": "thinking"
  7759. },
  7760. {
  7761. "description": "创建结构化的研究计划",
  7762. "label": "制定计划",
  7763. "name": "todo_write"
  7764. },
  7765. {
  7766. "description": "快速定位包含特定关键词的文档和分块",
  7767. "label": "关键词搜索",
  7768. "name": "grep_chunks"
  7769. },
  7770. {
  7771. "description": "理解问题并查找语义相关内容",
  7772. "label": "语义搜索",
  7773. "name": "knowledge_search"
  7774. },
  7775. {
  7776. "description": "获取文档完整分块内容",
  7777. "label": "查看文档分块",
  7778. "name": "list_knowledge_chunks"
  7779. },
  7780. {
  7781. "description": "从知识图谱中查询关系",
  7782. "label": "查询知识图谱",
  7783. "name": "query_knowledge_graph"
  7784. },
  7785. {
  7786. "description": "查看文档元数据",
  7787. "label": "获取文档信息",
  7788. "name": "get_document_info"
  7789. },
  7790. {
  7791. "description": "查询数据库中的信息",
  7792. "label": "查询数据库",
  7793. "name": "database_query"
  7794. },
  7795. {
  7796. "description": "理解数据文件并进行数据分析",
  7797. "label": "数据分析",
  7798. "name": "data_analysis"
  7799. },
  7800. {
  7801. "description": "获取表格文件的元信息",
  7802. "label": "查看数据元信息",
  7803. "name": "data_schema"
  7804. },
  7805. {
  7806. "description": "按需读取技能内容以学习专业能力",
  7807. "label": "读取技能",
  7808. "name": "read_skill"
  7809. },
  7810. {
  7811. "description": "在沙箱环境中执行技能脚本",
  7812. "label": "执行技能脚本",
  7813. "name": "execute_skill_script"
  7814. },
  7815. {
  7816. "description": "提交最终回答给用户",
  7817. "label": "提交最终回答",
  7818. "name": "final_answer"
  7819. },
  7820. {
  7821. "description": "读取指定的Wiki页面内容",
  7822. "label": "读取Wiki页面",
  7823. "name": "wiki_read_page"
  7824. },
  7825. {
  7826. "description": "在Wiki中搜索页面",
  7827. "label": "搜索Wiki",
  7828. "name": "wiki_search"
  7829. },
  7830. {
  7831. "description": "使用知识点深入阅读特定原始文档",
  7832. "label": "精读源文档",
  7833. "name": "wiki_read_source_doc"
  7834. },
  7835. {
  7836. "description": "标记页面中存在的事实错误或合并冲突问题",
  7837. "label": "标记Wiki问题",
  7838. "name": "wiki_flag_issue"
  7839. },
  7840. {
  7841. "description": "创建新页面或完全覆盖已有页面",
  7842. "label": "创建/覆盖Wiki",
  7843. "name": "wiki_write_page"
  7844. },
  7845. {
  7846. "description": "替换Wiki页面中的特定文本",
  7847. "label": "局部替换Wiki",
  7848. "name": "wiki_replace_text"
  7849. },
  7850. {
  7851. "description": "重命名Wiki页面并自动更新关联链接",
  7852. "label": "重命名Wiki",
  7853. "name": "wiki_rename_page"
  7854. },
  7855. {
  7856. "description": "删除Wiki页面并自动清理关联死链",
  7857. "label": "删除Wiki",
  7858. "name": "wiki_delete_page"
  7859. },
  7860. {
  7861. "description": "查看特定的Wiki页面问题详情",
  7862. "label": "查看Wiki问题",
  7863. "name": "wiki_read_issue"
  7864. },
  7865. {
  7866. "description": "更新特定的Wiki页面问题状态",
  7867. "label": "更新Wiki问题状态",
  7868. "name": "wiki_update_issue"
  7869. }
  7870. ],
  7871. "isAuthorized": true
  7872. }
  7873. }
  7874. },
  7875. "headers": {}
  7876. }
  7877. },
  7878. "security": []
  7879. }
  7880. },
  7881. "/api/ai/agent/group-tools": {
  7882. "post": {
  7883. "summary": "获取智能体可以使用的分组工具列表",
  7884. "deprecated": false,
  7885. "description": "",
  7886. "tags": ["AgentApplication"],
  7887. "parameters": [
  7888. {
  7889. "name": "Authorization",
  7890. "in": "header",
  7891. "description": "",
  7892. "example": "bpm_client_1514278006082768896",
  7893. "schema": {
  7894. "type": "string"
  7895. }
  7896. }
  7897. ],
  7898. "requestBody": {
  7899. "content": {
  7900. "application/json": {
  7901. "schema": {
  7902. "type": "object",
  7903. "properties": {}
  7904. },
  7905. "example": {}
  7906. }
  7907. },
  7908. "required": true
  7909. },
  7910. "responses": {
  7911. "200": {
  7912. "description": "",
  7913. "content": {
  7914. "application/json": {
  7915. "schema": {
  7916. "type": "object",
  7917. "properties": {
  7918. "isSuccess": {
  7919. "type": "boolean"
  7920. },
  7921. "code": {
  7922. "type": "integer"
  7923. },
  7924. "result": {
  7925. "type": "array",
  7926. "items": {
  7927. "type": "object",
  7928. "properties": {
  7929. "name": {
  7930. "type": "string"
  7931. },
  7932. "tools": {
  7933. "type": "array",
  7934. "items": {
  7935. "type": "object",
  7936. "properties": {
  7937. "description": {
  7938. "type": "string"
  7939. },
  7940. "label": {
  7941. "type": "string"
  7942. },
  7943. "name": {
  7944. "type": "string"
  7945. }
  7946. },
  7947. "required": ["description", "label", "name"]
  7948. }
  7949. }
  7950. },
  7951. "required": ["name", "tools"]
  7952. }
  7953. },
  7954. "isAuthorized": {
  7955. "type": "boolean"
  7956. }
  7957. },
  7958. "required": ["isSuccess", "code", "result", "isAuthorized"]
  7959. },
  7960. "example": {
  7961. "isSuccess": true,
  7962. "code": 1,
  7963. "result": [
  7964. {
  7965. "name": "基础",
  7966. "tools": [
  7967. {
  7968. "description": "动态和反思性的问题解决思考工具",
  7969. "label": "思考",
  7970. "name": "thinking"
  7971. },
  7972. {
  7973. "description": "创建结构化的研究计划",
  7974. "label": "制定计划",
  7975. "name": "todo_write"
  7976. }
  7977. ]
  7978. },
  7979. {
  7980. "name": "知识库检索(RAG)",
  7981. "tools": [
  7982. {
  7983. "description": "快速定位包含特定关键词的文档和分块",
  7984. "label": "关键词搜索",
  7985. "name": "grep_chunks"
  7986. },
  7987. {
  7988. "description": "理解问题并查找语义相关内容",
  7989. "label": "语义搜索",
  7990. "name": "knowledge_search"
  7991. },
  7992. {
  7993. "description": "获取文档完整分块内容",
  7994. "label": "查看文档分块",
  7995. "name": "list_knowledge_chunks"
  7996. },
  7997. {
  7998. "description": "从知识图谱中查询关系",
  7999. "label": "查询知识图谱",
  8000. "name": "query_knowledge_graph"
  8001. },
  8002. {
  8003. "description": "查看文档元数据",
  8004. "label": "获取文档信息",
  8005. "name": "get_document_info"
  8006. },
  8007. {
  8008. "description": "查询数据库中的信息",
  8009. "label": "查询数据库",
  8010. "name": "database_query"
  8011. }
  8012. ]
  8013. },
  8014. {
  8015. "name": "Wiki 读取",
  8016. "tools": [
  8017. {
  8018. "description": "读取指定的Wiki页面内容",
  8019. "label": "读取Wiki页面",
  8020. "name": "wiki_read_page"
  8021. },
  8022. {
  8023. "description": "在Wiki中搜索页面",
  8024. "label": "搜索Wiki",
  8025. "name": "wiki_search"
  8026. },
  8027. {
  8028. "description": "使用知识点深入阅读特定原始文档",
  8029. "label": "精读源文档",
  8030. "name": "wiki_read_source_doc"
  8031. },
  8032. {
  8033. "description": "标记页面中存在的事实错误或合并冲突问题",
  8034. "label": "标记Wiki问题",
  8035. "name": "wiki_flag_issue"
  8036. }
  8037. ]
  8038. },
  8039. {
  8040. "name": "Wiki 编辑",
  8041. "tools": [
  8042. {
  8043. "description": "创建新页面或完全覆盖已有页面",
  8044. "label": "创建/覆盖Wiki",
  8045. "name": "wiki_write_page"
  8046. },
  8047. {
  8048. "description": "替换Wiki页面中的特定文本",
  8049. "label": "局部替换Wiki",
  8050. "name": "wiki_replace_text"
  8051. },
  8052. {
  8053. "description": "重命名Wiki页面并自动更新关联链接",
  8054. "label": "重命名Wiki",
  8055. "name": "wiki_rename_page"
  8056. },
  8057. {
  8058. "description": "删除Wiki页面并自动清理关联死链",
  8059. "label": "删除Wiki",
  8060. "name": "wiki_delete_page"
  8061. }
  8062. ]
  8063. },
  8064. {
  8065. "name": "Wiki 巡检",
  8066. "tools": [
  8067. {
  8068. "description": "查看特定的Wiki页面问题详情",
  8069. "label": "查看Wiki问题",
  8070. "name": "wiki_read_issue"
  8071. },
  8072. {
  8073. "description": "更新特定的Wiki页面问题状态",
  8074. "label": "更新Wiki问题状态",
  8075. "name": "wiki_update_issue"
  8076. }
  8077. ]
  8078. },
  8079. {
  8080. "name": "数据分析",
  8081. "tools": [
  8082. {
  8083. "description": "理解数据文件并进行数据分析",
  8084. "label": "数据分析",
  8085. "name": "data_analysis"
  8086. },
  8087. {
  8088. "description": "获取表格文件的元信息",
  8089. "label": "查看数据元信息",
  8090. "name": "data_schema"
  8091. }
  8092. ]
  8093. }
  8094. ],
  8095. "isAuthorized": true
  8096. }
  8097. }
  8098. },
  8099. "headers": {}
  8100. }
  8101. },
  8102. "security": []
  8103. }
  8104. }
  8105. },
  8106. "components": {
  8107. "schemas": {
  8108. "AgentNode": {
  8109. "type": "object",
  8110. "properties": {
  8111. "appAgentId": {
  8112. "type": "string",
  8113. "format": "uuid"
  8114. },
  8115. "creationTime": {
  8116. "type": "string",
  8117. "format": "date-time"
  8118. },
  8119. "creatorUserId": {
  8120. "type": "string",
  8121. "format": "uuid"
  8122. },
  8123. "data": {
  8124. "$ref": "#/components/schemas/NodeData"
  8125. },
  8126. "height": {
  8127. "type": "integer"
  8128. },
  8129. "id": {
  8130. "type": "string",
  8131. "format": "uuid"
  8132. },
  8133. "isDeleted": {
  8134. "type": "boolean"
  8135. },
  8136. "position": {
  8137. "type": "object",
  8138. "properties": {
  8139. "x": {
  8140. "type": "integer"
  8141. },
  8142. "y": {
  8143. "type": "integer"
  8144. }
  8145. },
  8146. "required": ["x", "y"]
  8147. },
  8148. "selected": {
  8149. "type": "boolean"
  8150. },
  8151. "type": {
  8152. "type": "string",
  8153. "enum": ["custom", "start", "end", "condition", "task", "http-request"]
  8154. },
  8155. "updateTime": {
  8156. "type": "string",
  8157. "format": "date-time"
  8158. },
  8159. "width": {
  8160. "type": "integer"
  8161. },
  8162. "zIndex": {
  8163. "type": "integer"
  8164. }
  8165. },
  8166. "required": [
  8167. "appAgentId",
  8168. "creationTime",
  8169. "creatorUserId",
  8170. "data",
  8171. "id",
  8172. "position",
  8173. "type"
  8174. ]
  8175. },
  8176. "NodeData": {
  8177. "type": "object",
  8178. "properties": {
  8179. "outputs": {
  8180. "type": "array",
  8181. "items": {
  8182. "type": "object",
  8183. "properties": {
  8184. "name": {
  8185. "type": "string"
  8186. },
  8187. "describe": {
  8188. "type": "string"
  8189. },
  8190. "type": {
  8191. "type": "string",
  8192. "enum": ["string", "number", "boolean", "object", "array"]
  8193. }
  8194. },
  8195. "required": ["name", "describe", "type"]
  8196. }
  8197. },
  8198. "output_can_alter": {
  8199. "type": "boolean"
  8200. },
  8201. "variables": {
  8202. "type": "array",
  8203. "items": {
  8204. "type": "string"
  8205. }
  8206. },
  8207. "method": {
  8208. "type": "string",
  8209. "enum": ["get", "post", "put", "delete", "patch", "head", "options"]
  8210. },
  8211. "ssl_verify": {
  8212. "type": "boolean"
  8213. },
  8214. "isInIteration": {
  8215. "type": "boolean"
  8216. },
  8217. "default_value": {
  8218. "type": "array",
  8219. "items": {
  8220. "type": "string"
  8221. }
  8222. },
  8223. "body": {
  8224. "$ref": "#/components/schemas/RequestBody"
  8225. },
  8226. "params": {
  8227. "type": "array",
  8228. "items": {
  8229. "type": "string"
  8230. }
  8231. },
  8232. "title": {
  8233. "type": "string"
  8234. },
  8235. "type": {
  8236. "type": "string",
  8237. "enum": ["http-request", "condition", "task"]
  8238. },
  8239. "error_strategy": {
  8240. "type": "string",
  8241. "enum": ["none", "retry", "abort", "continue"]
  8242. },
  8243. "retry_config": {
  8244. "type": "object",
  8245. "properties": {
  8246. "max_retries": {
  8247. "type": "integer",
  8248. "minimum": 0,
  8249. "maximum": 10
  8250. },
  8251. "retry_enabled": {
  8252. "type": "boolean"
  8253. },
  8254. "retry_interval": {
  8255. "type": "integer",
  8256. "minimum": 0,
  8257. "maximum": 5000
  8258. }
  8259. },
  8260. "required": ["max_retries", "retry_enabled", "retry_interval"]
  8261. },
  8262. "url": {
  8263. "type": "string",
  8264. "format": "uri"
  8265. },
  8266. "authorization": {
  8267. "type": "object",
  8268. "properties": {
  8269. "type": {
  8270. "type": "string",
  8271. "enum": ["none", "bearer", "basic", "api-key"]
  8272. },
  8273. "config": {
  8274. "type": "object",
  8275. "properties": {
  8276. "api_key": {
  8277. "type": "string"
  8278. },
  8279. "header": {
  8280. "type": "string"
  8281. },
  8282. "type": {
  8283. "type": "string"
  8284. }
  8285. }
  8286. }
  8287. },
  8288. "required": ["type", "config"]
  8289. },
  8290. "timeout_config": {
  8291. "type": "object",
  8292. "properties": {
  8293. "max_write_timeout": {
  8294. "type": "integer",
  8295. "minimum": 0
  8296. },
  8297. "max_read_timeout": {
  8298. "type": "integer",
  8299. "minimum": 0
  8300. },
  8301. "max_connect_timeout": {
  8302. "type": "integer",
  8303. "minimum": 0
  8304. }
  8305. },
  8306. "required": ["max_write_timeout", "max_read_timeout", "max_connect_timeout"]
  8307. },
  8308. "heads": {
  8309. "type": "array",
  8310. "items": {
  8311. "$ref": "#/components/schemas/HttpHeader"
  8312. }
  8313. },
  8314. "selected": {
  8315. "type": "boolean"
  8316. },
  8317. "desc": {
  8318. "type": "string"
  8319. },
  8320. "isInLoop": {
  8321. "type": "boolean"
  8322. }
  8323. },
  8324. "required": ["outputs", "method", "title", "type", "url"]
  8325. },
  8326. "RequestBody": {
  8327. "type": "object",
  8328. "properties": {
  8329. "data": {
  8330. "type": "array",
  8331. "items": {
  8332. "$ref": "#/components/schemas/RequestDataItem"
  8333. }
  8334. },
  8335. "type": {
  8336. "type": "string",
  8337. "enum": ["json", "form-data", "x-www-form-urlencoded", "raw", "binary"]
  8338. }
  8339. },
  8340. "required": ["data", "type"]
  8341. },
  8342. "RequestDataItem": {
  8343. "type": "object",
  8344. "properties": {
  8345. "type": {
  8346. "type": "string",
  8347. "enum": ["text", "file", "json"]
  8348. },
  8349. "value": {
  8350. "type": "string"
  8351. },
  8352. "key": {
  8353. "type": "string"
  8354. }
  8355. },
  8356. "required": ["type", "value"]
  8357. },
  8358. "HttpHeader": {
  8359. "type": "object",
  8360. "properties": {
  8361. "name": {
  8362. "type": "string"
  8363. },
  8364. "value": {
  8365. "type": "string"
  8366. }
  8367. },
  8368. "required": ["name", "value"]
  8369. }
  8370. },
  8371. "securitySchemes": {
  8372. "ApiKeyAuth": {
  8373. "type": "apiKey",
  8374. "in": "header",
  8375. "name": "Authorization"
  8376. }
  8377. }
  8378. },
  8379. "security": [
  8380. {
  8381. "ApiKeyAuth": []
  8382. }
  8383. ]
  8384. }