agent.openapi.json 211 KB

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