agent.openapi.json 233 KB

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