agent.openapi.json 233 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585
  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. "query": {
  4571. "type": "string"
  4572. },
  4573. "files": {
  4574. "type": "array",
  4575. "items": {
  4576. "type": "string"
  4577. }
  4578. }
  4579. },
  4580. "required": ["appAgentId", "start_node_id", "is_debugger", "responseType", "params"]
  4581. },
  4582. "example": {
  4583. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  4584. "start_node_id": "492048da-6f33-4a36-adc5-cff4b973b053",
  4585. "is_debugger": true,
  4586. "responseType": "sse",
  4587. "params": {}
  4588. }
  4589. }
  4590. },
  4591. "required": true
  4592. },
  4593. "responses": {
  4594. "200": {
  4595. "description": "",
  4596. "content": {
  4597. "application/json": {
  4598. "schema": {
  4599. "type": "object",
  4600. "properties": {
  4601. "isSuccess": {
  4602. "type": "boolean"
  4603. },
  4604. "code": {
  4605. "type": "integer"
  4606. },
  4607. "result": {
  4608. "type": "string"
  4609. },
  4610. "isAuthorized": {
  4611. "type": "boolean"
  4612. }
  4613. },
  4614. "required": ["isSuccess", "code", "result", "isAuthorized"]
  4615. },
  4616. "example": {
  4617. "isSuccess": true,
  4618. "code": 1,
  4619. "result": "05d08317-6fb5-4af4-b0de-8365b4d8183e",
  4620. "isAuthorized": true
  4621. }
  4622. }
  4623. },
  4624. "headers": {}
  4625. }
  4626. },
  4627. "security": []
  4628. }
  4629. },
  4630. "/api/agent/getPrevNodeOutVariableList": {
  4631. "post": {
  4632. "summary": "根据节点id,获取节点之前的所有变量列表",
  4633. "deprecated": false,
  4634. "description": "",
  4635. "tags": ["Agent"],
  4636. "parameters": [
  4637. {
  4638. "name": "Authorization",
  4639. "in": "header",
  4640. "description": "",
  4641. "example": "bpm_client_1492899187547705344",
  4642. "schema": {
  4643. "type": "string",
  4644. "default": "bpm_client_1492899187547705344"
  4645. }
  4646. }
  4647. ],
  4648. "requestBody": {
  4649. "content": {
  4650. "application/json": {
  4651. "schema": {
  4652. "type": "object",
  4653. "properties": {
  4654. "node_id": {
  4655. "type": "string"
  4656. },
  4657. "varTypeList": {
  4658. "type": "array",
  4659. "items": {
  4660. "type": "string"
  4661. }
  4662. }
  4663. },
  4664. "required": ["node_id", "varTypeList"]
  4665. },
  4666. "example": {
  4667. "node_id": "3ba96b4e-25c2-486a-be27-94ab9957aba1",
  4668. "varTypeList": []
  4669. }
  4670. }
  4671. },
  4672. "required": true
  4673. },
  4674. "responses": {
  4675. "200": {
  4676. "description": "",
  4677. "content": {
  4678. "application/json": {
  4679. "schema": {
  4680. "type": "object",
  4681. "properties": {
  4682. "isSuccess": {
  4683. "type": "boolean"
  4684. },
  4685. "code": {
  4686. "type": "integer"
  4687. },
  4688. "result": {
  4689. "type": "array",
  4690. "items": {
  4691. "type": "object",
  4692. "properties": {
  4693. "id": {
  4694. "type": "string"
  4695. },
  4696. "name": {
  4697. "type": "string"
  4698. },
  4699. "variableList": {
  4700. "type": "array",
  4701. "items": {
  4702. "type": "object",
  4703. "properties": {
  4704. "expression": {
  4705. "type": "string"
  4706. },
  4707. "name": {
  4708. "type": "string"
  4709. },
  4710. "type": {
  4711. "type": "string"
  4712. }
  4713. },
  4714. "required": ["expression", "name", "type"]
  4715. }
  4716. }
  4717. },
  4718. "required": ["id", "name", "variableList"]
  4719. }
  4720. },
  4721. "isAuthorized": {
  4722. "type": "boolean"
  4723. }
  4724. },
  4725. "required": ["isSuccess", "code", "result", "isAuthorized"]
  4726. },
  4727. "example": {
  4728. "isSuccess": true,
  4729. "code": 1,
  4730. "result": [
  4731. {
  4732. "id": "74bc1d79-b51e-4279-b7e9-c0029a1ac154",
  4733. "name": "迭代 1",
  4734. "type": "iteration",
  4735. "variableList": [
  4736. {
  4737. "expression": "#{74bc1d79-b51e-4279-b7e9-c0029a1ac154.outputs}",
  4738. "name": "outputs",
  4739. "type": "array[string]"
  4740. }
  4741. ]
  4742. },
  4743. {
  4744. "id": "cae0c279-c1aa-40b6-9702-1df2af104a9b",
  4745. "name": "循环 1",
  4746. "type": "loop",
  4747. "variableList": [
  4748. {
  4749. "expression": "#{cae0c279-c1aa-40b6-9702-1df2af104a9b.aa}",
  4750. "name": "aa",
  4751. "type": "array[number]"
  4752. },
  4753. {
  4754. "expression": "#{cae0c279-c1aa-40b6-9702-1df2af104a9b.ifout}",
  4755. "name": "ifout",
  4756. "type": "boolean"
  4757. }
  4758. ]
  4759. },
  4760. {
  4761. "id": "c91eb026-e86a-418f-a865-a98aa60bcf19",
  4762. "name": "代码执行 1",
  4763. "type": "code",
  4764. "variableList": [
  4765. {
  4766. "expression": "#{c91eb026-e86a-418f-a865-a98aa60bcf19.result}",
  4767. "name": "result",
  4768. "type": "array[string]"
  4769. }
  4770. ]
  4771. },
  4772. {
  4773. "id": "env",
  4774. "name": "环境变量",
  4775. "variableList": [
  4776. {
  4777. "expression": "#{env.api_address}",
  4778. "name": "api_address",
  4779. "type": "string"
  4780. }
  4781. ]
  4782. },
  4783. {
  4784. "id": "sys",
  4785. "name": "系统变量",
  4786. "variableList": [
  4787. {
  4788. "expression": "sys.app_id",
  4789. "name": "app_id",
  4790. "type": "string"
  4791. },
  4792. {
  4793. "expression": "sys.user_id",
  4794. "name": "user_id",
  4795. "type": "string"
  4796. },
  4797. {
  4798. "expression": "sys.run_id",
  4799. "name": "run_id",
  4800. "type": "string"
  4801. },
  4802. {
  4803. "expression": "sys.files",
  4804. "name": "files",
  4805. "type": "array[file]"
  4806. }
  4807. ]
  4808. }
  4809. ],
  4810. "isAuthorized": true
  4811. }
  4812. }
  4813. },
  4814. "headers": {}
  4815. }
  4816. },
  4817. "security": []
  4818. }
  4819. },
  4820. "/api/agent/getAgentNodeLastRunnerLogs": {
  4821. "post": {
  4822. "summary": "获取智能体节点的最后一次运行日志",
  4823. "deprecated": false,
  4824. "description": "",
  4825. "tags": ["Agent"],
  4826. "parameters": [
  4827. {
  4828. "name": "Authorization",
  4829. "in": "header",
  4830. "description": "",
  4831. "example": "bpm_client_1492899187547705344",
  4832. "schema": {
  4833. "type": "string",
  4834. "default": "bpm_client_1492899187547705344"
  4835. }
  4836. }
  4837. ],
  4838. "requestBody": {
  4839. "content": {
  4840. "application/json": {
  4841. "schema": {
  4842. "type": "object",
  4843. "properties": {
  4844. "node_id": {
  4845. "type": "string"
  4846. }
  4847. },
  4848. "required": ["node_id"]
  4849. },
  4850. "example": {
  4851. "node_id": "3ba96b4e-25c2-486a-be27-94ab9957aba1"
  4852. }
  4853. }
  4854. },
  4855. "required": true
  4856. },
  4857. "responses": {
  4858. "200": {
  4859. "description": "",
  4860. "content": {
  4861. "application/json": {
  4862. "schema": {
  4863. "type": "object",
  4864. "properties": {
  4865. "isSuccess": {
  4866. "type": "boolean"
  4867. },
  4868. "code": {
  4869. "type": "integer"
  4870. },
  4871. "result": {
  4872. "type": "object",
  4873. "properties": {
  4874. "appAgentId": {
  4875. "type": "string"
  4876. },
  4877. "appAgentNodeId": {
  4878. "type": "string"
  4879. },
  4880. "appAgentRunnerId": {
  4881. "type": "string"
  4882. },
  4883. "creationTime": {
  4884. "type": "string"
  4885. },
  4886. "errorMsg": {
  4887. "type": "string"
  4888. },
  4889. "id": {
  4890. "type": "string"
  4891. },
  4892. "isDeleted": {
  4893. "type": "boolean"
  4894. },
  4895. "raw": {
  4896. "type": "object",
  4897. "properties": {
  4898. "agent_node_id": {
  4899. "type": "string"
  4900. },
  4901. "children": {
  4902. "type": "array",
  4903. "items": {
  4904. "type": "string"
  4905. }
  4906. },
  4907. "end_time": {
  4908. "type": "integer"
  4909. },
  4910. "input_variable": {
  4911. "type": "object",
  4912. "properties": {
  4913. "str": {
  4914. "type": "string"
  4915. }
  4916. },
  4917. "required": ["str"]
  4918. },
  4919. "is_success": {
  4920. "type": "boolean"
  4921. },
  4922. "node_name": {
  4923. "type": "string"
  4924. },
  4925. "node_type": {
  4926. "type": "string"
  4927. },
  4928. "output_variable": {
  4929. "type": "object",
  4930. "properties": {
  4931. "result": {
  4932. "type": "array",
  4933. "items": {
  4934. "type": "string"
  4935. }
  4936. }
  4937. },
  4938. "required": ["result"]
  4939. },
  4940. "start_time": {
  4941. "type": "integer"
  4942. },
  4943. "use_time": {
  4944. "type": "integer"
  4945. }
  4946. },
  4947. "required": [
  4948. "agent_node_id",
  4949. "children",
  4950. "end_time",
  4951. "input_variable",
  4952. "is_success",
  4953. "node_name",
  4954. "node_type",
  4955. "output_variable",
  4956. "start_time",
  4957. "use_time"
  4958. ]
  4959. },
  4960. "status": {
  4961. "type": "string"
  4962. },
  4963. "updateTime": {
  4964. "type": "string"
  4965. },
  4966. "useTime": {
  4967. "type": "integer"
  4968. }
  4969. },
  4970. "required": [
  4971. "appAgentId",
  4972. "appAgentNodeId",
  4973. "appAgentRunnerId",
  4974. "creationTime",
  4975. "errorMsg",
  4976. "id",
  4977. "isDeleted",
  4978. "raw",
  4979. "status",
  4980. "updateTime",
  4981. "useTime"
  4982. ]
  4983. },
  4984. "isAuthorized": {
  4985. "type": "boolean"
  4986. }
  4987. },
  4988. "required": ["isSuccess", "code", "result", "isAuthorized"]
  4989. },
  4990. "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}"
  4991. }
  4992. },
  4993. "headers": {}
  4994. }
  4995. },
  4996. "security": []
  4997. }
  4998. },
  4999. "/api/agent/doAgentPublish": {
  5000. "post": {
  5001. "summary": "发布智能体",
  5002. "deprecated": false,
  5003. "description": "",
  5004. "tags": ["Agent"],
  5005. "parameters": [
  5006. {
  5007. "name": "Authorization",
  5008. "in": "header",
  5009. "description": "",
  5010. "example": "bpm_client_1496159371585916928",
  5011. "schema": {
  5012. "type": "string",
  5013. "default": "bpm_client_1496159371585916928"
  5014. }
  5015. }
  5016. ],
  5017. "requestBody": {
  5018. "content": {
  5019. "application/json": {
  5020. "schema": {
  5021. "type": "object",
  5022. "properties": {
  5023. "start_node_id": {
  5024. "type": "string"
  5025. },
  5026. "appAgentId": {
  5027. "type": "string",
  5028. "format": "uuid"
  5029. }
  5030. },
  5031. "required": ["start_node_id", "appAgentId"]
  5032. },
  5033. "example": {
  5034. "start_node_id": "3ba96b4e-25c2-486a-be27-94ab9957aba1"
  5035. }
  5036. }
  5037. },
  5038. "required": true
  5039. },
  5040. "responses": {
  5041. "200": {
  5042. "description": "",
  5043. "content": {
  5044. "application/json": {
  5045. "schema": {
  5046. "type": "object",
  5047. "properties": {
  5048. "isSuccess": {
  5049. "type": "boolean"
  5050. },
  5051. "code": {
  5052. "type": "integer"
  5053. },
  5054. "isAuthorized": {
  5055. "type": "boolean"
  5056. }
  5057. },
  5058. "required": ["isSuccess", "code", "isAuthorized"]
  5059. },
  5060. "example": {
  5061. "isSuccess": true,
  5062. "code": 1,
  5063. "isAuthorized": true
  5064. }
  5065. }
  5066. },
  5067. "headers": {}
  5068. }
  5069. },
  5070. "security": []
  5071. }
  5072. },
  5073. "/api/agent/getAgentMonacoEditorCompletions": {
  5074. "post": {
  5075. "summary": "获取智能体MonacoEditor提示器配置对象",
  5076. "deprecated": false,
  5077. "description": "",
  5078. "tags": ["Agent"],
  5079. "parameters": [
  5080. {
  5081. "name": "Authorization",
  5082. "in": "header",
  5083. "description": "",
  5084. "example": "bpm_client_1499247893062619136",
  5085. "schema": {
  5086. "type": "string",
  5087. "default": "bpm_client_1499247893062619136"
  5088. }
  5089. }
  5090. ],
  5091. "requestBody": {
  5092. "content": {
  5093. "application/json": {
  5094. "schema": {
  5095. "type": "object",
  5096. "properties": {}
  5097. },
  5098. "example": {}
  5099. }
  5100. },
  5101. "required": true
  5102. },
  5103. "responses": {
  5104. "200": {
  5105. "description": "",
  5106. "content": {
  5107. "application/json": {
  5108. "schema": {
  5109. "type": "object",
  5110. "properties": {
  5111. "isSuccess": {
  5112. "type": "boolean"
  5113. },
  5114. "code": {
  5115. "type": "integer"
  5116. },
  5117. "result": {
  5118. "type": "object",
  5119. "properties": {
  5120. "javascript": {
  5121. "type": "array",
  5122. "items": {
  5123. "type": "object",
  5124. "properties": {
  5125. "methods": {
  5126. "type": "array",
  5127. "items": {
  5128. "type": "string"
  5129. }
  5130. },
  5131. "object": {
  5132. "type": "string"
  5133. },
  5134. "properties": {
  5135. "type": "array",
  5136. "items": {
  5137. "type": "object",
  5138. "properties": {
  5139. "detail": {
  5140. "type": "string"
  5141. },
  5142. "documentation": {
  5143. "type": "string"
  5144. },
  5145. "insertText": {
  5146. "type": "string"
  5147. },
  5148. "kind": {
  5149. "type": "string"
  5150. },
  5151. "label": {
  5152. "type": "string"
  5153. },
  5154. "snippet": {
  5155. "type": "boolean"
  5156. }
  5157. },
  5158. "required": [
  5159. "detail",
  5160. "documentation",
  5161. "insertText",
  5162. "kind",
  5163. "label",
  5164. "snippet"
  5165. ]
  5166. }
  5167. },
  5168. "triggerCharacters": {
  5169. "type": "array",
  5170. "items": {
  5171. "type": "string"
  5172. }
  5173. }
  5174. },
  5175. "required": ["methods", "object", "properties", "triggerCharacters"]
  5176. }
  5177. }
  5178. },
  5179. "required": ["javascript"]
  5180. },
  5181. "isAuthorized": {
  5182. "type": "boolean"
  5183. }
  5184. },
  5185. "required": ["isSuccess", "code", "result", "isAuthorized"]
  5186. },
  5187. "example": {
  5188. "isSuccess": true,
  5189. "code": 1,
  5190. "result": {
  5191. "javascript": [
  5192. {
  5193. "methods": [],
  5194. "object": "user_mstr",
  5195. "properties": [
  5196. {
  5197. "detail": "Date creation_time",
  5198. "documentation": "creation_time",
  5199. "insertText": "creation_time",
  5200. "kind": "property",
  5201. "label": "creation_time",
  5202. "snippet": false
  5203. },
  5204. {
  5205. "detail": "String creation_user",
  5206. "documentation": "creation_user",
  5207. "insertText": "creation_user",
  5208. "kind": "property",
  5209. "label": "creation_user",
  5210. "snippet": false
  5211. },
  5212. {
  5213. "detail": "Date update_time",
  5214. "documentation": "update_time",
  5215. "insertText": "update_time",
  5216. "kind": "property",
  5217. "label": "update_time",
  5218. "snippet": false
  5219. },
  5220. {
  5221. "detail": "String update_user",
  5222. "documentation": "update_user",
  5223. "insertText": "update_user",
  5224. "kind": "property",
  5225. "label": "update_user",
  5226. "snippet": false
  5227. },
  5228. {
  5229. "detail": "Date delete_time",
  5230. "documentation": "delete_time",
  5231. "insertText": "delete_time",
  5232. "kind": "property",
  5233. "label": "delete_time",
  5234. "snippet": false
  5235. },
  5236. {
  5237. "detail": "String delete_user",
  5238. "documentation": "delete_user",
  5239. "insertText": "delete_user",
  5240. "kind": "property",
  5241. "label": "delete_user",
  5242. "snippet": false
  5243. },
  5244. {
  5245. "detail": "Boolean is_deleted",
  5246. "documentation": "is_deleted",
  5247. "insertText": "is_deleted",
  5248. "kind": "property",
  5249. "label": "is_deleted",
  5250. "snippet": false
  5251. },
  5252. {
  5253. "detail": "String user_code",
  5254. "documentation": "user_code",
  5255. "insertText": "user_code",
  5256. "kind": "property",
  5257. "label": "user_code",
  5258. "snippet": false
  5259. },
  5260. {
  5261. "detail": "String name",
  5262. "documentation": "name",
  5263. "insertText": "name",
  5264. "kind": "property",
  5265. "label": "name",
  5266. "snippet": false
  5267. },
  5268. {
  5269. "detail": "Integer age",
  5270. "documentation": "age",
  5271. "insertText": "age",
  5272. "kind": "property",
  5273. "label": "age",
  5274. "snippet": false
  5275. },
  5276. {
  5277. "detail": "Date borndate",
  5278. "documentation": "borndate",
  5279. "insertText": "borndate",
  5280. "kind": "property",
  5281. "label": "borndate",
  5282. "snippet": false
  5283. }
  5284. ],
  5285. "triggerCharacters": ["."]
  5286. },
  5287. {
  5288. "methods": [],
  5289. "object": "test_mstr",
  5290. "properties": [
  5291. {
  5292. "detail": "Date test_creation_time",
  5293. "documentation": "test_creation_time",
  5294. "insertText": "test_creation_time",
  5295. "kind": "property",
  5296. "label": "test_creation_time",
  5297. "snippet": false
  5298. },
  5299. {
  5300. "detail": "String test_creation_user",
  5301. "documentation": "test_creation_user",
  5302. "insertText": "test_creation_user",
  5303. "kind": "property",
  5304. "label": "test_creation_user",
  5305. "snippet": false
  5306. },
  5307. {
  5308. "detail": "Date test_update_time",
  5309. "documentation": "test_update_time",
  5310. "insertText": "test_update_time",
  5311. "kind": "property",
  5312. "label": "test_update_time",
  5313. "snippet": false
  5314. },
  5315. {
  5316. "detail": "String test_update_user",
  5317. "documentation": "test_update_user",
  5318. "insertText": "test_update_user",
  5319. "kind": "property",
  5320. "label": "test_update_user",
  5321. "snippet": false
  5322. },
  5323. {
  5324. "detail": "Date test_delete_time",
  5325. "documentation": "test_delete_time",
  5326. "insertText": "test_delete_time",
  5327. "kind": "property",
  5328. "label": "test_delete_time",
  5329. "snippet": false
  5330. },
  5331. {
  5332. "detail": "String test_delete_user",
  5333. "documentation": "test_delete_user",
  5334. "insertText": "test_delete_user",
  5335. "kind": "property",
  5336. "label": "test_delete_user",
  5337. "snippet": false
  5338. },
  5339. {
  5340. "detail": "Boolean test_is_deleted",
  5341. "documentation": "test_is_deleted",
  5342. "insertText": "test_is_deleted",
  5343. "kind": "property",
  5344. "label": "test_is_deleted",
  5345. "snippet": false
  5346. }
  5347. ],
  5348. "triggerCharacters": ["."]
  5349. },
  5350. {
  5351. "methods": [],
  5352. "object": "test3_mstr",
  5353. "properties": [
  5354. {
  5355. "detail": "String taskId",
  5356. "documentation": "taskId",
  5357. "insertText": "taskId",
  5358. "kind": "property",
  5359. "label": "taskId",
  5360. "snippet": false
  5361. },
  5362. {
  5363. "detail": "String snNumber",
  5364. "documentation": "snNumber",
  5365. "insertText": "snNumber",
  5366. "kind": "property",
  5367. "label": "snNumber",
  5368. "snippet": false
  5369. },
  5370. {
  5371. "detail": "Integer taskStatus",
  5372. "documentation": "taskStatus",
  5373. "insertText": "taskStatus",
  5374. "kind": "property",
  5375. "label": "taskStatus",
  5376. "snippet": false
  5377. },
  5378. {
  5379. "detail": "Date creationTime",
  5380. "documentation": "creationTime",
  5381. "insertText": "creationTime",
  5382. "kind": "property",
  5383. "label": "creationTime",
  5384. "snippet": false
  5385. }
  5386. ],
  5387. "triggerCharacters": ["."]
  5388. },
  5389. {
  5390. "methods": [],
  5391. "object": "test2_mstr",
  5392. "properties": [
  5393. {
  5394. "detail": "String taskId",
  5395. "documentation": "taskId",
  5396. "insertText": "taskId",
  5397. "kind": "property",
  5398. "label": "taskId",
  5399. "snippet": false
  5400. },
  5401. {
  5402. "detail": "String snNumber",
  5403. "documentation": "snNumber",
  5404. "insertText": "snNumber",
  5405. "kind": "property",
  5406. "label": "snNumber",
  5407. "snippet": false
  5408. },
  5409. {
  5410. "detail": "Integer taskStatus",
  5411. "documentation": "taskStatus",
  5412. "insertText": "taskStatus",
  5413. "kind": "property",
  5414. "label": "taskStatus",
  5415. "snippet": false
  5416. },
  5417. {
  5418. "detail": "Date creationTime",
  5419. "documentation": "creationTime",
  5420. "insertText": "creationTime",
  5421. "kind": "property",
  5422. "label": "creationTime",
  5423. "snippet": false
  5424. }
  5425. ],
  5426. "triggerCharacters": ["."]
  5427. },
  5428. {
  5429. "methods": [],
  5430. "object": "test1_mstr",
  5431. "properties": [
  5432. {
  5433. "detail": "String taskId",
  5434. "documentation": "taskId",
  5435. "insertText": "taskId",
  5436. "kind": "property",
  5437. "label": "taskId",
  5438. "snippet": false
  5439. },
  5440. {
  5441. "detail": "String snNumber",
  5442. "documentation": "snNumber",
  5443. "insertText": "snNumber",
  5444. "kind": "property",
  5445. "label": "snNumber",
  5446. "snippet": false
  5447. },
  5448. {
  5449. "detail": "Integer taskStatus",
  5450. "documentation": "taskStatus",
  5451. "insertText": "taskStatus",
  5452. "kind": "property",
  5453. "label": "taskStatus",
  5454. "snippet": false
  5455. },
  5456. {
  5457. "detail": "Date creationTime",
  5458. "documentation": "creationTime",
  5459. "insertText": "creationTime",
  5460. "kind": "property",
  5461. "label": "creationTime",
  5462. "snippet": false
  5463. }
  5464. ],
  5465. "triggerCharacters": ["."]
  5466. },
  5467. {
  5468. "methods": [],
  5469. "object": "chat_mstr",
  5470. "properties": [
  5471. {
  5472. "detail": "Date creation_time",
  5473. "documentation": "creation_time",
  5474. "insertText": "creation_time",
  5475. "kind": "property",
  5476. "label": "creation_time",
  5477. "snippet": false
  5478. },
  5479. {
  5480. "detail": "String creation_user",
  5481. "documentation": "creation_user",
  5482. "insertText": "creation_user",
  5483. "kind": "property",
  5484. "label": "creation_user",
  5485. "snippet": false
  5486. },
  5487. {
  5488. "detail": "Date update_time",
  5489. "documentation": "update_time",
  5490. "insertText": "update_time",
  5491. "kind": "property",
  5492. "label": "update_time",
  5493. "snippet": false
  5494. },
  5495. {
  5496. "detail": "String update_user",
  5497. "documentation": "update_user",
  5498. "insertText": "update_user",
  5499. "kind": "property",
  5500. "label": "update_user",
  5501. "snippet": false
  5502. },
  5503. {
  5504. "detail": "Date delete_time",
  5505. "documentation": "delete_time",
  5506. "insertText": "delete_time",
  5507. "kind": "property",
  5508. "label": "delete_time",
  5509. "snippet": false
  5510. },
  5511. {
  5512. "detail": "String delete_user",
  5513. "documentation": "delete_user",
  5514. "insertText": "delete_user",
  5515. "kind": "property",
  5516. "label": "delete_user",
  5517. "snippet": false
  5518. },
  5519. {
  5520. "detail": "Boolean is_deleted",
  5521. "documentation": "is_deleted",
  5522. "insertText": "is_deleted",
  5523. "kind": "property",
  5524. "label": "is_deleted",
  5525. "snippet": false
  5526. },
  5527. {
  5528. "detail": "Integer sess_id",
  5529. "documentation": "sess_id",
  5530. "insertText": "sess_id",
  5531. "kind": "property",
  5532. "label": "sess_id",
  5533. "snippet": false
  5534. },
  5535. {
  5536. "detail": "String type",
  5537. "documentation": "type",
  5538. "insertText": "type",
  5539. "kind": "property",
  5540. "label": "type",
  5541. "snippet": false
  5542. },
  5543. {
  5544. "detail": "String uniq_key",
  5545. "documentation": "uniq_key",
  5546. "insertText": "uniq_key",
  5547. "kind": "property",
  5548. "label": "uniq_key",
  5549. "snippet": false
  5550. },
  5551. {
  5552. "detail": "String grp_name",
  5553. "documentation": "grp_name",
  5554. "insertText": "grp_name",
  5555. "kind": "property",
  5556. "label": "grp_name",
  5557. "snippet": false
  5558. },
  5559. {
  5560. "detail": "Integer creat_by",
  5561. "documentation": "creat_by",
  5562. "insertText": "creat_by",
  5563. "kind": "property",
  5564. "label": "creat_by",
  5565. "snippet": false
  5566. },
  5567. {
  5568. "detail": "Date creat_time",
  5569. "documentation": "creat_time",
  5570. "insertText": "creat_time",
  5571. "kind": "property",
  5572. "label": "creat_time",
  5573. "snippet": false
  5574. },
  5575. {
  5576. "detail": "String chat_code",
  5577. "documentation": "chat_code",
  5578. "insertText": "chat_code",
  5579. "kind": "property",
  5580. "label": "chat_code",
  5581. "snippet": false
  5582. }
  5583. ],
  5584. "triggerCharacters": ["."]
  5585. }
  5586. ]
  5587. },
  5588. "isAuthorized": true
  5589. }
  5590. }
  5591. },
  5592. "headers": {}
  5593. }
  5594. },
  5595. "security": []
  5596. }
  5597. },
  5598. "/api/agent/getSupportCustomAgentNodeYamlList": {
  5599. "post": {
  5600. "summary": "获取支持的自定义智能体节点yaml列表",
  5601. "deprecated": false,
  5602. "description": "",
  5603. "tags": ["Agent"],
  5604. "parameters": [
  5605. {
  5606. "name": "Authorization",
  5607. "in": "header",
  5608. "description": "",
  5609. "example": "bpm_client_1500870842102321152",
  5610. "schema": {
  5611. "type": "string",
  5612. "default": "bpm_client_1500870842102321152"
  5613. }
  5614. }
  5615. ],
  5616. "requestBody": {
  5617. "content": {
  5618. "application/json": {
  5619. "schema": {
  5620. "type": "object",
  5621. "properties": {}
  5622. },
  5623. "example": {}
  5624. }
  5625. },
  5626. "required": true
  5627. },
  5628. "responses": {
  5629. "200": {
  5630. "description": "",
  5631. "content": {
  5632. "application/json": {
  5633. "schema": {
  5634. "type": "object",
  5635. "properties": {
  5636. "isSuccess": {
  5637. "type": "boolean"
  5638. },
  5639. "code": {
  5640. "type": "integer"
  5641. },
  5642. "result": {
  5643. "type": "array",
  5644. "items": {
  5645. "type": "string"
  5646. }
  5647. },
  5648. "isAuthorized": {
  5649. "type": "boolean"
  5650. }
  5651. },
  5652. "required": ["isSuccess", "code", "result", "isAuthorized"]
  5653. },
  5654. "example": {
  5655. "isSuccess": true,
  5656. "code": 1,
  5657. "result": [
  5658. {
  5659. "identity": {
  5660. "author": "lyh",
  5661. "description": "test1 desc",
  5662. "icon24": "",
  5663. "icon40": "",
  5664. "label": "test1",
  5665. "name": "test1",
  5666. "type": "custom-module-AgentNodeTest1"
  5667. },
  5668. "parameters": [
  5669. {
  5670. "defaultValue": "",
  5671. "description": "",
  5672. "label": "name",
  5673. "llm_description": "",
  5674. "max": 3.4028234663852886e38,
  5675. "min": 0,
  5676. "name": "name",
  5677. "options": [],
  5678. "placeholder": "",
  5679. "required": false,
  5680. "type": "text-input"
  5681. }
  5682. ]
  5683. }
  5684. ],
  5685. "isAuthorized": true
  5686. }
  5687. }
  5688. },
  5689. "headers": {}
  5690. }
  5691. },
  5692. "security": []
  5693. }
  5694. },
  5695. "/api/ai/agent/selectList": {
  5696. "post": {
  5697. "summary": "获取智能体选择列表",
  5698. "deprecated": false,
  5699. "description": "",
  5700. "tags": ["AgentApplication"],
  5701. "parameters": [
  5702. {
  5703. "name": "Authorization",
  5704. "in": "header",
  5705. "description": "",
  5706. "example": "bpm_client_1513029045627916288",
  5707. "schema": {
  5708. "type": "string",
  5709. "default": "bpm_client_1513029045627916288"
  5710. }
  5711. }
  5712. ],
  5713. "requestBody": {
  5714. "content": {
  5715. "application/json": {
  5716. "schema": {
  5717. "type": "object",
  5718. "properties": {
  5719. "keyword": {
  5720. "type": "string"
  5721. },
  5722. "mode": {
  5723. "type": "string"
  5724. },
  5725. "type": {
  5726. "type": "string"
  5727. }
  5728. },
  5729. "required": []
  5730. },
  5731. "example": {
  5732. "keyword": "",
  5733. "mode": "quick-answer",
  5734. "type": "rag-qa"
  5735. }
  5736. }
  5737. },
  5738. "required": true
  5739. },
  5740. "responses": {
  5741. "200": {
  5742. "description": "",
  5743. "content": {
  5744. "application/json": {
  5745. "schema": {
  5746. "type": "object",
  5747. "properties": {
  5748. "isSuccess": {
  5749. "type": "boolean"
  5750. },
  5751. "code": {
  5752. "type": "integer"
  5753. },
  5754. "result": {
  5755. "type": "array",
  5756. "items": {
  5757. "type": "object",
  5758. "properties": {
  5759. "avatar": {
  5760. "type": "string"
  5761. },
  5762. "config": {
  5763. "type": "object",
  5764. "properties": {
  5765. "advanced_config": {
  5766. "type": "object",
  5767. "properties": {
  5768. "enable_query_expansion": { "type": "boolean" },
  5769. "enable_rewrite": { "type": "boolean" },
  5770. "fallback_prompt": { "type": "string" },
  5771. "fallback_response": { "type": "string" },
  5772. "fallback_strategy": { "type": "string" },
  5773. "rewrite_prompt_system": { "type": "string" },
  5774. "rewrite_prompt_user": { "type": "string" }
  5775. },
  5776. "required": [
  5777. "enable_query_expansion",
  5778. "enable_rewrite",
  5779. "fallback_prompt",
  5780. "fallback_response",
  5781. "fallback_strategy",
  5782. "rewrite_prompt_system",
  5783. "rewrite_prompt_user"
  5784. ]
  5785. },
  5786. "basic_config": {
  5787. "type": "object",
  5788. "properties": {
  5789. "agent_mode": { "type": "string" },
  5790. "agent_type": { "type": "string" },
  5791. "context_template": { "type": "string" },
  5792. "suggested_prompts": {
  5793. "type": "array",
  5794. "items": { "type": "string" }
  5795. },
  5796. "system_prompt": { "type": "string" }
  5797. },
  5798. "required": [
  5799. "agent_mode",
  5800. "agent_type",
  5801. "context_template",
  5802. "suggested_prompts",
  5803. "system_prompt"
  5804. ]
  5805. },
  5806. "model_config": {
  5807. "type": "object",
  5808. "properties": {
  5809. "max_completion_tokens": { "type": "integer" },
  5810. "model_id": { "type": "string" },
  5811. "temperature": { "type": "number" }
  5812. },
  5813. "required": ["max_completion_tokens", "model_id", "temperature"]
  5814. }
  5815. },
  5816. "required": ["advanced_config", "basic_config", "model_config"]
  5817. },
  5818. "creationTime": { "type": "string" },
  5819. "creatorUserId": { "type": "string" },
  5820. "description": { "type": "string" },
  5821. "id": { "type": "string" },
  5822. "isDeleted": { "type": "boolean" },
  5823. "is_builtin": { "type": "boolean" },
  5824. "mode": { "type": "string" },
  5825. "name": { "type": "string" },
  5826. "type": { "type": "string" },
  5827. "updateTime": { "type": "string" }
  5828. }
  5829. }
  5830. },
  5831. "isAuthorized": { "type": "boolean" }
  5832. },
  5833. "required": ["isSuccess", "code", "result", "isAuthorized"]
  5834. },
  5835. "example": {
  5836. "isSuccess": true,
  5837. "code": 1,
  5838. "result": [
  5839. {
  5840. "avatar": "",
  5841. "config": {
  5842. "advanced_config": {
  5843. "enable_query_expansion": true,
  5844. "enable_rewrite": true,
  5845. "fallback_prompt": "",
  5846. "fallback_response": "",
  5847. "fallback_strategy": "model",
  5848. "rewrite_prompt_system": "",
  5849. "rewrite_prompt_user": ""
  5850. },
  5851. "basic_config": {
  5852. "agent_mode": "quick-answer",
  5853. "agent_type": "rag-qa",
  5854. "context_template": "",
  5855. "suggested_prompts": [],
  5856. "system_prompt": ""
  5857. },
  5858. "model_config": {
  5859. "max_completion_tokens": 2048,
  5860. "model_id": "ea1598d8-1578-4ce3-8898-c47981e00e2a",
  5861. "temperature": 0.7
  5862. }
  5863. },
  5864. "creationTime": "2026-05-12 17:04:41",
  5865. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  5866. "description": "快速问答-描述",
  5867. "id": "b6ce2c6a-5cf5-46ba-9f3a-c85ee8de20a9",
  5868. "isDeleted": false,
  5869. "is_builtin": false,
  5870. "mode": "quick-answer",
  5871. "name": "快速问答-智能体",
  5872. "type": "rag-qa",
  5873. "updateTime": "2026-05-12 17:04:41"
  5874. }
  5875. ],
  5876. "isAuthorized": true
  5877. }
  5878. },
  5879. "headers": {}
  5880. }
  5881. },
  5882. "security": []
  5883. }
  5884. }
  5885. },
  5886. "/api/ai/agent/pageList": {
  5887. "post": {
  5888. "summary": "获取分页列表",
  5889. "deprecated": false,
  5890. "description": "",
  5891. "tags": ["AgentApplication"],
  5892. "parameters": [
  5893. {
  5894. "name": "Authorization",
  5895. "in": "header",
  5896. "description": "",
  5897. "example": "bpm_client_1513029045627916288",
  5898. "schema": {
  5899. "type": "string",
  5900. "default": "bpm_client_1513029045627916288"
  5901. }
  5902. }
  5903. ],
  5904. "requestBody": {
  5905. "content": {
  5906. "application/json": {
  5907. "schema": {
  5908. "type": "object",
  5909. "properties": {
  5910. "keyword": {
  5911. "type": "string"
  5912. },
  5913. "mode": {
  5914. "type": "string"
  5915. },
  5916. "type": {
  5917. "type": "string"
  5918. },
  5919. "pageIndex": {
  5920. "type": "integer"
  5921. },
  5922. "pageSize": {
  5923. "type": "integer"
  5924. }
  5925. },
  5926. "required": ["keyword", "mode", "type", "pageIndex", "pageSize"]
  5927. },
  5928. "example": {
  5929. "keyword": "",
  5930. "mode": "quick-answer",
  5931. "type": "rag-qa",
  5932. "pageIndex": 1,
  5933. "pageSize": 20
  5934. }
  5935. }
  5936. },
  5937. "required": true
  5938. },
  5939. "responses": {
  5940. "200": {
  5941. "description": "",
  5942. "content": {
  5943. "application/json": {
  5944. "schema": {
  5945. "type": "object",
  5946. "properties": {
  5947. "isSuccess": {
  5948. "type": "boolean"
  5949. },
  5950. "code": {
  5951. "type": "integer"
  5952. },
  5953. "result": {
  5954. "type": "object",
  5955. "properties": {
  5956. "currentPage": {
  5957. "type": "integer"
  5958. },
  5959. "hasNextPage": {
  5960. "type": "boolean"
  5961. },
  5962. "hasPreviousPage": {
  5963. "type": "boolean"
  5964. },
  5965. "model": {
  5966. "type": "array",
  5967. "items": {
  5968. "type": "object",
  5969. "properties": {
  5970. "avatar": {
  5971. "type": "string"
  5972. },
  5973. "config": {
  5974. "type": "object",
  5975. "properties": {
  5976. "advanced_config": {
  5977. "type": "object",
  5978. "properties": {
  5979. "enable_query_expansion": {
  5980. "type": "boolean"
  5981. },
  5982. "enable_rewrite": {
  5983. "type": "boolean"
  5984. },
  5985. "fallback_prompt": {
  5986. "type": "string"
  5987. },
  5988. "fallback_response": {
  5989. "type": "string"
  5990. },
  5991. "fallback_strategy": {
  5992. "type": "string"
  5993. },
  5994. "rewrite_prompt_system": {
  5995. "type": "string"
  5996. },
  5997. "rewrite_prompt_user": {
  5998. "type": "string"
  5999. }
  6000. },
  6001. "required": [
  6002. "enable_query_expansion",
  6003. "enable_rewrite",
  6004. "fallback_prompt",
  6005. "fallback_response",
  6006. "fallback_strategy",
  6007. "rewrite_prompt_system",
  6008. "rewrite_prompt_user"
  6009. ]
  6010. },
  6011. "basic_config": {
  6012. "type": "object",
  6013. "properties": {
  6014. "agent_mode": {
  6015. "type": "string"
  6016. },
  6017. "agent_type": {
  6018. "type": "string"
  6019. },
  6020. "context_template": {
  6021. "type": "string"
  6022. },
  6023. "suggested_prompts": {
  6024. "type": "array",
  6025. "items": {
  6026. "type": "string"
  6027. }
  6028. },
  6029. "system_prompt": {
  6030. "type": "string"
  6031. }
  6032. },
  6033. "required": [
  6034. "agent_mode",
  6035. "agent_type",
  6036. "context_template",
  6037. "suggested_prompts",
  6038. "system_prompt"
  6039. ]
  6040. },
  6041. "faq_config": {
  6042. "type": "object",
  6043. "properties": {
  6044. "faq_direct_answer_threshold": {
  6045. "type": "number"
  6046. },
  6047. "faq_priority_enabled": {
  6048. "type": "boolean"
  6049. },
  6050. "faq_score_boost": {
  6051. "type": "number"
  6052. }
  6053. },
  6054. "required": [
  6055. "faq_direct_answer_threshold",
  6056. "faq_priority_enabled",
  6057. "faq_score_boost"
  6058. ]
  6059. },
  6060. "img_vlm_config": {
  6061. "type": "object",
  6062. "properties": {
  6063. "image_storage_provider": {
  6064. "type": "string"
  6065. },
  6066. "image_upload_enabled": {
  6067. "type": "boolean"
  6068. },
  6069. "vlm_model_id": {
  6070. "type": "string"
  6071. }
  6072. },
  6073. "required": [
  6074. "image_storage_provider",
  6075. "image_upload_enabled",
  6076. "vlm_model_id"
  6077. ]
  6078. },
  6079. "kb_config": {
  6080. "type": "object",
  6081. "properties": {
  6082. "kb_selection_mode": {
  6083. "type": "string"
  6084. },
  6085. "knowledge_bases": {
  6086. "type": "array",
  6087. "items": {
  6088. "type": "string"
  6089. }
  6090. },
  6091. "retrieve_kb_only_when_mentioned": {
  6092. "type": "boolean"
  6093. },
  6094. "supported_file_types": {
  6095. "type": "array",
  6096. "items": {
  6097. "type": "string"
  6098. }
  6099. }
  6100. },
  6101. "required": [
  6102. "kb_selection_mode",
  6103. "knowledge_bases",
  6104. "retrieve_kb_only_when_mentioned",
  6105. "supported_file_types"
  6106. ]
  6107. },
  6108. "model_config": {
  6109. "type": "object",
  6110. "properties": {
  6111. "max_completion_tokens": {
  6112. "type": "integer"
  6113. },
  6114. "model_id": {
  6115. "type": "string"
  6116. },
  6117. "rerank_model_id": {
  6118. "type": "string"
  6119. },
  6120. "temperature": {
  6121. "type": "number"
  6122. },
  6123. "thinking": {
  6124. "type": "boolean"
  6125. }
  6126. },
  6127. "required": [
  6128. "max_completion_tokens",
  6129. "model_id",
  6130. "rerank_model_id",
  6131. "temperature",
  6132. "thinking"
  6133. ]
  6134. },
  6135. "multiple_config": {
  6136. "type": "object",
  6137. "properties": {
  6138. "history_turns": {
  6139. "type": "integer"
  6140. },
  6141. "multi_turn_enabled": {
  6142. "type": "boolean"
  6143. }
  6144. },
  6145. "required": ["history_turns", "multi_turn_enabled"]
  6146. },
  6147. "search_config": {
  6148. "type": "object",
  6149. "properties": {
  6150. "embedding_top_k": {
  6151. "type": "integer"
  6152. },
  6153. "keyword_threshold": {
  6154. "type": "number"
  6155. },
  6156. "rerank_threshold": {
  6157. "type": "number"
  6158. },
  6159. "rerank_top_k": {
  6160. "type": "integer"
  6161. },
  6162. "vector_threshold": {
  6163. "type": "number"
  6164. }
  6165. },
  6166. "required": [
  6167. "embedding_top_k",
  6168. "keyword_threshold",
  6169. "rerank_threshold",
  6170. "rerank_top_k",
  6171. "vector_threshold"
  6172. ]
  6173. },
  6174. "setting_config": {
  6175. "type": "object",
  6176. "properties": {
  6177. "allowed_tools": {
  6178. "type": "array",
  6179. "items": {
  6180. "type": "string"
  6181. }
  6182. },
  6183. "max_iterations": {
  6184. "type": "integer"
  6185. },
  6186. "mcp_selection_mode": {
  6187. "type": "string"
  6188. },
  6189. "mcp_services": {
  6190. "type": "array",
  6191. "items": {
  6192. "type": "string"
  6193. }
  6194. },
  6195. "selected_skills": {
  6196. "type": "array",
  6197. "items": {
  6198. "type": "string"
  6199. }
  6200. },
  6201. "skills_selection_mode": {
  6202. "type": "string"
  6203. }
  6204. },
  6205. "required": [
  6206. "allowed_tools",
  6207. "max_iterations",
  6208. "mcp_selection_mode",
  6209. "mcp_services",
  6210. "selected_skills",
  6211. "skills_selection_mode"
  6212. ]
  6213. },
  6214. "web_search_config": {
  6215. "type": "object",
  6216. "properties": {
  6217. "web_fetch_enabled": {
  6218. "type": "boolean"
  6219. },
  6220. "web_fetch_top_n": {
  6221. "type": "integer"
  6222. },
  6223. "web_search_enabled": {
  6224. "type": "boolean"
  6225. },
  6226. "web_search_max_results": {
  6227. "type": "integer"
  6228. }
  6229. },
  6230. "required": [
  6231. "web_fetch_enabled",
  6232. "web_fetch_top_n",
  6233. "web_search_enabled",
  6234. "web_search_max_results"
  6235. ]
  6236. }
  6237. },
  6238. "required": [
  6239. "advanced_config",
  6240. "basic_config",
  6241. "faq_config",
  6242. "img_vlm_config",
  6243. "kb_config",
  6244. "model_config",
  6245. "multiple_config",
  6246. "search_config",
  6247. "setting_config",
  6248. "web_search_config"
  6249. ]
  6250. },
  6251. "creationTime": {
  6252. "type": "string"
  6253. },
  6254. "creatorUserId": {
  6255. "type": "string"
  6256. },
  6257. "description": {
  6258. "type": "string"
  6259. },
  6260. "id": {
  6261. "type": "string"
  6262. },
  6263. "isDeleted": {
  6264. "type": "boolean"
  6265. },
  6266. "is_builtin": {
  6267. "type": "boolean"
  6268. },
  6269. "mode": {
  6270. "type": "string"
  6271. },
  6272. "name": {
  6273. "type": "string"
  6274. },
  6275. "type": {
  6276. "type": "string"
  6277. },
  6278. "updateTime": {
  6279. "type": "string"
  6280. }
  6281. }
  6282. }
  6283. },
  6284. "pageSize": {
  6285. "type": "integer"
  6286. },
  6287. "totalCount": {
  6288. "type": "integer"
  6289. },
  6290. "totalPages": {
  6291. "type": "integer"
  6292. }
  6293. },
  6294. "required": [
  6295. "currentPage",
  6296. "hasNextPage",
  6297. "hasPreviousPage",
  6298. "model",
  6299. "pageSize",
  6300. "totalCount",
  6301. "totalPages"
  6302. ]
  6303. },
  6304. "isAuthorized": {
  6305. "type": "boolean"
  6306. }
  6307. },
  6308. "required": ["isSuccess", "code", "result", "isAuthorized"]
  6309. },
  6310. "example": {
  6311. "isSuccess": true,
  6312. "code": 1,
  6313. "result": {
  6314. "currentPage": 1,
  6315. "hasNextPage": true,
  6316. "hasPreviousPage": false,
  6317. "model": [
  6318. {
  6319. "avatar": "",
  6320. "config": {
  6321. "advanced_config": {
  6322. "enable_query_expansion": true,
  6323. "enable_rewrite": true,
  6324. "fallback_prompt": "",
  6325. "fallback_response": "",
  6326. "fallback_strategy": "model",
  6327. "rewrite_prompt_system": "",
  6328. "rewrite_prompt_user": ""
  6329. },
  6330. "basic_config": {
  6331. "agent_mode": "quick-answer",
  6332. "agent_type": "rag-qa",
  6333. "context_template": "",
  6334. "suggested_prompts": [],
  6335. "system_prompt": ""
  6336. },
  6337. "faq_config": {
  6338. "faq_direct_answer_threshold": 0.9,
  6339. "faq_priority_enabled": true,
  6340. "faq_score_boost": 1.2
  6341. },
  6342. "img_vlm_config": {
  6343. "image_storage_provider": "local",
  6344. "image_upload_enabled": false,
  6345. "vlm_model_id": ""
  6346. },
  6347. "kb_config": {
  6348. "kb_selection_mode": "all",
  6349. "knowledge_bases": [],
  6350. "retrieve_kb_only_when_mentioned": false,
  6351. "supported_file_types": []
  6352. },
  6353. "model_config": {
  6354. "max_completion_tokens": 2048,
  6355. "model_id": "ea1598d8-1578-4ce3-8898-c47981e00e2a",
  6356. "rerank_model_id": "569ae4d9-4af2-46f4-b8cc-4676044c7369",
  6357. "temperature": 0.7,
  6358. "thinking": false
  6359. },
  6360. "multiple_config": {
  6361. "history_turns": 5,
  6362. "multi_turn_enabled": true
  6363. },
  6364. "search_config": {
  6365. "embedding_top_k": 10,
  6366. "keyword_threshold": 0.3,
  6367. "rerank_threshold": 0.5,
  6368. "rerank_top_k": 5,
  6369. "vector_threshold": 0.5
  6370. },
  6371. "setting_config": {
  6372. "allowed_tools": [],
  6373. "max_iterations": 10,
  6374. "mcp_selection_mode": "all",
  6375. "mcp_services": [],
  6376. "selected_skills": [],
  6377. "skills_selection_mode": "none"
  6378. },
  6379. "web_search_config": {
  6380. "web_fetch_enabled": false,
  6381. "web_fetch_top_n": 3,
  6382. "web_search_enabled": false,
  6383. "web_search_max_results": 5
  6384. }
  6385. },
  6386. "creationTime": "2026-05-12 17:04:41",
  6387. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  6388. "description": "快速问答-描述",
  6389. "id": "b6ce2c6a-5cf5-46ba-9f3a-c85ee8de20a9",
  6390. "isDeleted": false,
  6391. "is_builtin": false,
  6392. "mode": "quick-answer",
  6393. "name": "快速问答-智能体",
  6394. "type": "rag-qa",
  6395. "updateTime": "2026-05-12 17:04:41"
  6396. }
  6397. ],
  6398. "pageSize": 20,
  6399. "totalCount": 1,
  6400. "totalPages": 1
  6401. },
  6402. "isAuthorized": true
  6403. }
  6404. }
  6405. },
  6406. "headers": {}
  6407. }
  6408. },
  6409. "security": []
  6410. }
  6411. },
  6412. "/api/ai/agent/info": {
  6413. "post": {
  6414. "summary": "详情",
  6415. "deprecated": false,
  6416. "description": "",
  6417. "tags": ["AgentApplication"],
  6418. "parameters": [
  6419. {
  6420. "name": "Authorization",
  6421. "in": "header",
  6422. "description": "",
  6423. "example": "bpm_client_1513029045627916288",
  6424. "schema": {
  6425. "type": "string",
  6426. "default": "bpm_client_1513029045627916288"
  6427. }
  6428. }
  6429. ],
  6430. "requestBody": {
  6431. "content": {
  6432. "application/json": {
  6433. "schema": {
  6434. "type": "object",
  6435. "properties": {
  6436. "id": {
  6437. "type": "string"
  6438. }
  6439. },
  6440. "required": ["id"]
  6441. },
  6442. "example": {
  6443. "id": "3b5d7624-aa12-4c14-a58f-5a238f78377f"
  6444. }
  6445. }
  6446. },
  6447. "required": true
  6448. },
  6449. "responses": {
  6450. "200": {
  6451. "description": "",
  6452. "content": {
  6453. "application/json": {
  6454. "schema": {
  6455. "type": "object",
  6456. "properties": {
  6457. "isSuccess": {
  6458. "type": "boolean"
  6459. },
  6460. "code": {
  6461. "type": "integer"
  6462. },
  6463. "result": {
  6464. "type": "object",
  6465. "properties": {
  6466. "avatar": {
  6467. "type": "string"
  6468. },
  6469. "config": {
  6470. "type": "object",
  6471. "properties": {
  6472. "advanced_config": {
  6473. "type": "object",
  6474. "properties": {
  6475. "enable_query_expansion": {
  6476. "type": "boolean"
  6477. },
  6478. "enable_rewrite": {
  6479. "type": "boolean"
  6480. },
  6481. "fallback_prompt": {
  6482. "type": "string"
  6483. },
  6484. "fallback_response": {
  6485. "type": "string"
  6486. },
  6487. "fallback_strategy": {
  6488. "type": "string"
  6489. },
  6490. "rewrite_prompt_system": {
  6491. "type": "string"
  6492. },
  6493. "rewrite_prompt_user": {
  6494. "type": "string"
  6495. }
  6496. },
  6497. "required": [
  6498. "enable_query_expansion",
  6499. "enable_rewrite",
  6500. "fallback_prompt",
  6501. "fallback_response",
  6502. "fallback_strategy",
  6503. "rewrite_prompt_system",
  6504. "rewrite_prompt_user"
  6505. ]
  6506. },
  6507. "basic_config": {
  6508. "type": "object",
  6509. "properties": {
  6510. "agent_mode": {
  6511. "type": "string"
  6512. },
  6513. "agent_type": {
  6514. "type": "string"
  6515. },
  6516. "context_template": {
  6517. "type": "string"
  6518. },
  6519. "suggested_prompts": {
  6520. "type": "array",
  6521. "items": {
  6522. "type": "string"
  6523. }
  6524. },
  6525. "system_prompt": {
  6526. "type": "string"
  6527. }
  6528. },
  6529. "required": [
  6530. "agent_mode",
  6531. "agent_type",
  6532. "context_template",
  6533. "suggested_prompts",
  6534. "system_prompt"
  6535. ]
  6536. },
  6537. "faq_config": {
  6538. "type": "object",
  6539. "properties": {
  6540. "faq_direct_answer_threshold": {
  6541. "type": "number"
  6542. },
  6543. "faq_priority_enabled": {
  6544. "type": "boolean"
  6545. },
  6546. "faq_score_boost": {
  6547. "type": "number"
  6548. }
  6549. },
  6550. "required": [
  6551. "faq_direct_answer_threshold",
  6552. "faq_priority_enabled",
  6553. "faq_score_boost"
  6554. ]
  6555. },
  6556. "img_vlm_config": {
  6557. "type": "object",
  6558. "properties": {
  6559. "image_storage_provider": {
  6560. "type": "string"
  6561. },
  6562. "image_upload_enabled": {
  6563. "type": "boolean"
  6564. },
  6565. "vlm_model_id": {
  6566. "type": "string"
  6567. }
  6568. },
  6569. "required": [
  6570. "image_storage_provider",
  6571. "image_upload_enabled",
  6572. "vlm_model_id"
  6573. ]
  6574. },
  6575. "kb_config": {
  6576. "type": "object",
  6577. "properties": {
  6578. "kb_selection_mode": {
  6579. "type": "string"
  6580. },
  6581. "knowledge_bases": {
  6582. "type": "array",
  6583. "items": {
  6584. "type": "string"
  6585. }
  6586. },
  6587. "retrieve_kb_only_when_mentioned": {
  6588. "type": "boolean"
  6589. },
  6590. "supported_file_types": {
  6591. "type": "array",
  6592. "items": {
  6593. "type": "string"
  6594. }
  6595. }
  6596. },
  6597. "required": [
  6598. "kb_selection_mode",
  6599. "knowledge_bases",
  6600. "retrieve_kb_only_when_mentioned",
  6601. "supported_file_types"
  6602. ]
  6603. },
  6604. "model_config": {
  6605. "type": "object",
  6606. "properties": {
  6607. "max_completion_tokens": {
  6608. "type": "integer"
  6609. },
  6610. "model_id": {
  6611. "type": "string"
  6612. },
  6613. "rerank_model_id": {
  6614. "type": "string"
  6615. },
  6616. "temperature": {
  6617. "type": "number"
  6618. },
  6619. "thinking": {
  6620. "type": "boolean"
  6621. }
  6622. },
  6623. "required": [
  6624. "max_completion_tokens",
  6625. "model_id",
  6626. "rerank_model_id",
  6627. "temperature",
  6628. "thinking"
  6629. ]
  6630. },
  6631. "multiple_config": {
  6632. "type": "object",
  6633. "properties": {
  6634. "history_turns": {
  6635. "type": "integer"
  6636. },
  6637. "multi_turn_enabled": {
  6638. "type": "boolean"
  6639. }
  6640. },
  6641. "required": ["history_turns", "multi_turn_enabled"]
  6642. },
  6643. "search_config": {
  6644. "type": "object",
  6645. "properties": {
  6646. "embedding_top_k": {
  6647. "type": "integer"
  6648. },
  6649. "keyword_threshold": {
  6650. "type": "number"
  6651. },
  6652. "rerank_threshold": {
  6653. "type": "number"
  6654. },
  6655. "rerank_top_k": {
  6656. "type": "integer"
  6657. },
  6658. "vector_threshold": {
  6659. "type": "number"
  6660. }
  6661. },
  6662. "required": [
  6663. "embedding_top_k",
  6664. "keyword_threshold",
  6665. "rerank_threshold",
  6666. "rerank_top_k",
  6667. "vector_threshold"
  6668. ]
  6669. },
  6670. "setting_config": {
  6671. "type": "object",
  6672. "properties": {
  6673. "allowed_tools": {
  6674. "type": "array",
  6675. "items": {
  6676. "type": "string"
  6677. }
  6678. },
  6679. "max_iterations": {
  6680. "type": "integer"
  6681. },
  6682. "mcp_selection_mode": {
  6683. "type": "string"
  6684. },
  6685. "mcp_services": {
  6686. "type": "array",
  6687. "items": {
  6688. "type": "string"
  6689. }
  6690. },
  6691. "selected_skills": {
  6692. "type": "array",
  6693. "items": {
  6694. "type": "string"
  6695. }
  6696. },
  6697. "skills_selection_mode": {
  6698. "type": "string"
  6699. }
  6700. },
  6701. "required": [
  6702. "allowed_tools",
  6703. "max_iterations",
  6704. "mcp_selection_mode",
  6705. "mcp_services",
  6706. "selected_skills",
  6707. "skills_selection_mode"
  6708. ]
  6709. },
  6710. "web_search_config": {
  6711. "type": "object",
  6712. "properties": {
  6713. "web_fetch_enabled": {
  6714. "type": "boolean"
  6715. },
  6716. "web_fetch_top_n": {
  6717. "type": "integer"
  6718. },
  6719. "web_search_enabled": {
  6720. "type": "boolean"
  6721. },
  6722. "web_search_max_results": {
  6723. "type": "integer"
  6724. }
  6725. },
  6726. "required": [
  6727. "web_fetch_enabled",
  6728. "web_fetch_top_n",
  6729. "web_search_enabled",
  6730. "web_search_max_results"
  6731. ]
  6732. }
  6733. },
  6734. "required": [
  6735. "advanced_config",
  6736. "basic_config",
  6737. "faq_config",
  6738. "img_vlm_config",
  6739. "kb_config",
  6740. "model_config",
  6741. "multiple_config",
  6742. "search_config",
  6743. "setting_config",
  6744. "web_search_config"
  6745. ]
  6746. },
  6747. "creationTime": {
  6748. "type": "string"
  6749. },
  6750. "creatorUserId": {
  6751. "type": "string"
  6752. },
  6753. "description": {
  6754. "type": "string"
  6755. },
  6756. "id": {
  6757. "type": "string"
  6758. },
  6759. "isDeleted": {
  6760. "type": "boolean"
  6761. },
  6762. "is_builtin": {
  6763. "type": "boolean"
  6764. },
  6765. "mode": {
  6766. "type": "string"
  6767. },
  6768. "name": {
  6769. "type": "string"
  6770. },
  6771. "type": {
  6772. "type": "string"
  6773. },
  6774. "updateTime": {
  6775. "type": "string"
  6776. }
  6777. },
  6778. "required": [
  6779. "avatar",
  6780. "config",
  6781. "creationTime",
  6782. "creatorUserId",
  6783. "description",
  6784. "id",
  6785. "isDeleted",
  6786. "is_builtin",
  6787. "mode",
  6788. "name",
  6789. "type",
  6790. "updateTime"
  6791. ]
  6792. },
  6793. "isAuthorized": {
  6794. "type": "boolean"
  6795. }
  6796. },
  6797. "required": ["isSuccess", "code", "result", "isAuthorized"]
  6798. },
  6799. "example": {
  6800. "isSuccess": true,
  6801. "code": 1,
  6802. "result": {
  6803. "avatar": "",
  6804. "config": {
  6805. "advanced_config": {
  6806. "enable_query_expansion": true,
  6807. "enable_rewrite": true,
  6808. "fallback_prompt": "",
  6809. "fallback_response": "",
  6810. "fallback_strategy": "model",
  6811. "rewrite_prompt_system": "",
  6812. "rewrite_prompt_user": ""
  6813. },
  6814. "basic_config": {
  6815. "agent_mode": "quick-answer",
  6816. "agent_type": "rag-qa",
  6817. "context_template": "",
  6818. "suggested_prompts": [],
  6819. "system_prompt": ""
  6820. },
  6821. "faq_config": {
  6822. "faq_direct_answer_threshold": 0.9,
  6823. "faq_priority_enabled": true,
  6824. "faq_score_boost": 1.2
  6825. },
  6826. "img_vlm_config": {
  6827. "image_storage_provider": "local",
  6828. "image_upload_enabled": false,
  6829. "vlm_model_id": ""
  6830. },
  6831. "kb_config": {
  6832. "kb_selection_mode": "all",
  6833. "knowledge_bases": [],
  6834. "retrieve_kb_only_when_mentioned": false,
  6835. "supported_file_types": []
  6836. },
  6837. "model_config": {
  6838. "max_completion_tokens": 2048,
  6839. "model_id": "ea1598d8-1578-4ce3-8898-c47981e00e2a",
  6840. "rerank_model_id": "569ae4d9-4af2-46f4-b8cc-4676044c7369",
  6841. "temperature": 0.7,
  6842. "thinking": false
  6843. },
  6844. "multiple_config": {
  6845. "history_turns": 5,
  6846. "multi_turn_enabled": true
  6847. },
  6848. "search_config": {
  6849. "embedding_top_k": 10,
  6850. "keyword_threshold": 0.3,
  6851. "rerank_threshold": 0.5,
  6852. "rerank_top_k": 5,
  6853. "vector_threshold": 0.5
  6854. },
  6855. "setting_config": {
  6856. "allowed_tools": [
  6857. "knowledge_search",
  6858. "grep_chunks",
  6859. "list_knowledge_chunks",
  6860. "get_document_info",
  6861. "final_answer"
  6862. ],
  6863. "max_iterations": 10,
  6864. "mcp_selection_mode": "all",
  6865. "mcp_services": [],
  6866. "selected_skills": [],
  6867. "skills_selection_mode": "none"
  6868. },
  6869. "web_search_config": {
  6870. "web_fetch_enabled": false,
  6871. "web_fetch_top_n": 3,
  6872. "web_search_enabled": false,
  6873. "web_search_max_results": 5
  6874. }
  6875. },
  6876. "creationTime": "2026-05-12 20:16:36",
  6877. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  6878. "description": "快速问答-描述",
  6879. "id": "3b5d7624-aa12-4c14-a58f-5a238f78377f",
  6880. "isDeleted": false,
  6881. "is_builtin": false,
  6882. "mode": "quick-answer",
  6883. "name": "快速问答-智能体",
  6884. "type": "rag-qa",
  6885. "updateTime": "2026-05-12 20:16:36"
  6886. },
  6887. "isAuthorized": true
  6888. }
  6889. }
  6890. },
  6891. "headers": {}
  6892. }
  6893. },
  6894. "security": []
  6895. }
  6896. },
  6897. "/api/ai/agent/create": {
  6898. "post": {
  6899. "summary": "创建智能体",
  6900. "deprecated": false,
  6901. "description": "",
  6902. "tags": ["AgentApplication"],
  6903. "parameters": [
  6904. {
  6905. "name": "Authorization",
  6906. "in": "header",
  6907. "description": "",
  6908. "example": "bpm_client_1513029045627916288",
  6909. "schema": {
  6910. "type": "string",
  6911. "default": "bpm_client_1513029045627916288"
  6912. }
  6913. }
  6914. ],
  6915. "requestBody": {
  6916. "content": {
  6917. "application/json": {
  6918. "schema": {
  6919. "type": "object",
  6920. "properties": {
  6921. "name": {
  6922. "type": "string"
  6923. },
  6924. "description": {
  6925. "type": "string"
  6926. },
  6927. "avatar": {
  6928. "type": "string"
  6929. },
  6930. "mode": {
  6931. "type": "string"
  6932. },
  6933. "config": {
  6934. "type": "object",
  6935. "properties": {
  6936. "basic_config": {
  6937. "type": "object",
  6938. "properties": {
  6939. "system_prompt": {
  6940. "type": "string"
  6941. }
  6942. },
  6943. "required": ["system_prompt"]
  6944. },
  6945. "model_config": {
  6946. "type": "object",
  6947. "properties": {
  6948. "model_id": {
  6949. "type": "string"
  6950. },
  6951. "rerank_model_id": {
  6952. "type": "string"
  6953. },
  6954. "temperature": {
  6955. "type": "number"
  6956. },
  6957. "max_completion_tokens": {
  6958. "type": "integer"
  6959. },
  6960. "thinking": {
  6961. "type": "boolean"
  6962. }
  6963. },
  6964. "required": [
  6965. "model_id",
  6966. "rerank_model_id",
  6967. "temperature",
  6968. "max_completion_tokens",
  6969. "thinking"
  6970. ]
  6971. },
  6972. "setting_config": {
  6973. "type": "object",
  6974. "properties": {
  6975. "max_iterations": {
  6976. "type": "integer"
  6977. },
  6978. "mcp_selection_mode": {
  6979. "type": "string"
  6980. },
  6981. "mcp_services": {
  6982. "type": "array",
  6983. "items": {
  6984. "type": "string"
  6985. }
  6986. }
  6987. },
  6988. "required": ["max_iterations", "mcp_selection_mode", "mcp_services"]
  6989. },
  6990. "kb_config": {
  6991. "type": "object",
  6992. "properties": {
  6993. "kb_selection_mode": {
  6994. "type": "string"
  6995. },
  6996. "knowledge_bases": {
  6997. "type": "array",
  6998. "items": {
  6999. "type": "string"
  7000. }
  7001. },
  7002. "retrieve_kb_only_when_mentioned": {
  7003. "type": "boolean"
  7004. },
  7005. "supported_file_types": {
  7006. "type": "array",
  7007. "items": {
  7008. "type": "string"
  7009. }
  7010. }
  7011. },
  7012. "required": [
  7013. "kb_selection_mode",
  7014. "knowledge_bases",
  7015. "retrieve_kb_only_when_mentioned",
  7016. "supported_file_types"
  7017. ]
  7018. },
  7019. "img_vlm_config": {
  7020. "type": "object",
  7021. "properties": {
  7022. "image_upload_enabled": {
  7023. "type": "boolean"
  7024. },
  7025. "vlm_model_id": {
  7026. "type": "string"
  7027. },
  7028. "image_storage_provider": {
  7029. "type": "string"
  7030. }
  7031. },
  7032. "required": [
  7033. "image_upload_enabled",
  7034. "vlm_model_id",
  7035. "image_storage_provider"
  7036. ]
  7037. },
  7038. "faq_config": {
  7039. "type": "object",
  7040. "properties": {
  7041. "faq_priority_enabled": {
  7042. "type": "boolean"
  7043. },
  7044. "faq_direct_answer_threshold": {
  7045. "type": "number"
  7046. },
  7047. "faq_score_boost": {
  7048. "type": "number"
  7049. }
  7050. },
  7051. "required": [
  7052. "faq_priority_enabled",
  7053. "faq_direct_answer_threshold",
  7054. "faq_score_boost"
  7055. ]
  7056. },
  7057. "web_search_config": {
  7058. "type": "object",
  7059. "properties": {
  7060. "web_search_enabled": {
  7061. "type": "boolean"
  7062. },
  7063. "web_search_max_results": {
  7064. "type": "integer"
  7065. },
  7066. "web_search_provider_id": {
  7067. "type": "string"
  7068. },
  7069. "web_fetch_enabled": {
  7070. "type": "boolean"
  7071. },
  7072. "web_fetch_top_n": {
  7073. "type": "integer"
  7074. }
  7075. },
  7076. "required": [
  7077. "web_search_enabled",
  7078. "web_search_max_results",
  7079. "web_search_provider_id",
  7080. "web_fetch_enabled",
  7081. "web_fetch_top_n"
  7082. ]
  7083. },
  7084. "multiple_config": {
  7085. "type": "object",
  7086. "properties": {
  7087. "multi_turn_enabled": {
  7088. "type": "boolean"
  7089. },
  7090. "history_turns": {
  7091. "type": "integer"
  7092. }
  7093. },
  7094. "required": ["multi_turn_enabled", "history_turns"]
  7095. },
  7096. "search_config": {
  7097. "type": "object",
  7098. "properties": {
  7099. "embedding_top_k": {
  7100. "type": "integer"
  7101. },
  7102. "keyword_threshold": {
  7103. "type": "number"
  7104. },
  7105. "vector_threshold": {
  7106. "type": "number"
  7107. },
  7108. "rerank_top_k": {
  7109. "type": "integer"
  7110. },
  7111. "rerank_threshold": {
  7112. "type": "number"
  7113. }
  7114. },
  7115. "required": [
  7116. "embedding_top_k",
  7117. "keyword_threshold",
  7118. "vector_threshold",
  7119. "rerank_top_k",
  7120. "rerank_threshold"
  7121. ]
  7122. },
  7123. "advanced_config": {
  7124. "type": "object",
  7125. "properties": {
  7126. "enable_query_expansion": {
  7127. "type": "boolean"
  7128. },
  7129. "enable_rewrite": {
  7130. "type": "boolean"
  7131. },
  7132. "rewrite_prompt_system": {
  7133. "type": "string"
  7134. },
  7135. "rewrite_prompt_user": {
  7136. "type": "string"
  7137. },
  7138. "fallback_strategy": {
  7139. "type": "string"
  7140. },
  7141. "fallback_response": {
  7142. "type": "string"
  7143. },
  7144. "fallback_prompt": {
  7145. "type": "string"
  7146. }
  7147. },
  7148. "required": [
  7149. "enable_query_expansion",
  7150. "enable_rewrite",
  7151. "rewrite_prompt_system",
  7152. "rewrite_prompt_user",
  7153. "fallback_strategy",
  7154. "fallback_response",
  7155. "fallback_prompt"
  7156. ]
  7157. }
  7158. },
  7159. "required": [
  7160. "basic_config",
  7161. "model_config",
  7162. "setting_config",
  7163. "kb_config",
  7164. "img_vlm_config",
  7165. "faq_config",
  7166. "web_search_config",
  7167. "multiple_config",
  7168. "search_config",
  7169. "advanced_config"
  7170. ]
  7171. }
  7172. },
  7173. "required": ["name", "description", "avatar", "mode", "config"]
  7174. },
  7175. "examples": {
  7176. "1": {
  7177. "value": {
  7178. "name": "快速问答-智能体",
  7179. "description": "快速问答-描述",
  7180. "avatar": "",
  7181. "mode": "quick-answer",
  7182. "config": {
  7183. "basic_config": {
  7184. "system_prompt": "",
  7185. "context_template": ""
  7186. },
  7187. "model_config": {
  7188. "model_id": "ea1598d8-1578-4ce3-8898-c47981e00e2a",
  7189. "rerank_model_id": "569ae4d9-4af2-46f4-b8cc-4676044c7369",
  7190. "temperature": 0.7,
  7191. "max_completion_tokens": 2048,
  7192. "thinking": false
  7193. },
  7194. "setting_config": {
  7195. "max_iterations": 10,
  7196. "mcp_selection_mode": "all",
  7197. "mcp_services": []
  7198. },
  7199. "kb_config": {
  7200. "kb_selection_mode": "all",
  7201. "knowledge_bases": [],
  7202. "retrieve_kb_only_when_mentioned": false,
  7203. "supported_file_types": []
  7204. },
  7205. "img_vlm_config": {
  7206. "image_upload_enabled": false,
  7207. "vlm_model_id": "",
  7208. "image_storage_provider": "local"
  7209. },
  7210. "faq_config": {
  7211. "faq_priority_enabled": true,
  7212. "faq_direct_answer_threshold": 0.9,
  7213. "faq_score_boost": 1.2
  7214. },
  7215. "web_search_config": {
  7216. "web_search_enabled": false,
  7217. "web_search_max_results": 5,
  7218. "web_search_provider_id": "",
  7219. "web_fetch_enabled": false,
  7220. "web_fetch_top_n": 3
  7221. },
  7222. "multiple_config": {
  7223. "multi_turn_enabled": true,
  7224. "history_turns": 5
  7225. },
  7226. "search_config": {
  7227. "embedding_top_k": 10,
  7228. "keyword_threshold": 0.3,
  7229. "vector_threshold": 0.5,
  7230. "rerank_top_k": 5,
  7231. "rerank_threshold": 0.5
  7232. },
  7233. "advanced_config": {
  7234. "enable_query_expansion": true,
  7235. "enable_rewrite": true,
  7236. "rewrite_prompt_system": "",
  7237. "rewrite_prompt_user": "",
  7238. "fallback_strategy": "model",
  7239. "fallback_response": "",
  7240. "fallback_prompt": ""
  7241. }
  7242. }
  7243. },
  7244. "summary": "快速问答"
  7245. },
  7246. "2": {
  7247. "value": {
  7248. "name": "智能推理-RAG问答-智能体",
  7249. "description": "智能推理-RAG问答-描述",
  7250. "avatar": "",
  7251. "mode": "smart-reasoning",
  7252. "config": {
  7253. "basic_config": {
  7254. "system_prompt": ""
  7255. },
  7256. "model_config": {
  7257. "model_id": "ea1598d8-1578-4ce3-8898-c47981e00e2a",
  7258. "rerank_model_id": "569ae4d9-4af2-46f4-b8cc-4676044c7369",
  7259. "temperature": 0.7,
  7260. "max_completion_tokens": 2048,
  7261. "thinking": false
  7262. },
  7263. "setting_config": {
  7264. "max_iterations": 10,
  7265. "mcp_selection_mode": "all",
  7266. "mcp_services": []
  7267. },
  7268. "kb_config": {
  7269. "kb_selection_mode": "all",
  7270. "knowledge_bases": [],
  7271. "retrieve_kb_only_when_mentioned": false,
  7272. "supported_file_types": []
  7273. },
  7274. "img_vlm_config": {
  7275. "image_upload_enabled": false,
  7276. "vlm_model_id": "",
  7277. "image_storage_provider": "local"
  7278. },
  7279. "faq_config": {
  7280. "faq_priority_enabled": true,
  7281. "faq_direct_answer_threshold": 0.9,
  7282. "faq_score_boost": 1.2
  7283. },
  7284. "web_search_config": {
  7285. "web_search_enabled": false,
  7286. "web_search_max_results": 5,
  7287. "web_search_provider_id": "",
  7288. "web_fetch_enabled": false,
  7289. "web_fetch_top_n": 3
  7290. },
  7291. "multiple_config": {
  7292. "multi_turn_enabled": true,
  7293. "history_turns": 5
  7294. },
  7295. "search_config": {
  7296. "embedding_top_k": 10,
  7297. "keyword_threshold": 0.3,
  7298. "vector_threshold": 0.5,
  7299. "rerank_top_k": 5,
  7300. "rerank_threshold": 0.5
  7301. },
  7302. "advanced_config": {
  7303. "enable_query_expansion": true,
  7304. "enable_rewrite": true,
  7305. "rewrite_prompt_system": "",
  7306. "rewrite_prompt_user": "",
  7307. "fallback_strategy": "model",
  7308. "fallback_response": "",
  7309. "fallback_prompt": ""
  7310. }
  7311. }
  7312. },
  7313. "summary": "智能推理RAG问答"
  7314. }
  7315. }
  7316. }
  7317. },
  7318. "required": true
  7319. },
  7320. "responses": {
  7321. "200": {
  7322. "description": "",
  7323. "content": {
  7324. "application/json": {
  7325. "schema": {
  7326. "type": "object",
  7327. "properties": {
  7328. "isSuccess": {
  7329. "type": "boolean"
  7330. },
  7331. "code": {
  7332. "type": "integer"
  7333. },
  7334. "isAuthorized": {
  7335. "type": "boolean"
  7336. }
  7337. },
  7338. "required": ["isSuccess", "code", "isAuthorized"]
  7339. },
  7340. "example": {
  7341. "isSuccess": true,
  7342. "code": 1,
  7343. "isAuthorized": true
  7344. }
  7345. }
  7346. },
  7347. "headers": {}
  7348. }
  7349. },
  7350. "security": []
  7351. }
  7352. },
  7353. "/api/ai/agent/update": {
  7354. "post": {
  7355. "summary": "修改智能体",
  7356. "deprecated": false,
  7357. "description": "",
  7358. "tags": ["AgentApplication"],
  7359. "parameters": [
  7360. {
  7361. "name": "Authorization",
  7362. "in": "header",
  7363. "description": "",
  7364. "example": "bpm_client_1513029045627916288",
  7365. "schema": {
  7366. "type": "string",
  7367. "default": "bpm_client_1513029045627916288"
  7368. }
  7369. }
  7370. ],
  7371. "requestBody": {
  7372. "content": {
  7373. "application/json": {
  7374. "schema": {
  7375. "type": "object",
  7376. "properties": {
  7377. "id": {
  7378. "type": "string"
  7379. },
  7380. "name": {
  7381. "type": "string"
  7382. },
  7383. "description": {
  7384. "type": "string"
  7385. },
  7386. "avatar": {
  7387. "type": "string"
  7388. },
  7389. "mode": {
  7390. "type": "string"
  7391. },
  7392. "config": {
  7393. "type": "object",
  7394. "properties": {
  7395. "basic_config": {
  7396. "type": "object",
  7397. "properties": {
  7398. "system_prompt": {
  7399. "type": "string"
  7400. }
  7401. },
  7402. "required": ["system_prompt"]
  7403. },
  7404. "model_config": {
  7405. "type": "object",
  7406. "properties": {
  7407. "model_id": {
  7408. "type": "string"
  7409. },
  7410. "rerank_model_id": {
  7411. "type": "string"
  7412. },
  7413. "temperature": {
  7414. "type": "number"
  7415. },
  7416. "max_completion_tokens": {
  7417. "type": "integer"
  7418. },
  7419. "thinking": {
  7420. "type": "boolean"
  7421. }
  7422. },
  7423. "required": [
  7424. "model_id",
  7425. "rerank_model_id",
  7426. "temperature",
  7427. "max_completion_tokens",
  7428. "thinking"
  7429. ]
  7430. },
  7431. "setting_config": {
  7432. "type": "object",
  7433. "properties": {
  7434. "max_iterations": {
  7435. "type": "integer"
  7436. },
  7437. "mcp_selection_mode": {
  7438. "type": "string"
  7439. },
  7440. "mcp_services": {
  7441. "type": "array",
  7442. "items": {
  7443. "type": "string"
  7444. }
  7445. }
  7446. },
  7447. "required": ["max_iterations", "mcp_selection_mode", "mcp_services"]
  7448. },
  7449. "kb_config": {
  7450. "type": "object",
  7451. "properties": {
  7452. "kb_selection_mode": {
  7453. "type": "string"
  7454. },
  7455. "knowledge_bases": {
  7456. "type": "array",
  7457. "items": {
  7458. "type": "string"
  7459. }
  7460. },
  7461. "retrieve_kb_only_when_mentioned": {
  7462. "type": "boolean"
  7463. },
  7464. "supported_file_types": {
  7465. "type": "array",
  7466. "items": {
  7467. "type": "string"
  7468. }
  7469. }
  7470. },
  7471. "required": [
  7472. "kb_selection_mode",
  7473. "knowledge_bases",
  7474. "retrieve_kb_only_when_mentioned",
  7475. "supported_file_types"
  7476. ]
  7477. },
  7478. "img_vlm_config": {
  7479. "type": "object",
  7480. "properties": {
  7481. "image_upload_enabled": {
  7482. "type": "boolean"
  7483. },
  7484. "vlm_model_id": {
  7485. "type": "string"
  7486. },
  7487. "image_storage_provider": {
  7488. "type": "string"
  7489. }
  7490. },
  7491. "required": [
  7492. "image_upload_enabled",
  7493. "vlm_model_id",
  7494. "image_storage_provider"
  7495. ]
  7496. },
  7497. "faq_config": {
  7498. "type": "object",
  7499. "properties": {
  7500. "faq_priority_enabled": {
  7501. "type": "boolean"
  7502. },
  7503. "faq_direct_answer_threshold": {
  7504. "type": "number"
  7505. },
  7506. "faq_score_boost": {
  7507. "type": "number"
  7508. }
  7509. },
  7510. "required": [
  7511. "faq_priority_enabled",
  7512. "faq_direct_answer_threshold",
  7513. "faq_score_boost"
  7514. ]
  7515. },
  7516. "web_search_config": {
  7517. "type": "object",
  7518. "properties": {
  7519. "web_search_enabled": {
  7520. "type": "boolean"
  7521. },
  7522. "web_search_max_results": {
  7523. "type": "integer"
  7524. },
  7525. "web_search_provider_id": {
  7526. "type": "string"
  7527. },
  7528. "web_fetch_enabled": {
  7529. "type": "boolean"
  7530. },
  7531. "web_fetch_top_n": {
  7532. "type": "integer"
  7533. }
  7534. },
  7535. "required": [
  7536. "web_search_enabled",
  7537. "web_search_max_results",
  7538. "web_search_provider_id",
  7539. "web_fetch_enabled",
  7540. "web_fetch_top_n"
  7541. ]
  7542. },
  7543. "multiple_config": {
  7544. "type": "object",
  7545. "properties": {
  7546. "multi_turn_enabled": {
  7547. "type": "boolean"
  7548. },
  7549. "history_turns": {
  7550. "type": "integer"
  7551. }
  7552. },
  7553. "required": ["multi_turn_enabled", "history_turns"]
  7554. },
  7555. "search_config": {
  7556. "type": "object",
  7557. "properties": {
  7558. "embedding_top_k": {
  7559. "type": "integer"
  7560. },
  7561. "keyword_threshold": {
  7562. "type": "number"
  7563. },
  7564. "vector_threshold": {
  7565. "type": "number"
  7566. },
  7567. "rerank_top_k": {
  7568. "type": "integer"
  7569. },
  7570. "rerank_threshold": {
  7571. "type": "number"
  7572. }
  7573. },
  7574. "required": [
  7575. "embedding_top_k",
  7576. "keyword_threshold",
  7577. "vector_threshold",
  7578. "rerank_top_k",
  7579. "rerank_threshold"
  7580. ]
  7581. },
  7582. "advanced_config": {
  7583. "type": "object",
  7584. "properties": {
  7585. "enable_query_expansion": {
  7586. "type": "boolean"
  7587. },
  7588. "enable_rewrite": {
  7589. "type": "boolean"
  7590. },
  7591. "rewrite_prompt_system": {
  7592. "type": "string"
  7593. },
  7594. "rewrite_prompt_user": {
  7595. "type": "string"
  7596. },
  7597. "fallback_strategy": {
  7598. "type": "string"
  7599. },
  7600. "fallback_response": {
  7601. "type": "string"
  7602. },
  7603. "fallback_prompt": {
  7604. "type": "string"
  7605. }
  7606. },
  7607. "required": [
  7608. "enable_query_expansion",
  7609. "enable_rewrite",
  7610. "rewrite_prompt_system",
  7611. "rewrite_prompt_user",
  7612. "fallback_strategy",
  7613. "fallback_response",
  7614. "fallback_prompt"
  7615. ]
  7616. }
  7617. },
  7618. "required": [
  7619. "basic_config",
  7620. "model_config",
  7621. "setting_config",
  7622. "kb_config",
  7623. "img_vlm_config",
  7624. "faq_config",
  7625. "web_search_config",
  7626. "multiple_config",
  7627. "search_config",
  7628. "advanced_config"
  7629. ]
  7630. }
  7631. },
  7632. "required": ["id", "name", "description", "avatar", "mode", "config"]
  7633. },
  7634. "examples": {
  7635. "1": {
  7636. "value": {
  7637. "id": "3b5d7624-aa12-4c14-a58f-5a238f78377f",
  7638. "name": "快速问答-智能体",
  7639. "description": "快速问答-描述",
  7640. "avatar": "",
  7641. "mode": "quick-answer",
  7642. "config": {
  7643. "basic_config": {
  7644. "system_prompt": ""
  7645. },
  7646. "model_config": {
  7647. "model_id": "ea1598d8-1578-4ce3-8898-c47981e00e2a",
  7648. "rerank_model_id": "569ae4d9-4af2-46f4-b8cc-4676044c7369",
  7649. "temperature": 0.7,
  7650. "max_completion_tokens": 2048,
  7651. "thinking": false
  7652. },
  7653. "setting_config": {
  7654. "max_iterations": 10,
  7655. "mcp_selection_mode": "all",
  7656. "mcp_services": []
  7657. },
  7658. "kb_config": {
  7659. "kb_selection_mode": "all",
  7660. "knowledge_bases": [],
  7661. "retrieve_kb_only_when_mentioned": false,
  7662. "supported_file_types": []
  7663. },
  7664. "img_vlm_config": {
  7665. "image_upload_enabled": false,
  7666. "vlm_model_id": "",
  7667. "image_storage_provider": "local"
  7668. },
  7669. "faq_config": {
  7670. "faq_priority_enabled": true,
  7671. "faq_direct_answer_threshold": 0.9,
  7672. "faq_score_boost": 1.2
  7673. },
  7674. "web_search_config": {
  7675. "web_search_enabled": false,
  7676. "web_search_max_results": 5,
  7677. "web_search_provider_id": "",
  7678. "web_fetch_enabled": false,
  7679. "web_fetch_top_n": 3
  7680. },
  7681. "multiple_config": {
  7682. "multi_turn_enabled": true,
  7683. "history_turns": 5
  7684. },
  7685. "search_config": {
  7686. "embedding_top_k": 10,
  7687. "keyword_threshold": 0.3,
  7688. "vector_threshold": 0.5,
  7689. "rerank_top_k": 5,
  7690. "rerank_threshold": 0.5
  7691. },
  7692. "advanced_config": {
  7693. "enable_query_expansion": true,
  7694. "enable_rewrite": true,
  7695. "rewrite_prompt_system": "",
  7696. "rewrite_prompt_user": "",
  7697. "fallback_strategy": "model",
  7698. "fallback_response": "",
  7699. "fallback_prompt": ""
  7700. }
  7701. }
  7702. },
  7703. "summary": "快速问答"
  7704. },
  7705. "2": {
  7706. "value": {
  7707. "id": "7b91c87a-66b8-45aa-ad29-9c432a47a9d8",
  7708. "name": "智能推理-RAG问答-智能体",
  7709. "description": "智能推理-RAG问答-描述",
  7710. "avatar": "",
  7711. "mode": "smart-reasoning",
  7712. "config": {
  7713. "basic_config": {
  7714. "system_prompt": ""
  7715. },
  7716. "model_config": {
  7717. "model_id": "ea1598d8-1578-4ce3-8898-c47981e00e2a",
  7718. "rerank_model_id": "569ae4d9-4af2-46f4-b8cc-4676044c7369",
  7719. "temperature": 0.7,
  7720. "max_completion_tokens": 2048,
  7721. "thinking": false
  7722. },
  7723. "setting_config": {
  7724. "max_iterations": 10,
  7725. "mcp_selection_mode": "all",
  7726. "mcp_services": []
  7727. },
  7728. "kb_config": {
  7729. "kb_selection_mode": "all",
  7730. "knowledge_bases": [],
  7731. "retrieve_kb_only_when_mentioned": false,
  7732. "supported_file_types": []
  7733. },
  7734. "img_vlm_config": {
  7735. "image_upload_enabled": false,
  7736. "vlm_model_id": "",
  7737. "image_storage_provider": "local"
  7738. },
  7739. "faq_config": {
  7740. "faq_priority_enabled": true,
  7741. "faq_direct_answer_threshold": 0.9,
  7742. "faq_score_boost": 1.2
  7743. },
  7744. "web_search_config": {
  7745. "web_search_enabled": false,
  7746. "web_search_max_results": 5,
  7747. "web_search_provider_id": "",
  7748. "web_fetch_enabled": false,
  7749. "web_fetch_top_n": 3
  7750. },
  7751. "multiple_config": {
  7752. "multi_turn_enabled": true,
  7753. "history_turns": 5
  7754. },
  7755. "search_config": {
  7756. "embedding_top_k": 10,
  7757. "keyword_threshold": 0.3,
  7758. "vector_threshold": 0.5,
  7759. "rerank_top_k": 5,
  7760. "rerank_threshold": 0.5
  7761. },
  7762. "advanced_config": {
  7763. "enable_query_expansion": true,
  7764. "enable_rewrite": true,
  7765. "rewrite_prompt_system": "",
  7766. "rewrite_prompt_user": "",
  7767. "fallback_strategy": "model",
  7768. "fallback_response": "",
  7769. "fallback_prompt": ""
  7770. }
  7771. }
  7772. },
  7773. "summary": "智能推理RAG问答"
  7774. }
  7775. }
  7776. }
  7777. },
  7778. "required": true
  7779. },
  7780. "responses": {
  7781. "200": {
  7782. "description": "",
  7783. "content": {
  7784. "application/json": {
  7785. "schema": {
  7786. "type": "object",
  7787. "properties": {
  7788. "isSuccess": {
  7789. "type": "boolean"
  7790. },
  7791. "code": {
  7792. "type": "integer"
  7793. },
  7794. "isAuthorized": {
  7795. "type": "boolean"
  7796. }
  7797. },
  7798. "required": ["isSuccess", "code", "isAuthorized"]
  7799. },
  7800. "example": {
  7801. "isSuccess": true,
  7802. "code": 1,
  7803. "isAuthorized": true
  7804. }
  7805. }
  7806. },
  7807. "headers": {}
  7808. }
  7809. },
  7810. "security": []
  7811. }
  7812. },
  7813. "/api/ai/agent/delete": {
  7814. "post": {
  7815. "summary": "删除智能体",
  7816. "deprecated": false,
  7817. "description": "",
  7818. "tags": ["AgentApplication"],
  7819. "parameters": [
  7820. {
  7821. "name": "Authorization",
  7822. "in": "header",
  7823. "description": "",
  7824. "example": "bpm_client_1513029045627916288",
  7825. "schema": {
  7826. "type": "string",
  7827. "default": "bpm_client_1513029045627916288"
  7828. }
  7829. }
  7830. ],
  7831. "requestBody": {
  7832. "content": {
  7833. "application/json": {
  7834. "schema": {
  7835. "type": "object",
  7836. "properties": {
  7837. "id": {
  7838. "type": "string"
  7839. }
  7840. },
  7841. "required": ["id"]
  7842. },
  7843. "example": {
  7844. "id": "f38a66ef-e517-4730-b3ea-4d79e8869a41"
  7845. }
  7846. }
  7847. },
  7848. "required": true
  7849. },
  7850. "responses": {
  7851. "200": {
  7852. "description": "",
  7853. "content": {
  7854. "application/json": {
  7855. "schema": {
  7856. "type": "object",
  7857. "properties": {
  7858. "isSuccess": {
  7859. "type": "boolean"
  7860. },
  7861. "code": {
  7862. "type": "integer"
  7863. },
  7864. "isAuthorized": {
  7865. "type": "boolean"
  7866. }
  7867. },
  7868. "required": ["isSuccess", "code", "isAuthorized"]
  7869. },
  7870. "example": {
  7871. "isSuccess": true,
  7872. "code": 1,
  7873. "isAuthorized": true
  7874. }
  7875. }
  7876. },
  7877. "headers": {}
  7878. }
  7879. },
  7880. "security": []
  7881. }
  7882. },
  7883. "/api/ai/agent/tools": {
  7884. "post": {
  7885. "summary": "获取智能体可以使用的工具列表",
  7886. "deprecated": false,
  7887. "description": "",
  7888. "tags": ["AgentApplication"],
  7889. "parameters": [
  7890. {
  7891. "name": "Authorization",
  7892. "in": "header",
  7893. "description": "",
  7894. "example": "bpm_client_1513029045627916288",
  7895. "schema": {
  7896. "type": "string",
  7897. "default": "bpm_client_1513029045627916288"
  7898. }
  7899. }
  7900. ],
  7901. "requestBody": {
  7902. "content": {
  7903. "application/json": {
  7904. "schema": {
  7905. "type": "object",
  7906. "properties": {}
  7907. },
  7908. "example": {}
  7909. }
  7910. },
  7911. "required": true
  7912. },
  7913. "responses": {
  7914. "200": {
  7915. "description": "",
  7916. "content": {
  7917. "application/json": {
  7918. "schema": {
  7919. "type": "object",
  7920. "properties": {
  7921. "isSuccess": {
  7922. "type": "boolean"
  7923. },
  7924. "code": {
  7925. "type": "integer"
  7926. },
  7927. "result": {
  7928. "type": "array",
  7929. "items": {
  7930. "type": "object",
  7931. "properties": {
  7932. "description": {
  7933. "type": "string"
  7934. },
  7935. "label": {
  7936. "type": "string"
  7937. },
  7938. "name": {
  7939. "type": "string"
  7940. }
  7941. },
  7942. "required": ["description", "label", "name"]
  7943. }
  7944. },
  7945. "isAuthorized": {
  7946. "type": "boolean"
  7947. }
  7948. },
  7949. "required": ["isSuccess", "code", "result", "isAuthorized"]
  7950. },
  7951. "example": {
  7952. "isSuccess": true,
  7953. "code": 1,
  7954. "result": [
  7955. {
  7956. "description": "动态和反思性的问题解决思考工具",
  7957. "label": "思考",
  7958. "name": "thinking"
  7959. },
  7960. {
  7961. "description": "创建结构化的研究计划",
  7962. "label": "制定计划",
  7963. "name": "todo_write"
  7964. },
  7965. {
  7966. "description": "快速定位包含特定关键词的文档和分块",
  7967. "label": "关键词搜索",
  7968. "name": "grep_chunks"
  7969. },
  7970. {
  7971. "description": "理解问题并查找语义相关内容",
  7972. "label": "语义搜索",
  7973. "name": "knowledge_search"
  7974. },
  7975. {
  7976. "description": "获取文档完整分块内容",
  7977. "label": "查看文档分块",
  7978. "name": "list_knowledge_chunks"
  7979. },
  7980. {
  7981. "description": "从知识图谱中查询关系",
  7982. "label": "查询知识图谱",
  7983. "name": "query_knowledge_graph"
  7984. },
  7985. {
  7986. "description": "查看文档元数据",
  7987. "label": "获取文档信息",
  7988. "name": "get_document_info"
  7989. },
  7990. {
  7991. "description": "查询数据库中的信息",
  7992. "label": "查询数据库",
  7993. "name": "database_query"
  7994. },
  7995. {
  7996. "description": "理解数据文件并进行数据分析",
  7997. "label": "数据分析",
  7998. "name": "data_analysis"
  7999. },
  8000. {
  8001. "description": "获取表格文件的元信息",
  8002. "label": "查看数据元信息",
  8003. "name": "data_schema"
  8004. },
  8005. {
  8006. "description": "按需读取技能内容以学习专业能力",
  8007. "label": "读取技能",
  8008. "name": "read_skill"
  8009. },
  8010. {
  8011. "description": "在沙箱环境中执行技能脚本",
  8012. "label": "执行技能脚本",
  8013. "name": "execute_skill_script"
  8014. },
  8015. {
  8016. "description": "提交最终回答给用户",
  8017. "label": "提交最终回答",
  8018. "name": "final_answer"
  8019. },
  8020. {
  8021. "description": "读取指定的Wiki页面内容",
  8022. "label": "读取Wiki页面",
  8023. "name": "wiki_read_page"
  8024. },
  8025. {
  8026. "description": "在Wiki中搜索页面",
  8027. "label": "搜索Wiki",
  8028. "name": "wiki_search"
  8029. },
  8030. {
  8031. "description": "使用知识点深入阅读特定原始文档",
  8032. "label": "精读源文档",
  8033. "name": "wiki_read_source_doc"
  8034. },
  8035. {
  8036. "description": "标记页面中存在的事实错误或合并冲突问题",
  8037. "label": "标记Wiki问题",
  8038. "name": "wiki_flag_issue"
  8039. },
  8040. {
  8041. "description": "创建新页面或完全覆盖已有页面",
  8042. "label": "创建/覆盖Wiki",
  8043. "name": "wiki_write_page"
  8044. },
  8045. {
  8046. "description": "替换Wiki页面中的特定文本",
  8047. "label": "局部替换Wiki",
  8048. "name": "wiki_replace_text"
  8049. },
  8050. {
  8051. "description": "重命名Wiki页面并自动更新关联链接",
  8052. "label": "重命名Wiki",
  8053. "name": "wiki_rename_page"
  8054. },
  8055. {
  8056. "description": "删除Wiki页面并自动清理关联死链",
  8057. "label": "删除Wiki",
  8058. "name": "wiki_delete_page"
  8059. },
  8060. {
  8061. "description": "查看特定的Wiki页面问题详情",
  8062. "label": "查看Wiki问题",
  8063. "name": "wiki_read_issue"
  8064. },
  8065. {
  8066. "description": "更新特定的Wiki页面问题状态",
  8067. "label": "更新Wiki问题状态",
  8068. "name": "wiki_update_issue"
  8069. }
  8070. ],
  8071. "isAuthorized": true
  8072. }
  8073. }
  8074. },
  8075. "headers": {}
  8076. }
  8077. },
  8078. "security": []
  8079. }
  8080. },
  8081. "/api/ai/agent/group-tools": {
  8082. "post": {
  8083. "summary": "获取智能体可以使用的分组工具列表",
  8084. "deprecated": false,
  8085. "description": "",
  8086. "tags": ["AgentApplication"],
  8087. "parameters": [
  8088. {
  8089. "name": "Authorization",
  8090. "in": "header",
  8091. "description": "",
  8092. "example": "bpm_client_1514278006082768896",
  8093. "schema": {
  8094. "type": "string"
  8095. }
  8096. }
  8097. ],
  8098. "requestBody": {
  8099. "content": {
  8100. "application/json": {
  8101. "schema": {
  8102. "type": "object",
  8103. "properties": {}
  8104. },
  8105. "example": {}
  8106. }
  8107. },
  8108. "required": true
  8109. },
  8110. "responses": {
  8111. "200": {
  8112. "description": "",
  8113. "content": {
  8114. "application/json": {
  8115. "schema": {
  8116. "type": "object",
  8117. "properties": {
  8118. "isSuccess": {
  8119. "type": "boolean"
  8120. },
  8121. "code": {
  8122. "type": "integer"
  8123. },
  8124. "result": {
  8125. "type": "array",
  8126. "items": {
  8127. "type": "object",
  8128. "properties": {
  8129. "name": {
  8130. "type": "string"
  8131. },
  8132. "tools": {
  8133. "type": "array",
  8134. "items": {
  8135. "type": "object",
  8136. "properties": {
  8137. "description": {
  8138. "type": "string"
  8139. },
  8140. "label": {
  8141. "type": "string"
  8142. },
  8143. "name": {
  8144. "type": "string"
  8145. }
  8146. },
  8147. "required": ["description", "label", "name"]
  8148. }
  8149. }
  8150. },
  8151. "required": ["name", "tools"]
  8152. }
  8153. },
  8154. "isAuthorized": {
  8155. "type": "boolean"
  8156. }
  8157. },
  8158. "required": ["isSuccess", "code", "result", "isAuthorized"]
  8159. },
  8160. "example": {
  8161. "isSuccess": true,
  8162. "code": 1,
  8163. "result": [
  8164. {
  8165. "name": "基础",
  8166. "tools": [
  8167. {
  8168. "description": "动态和反思性的问题解决思考工具",
  8169. "label": "思考",
  8170. "name": "thinking"
  8171. },
  8172. {
  8173. "description": "创建结构化的研究计划",
  8174. "label": "制定计划",
  8175. "name": "todo_write"
  8176. }
  8177. ]
  8178. },
  8179. {
  8180. "name": "知识库检索(RAG)",
  8181. "tools": [
  8182. {
  8183. "description": "快速定位包含特定关键词的文档和分块",
  8184. "label": "关键词搜索",
  8185. "name": "grep_chunks"
  8186. },
  8187. {
  8188. "description": "理解问题并查找语义相关内容",
  8189. "label": "语义搜索",
  8190. "name": "knowledge_search"
  8191. },
  8192. {
  8193. "description": "获取文档完整分块内容",
  8194. "label": "查看文档分块",
  8195. "name": "list_knowledge_chunks"
  8196. },
  8197. {
  8198. "description": "从知识图谱中查询关系",
  8199. "label": "查询知识图谱",
  8200. "name": "query_knowledge_graph"
  8201. },
  8202. {
  8203. "description": "查看文档元数据",
  8204. "label": "获取文档信息",
  8205. "name": "get_document_info"
  8206. },
  8207. {
  8208. "description": "查询数据库中的信息",
  8209. "label": "查询数据库",
  8210. "name": "database_query"
  8211. }
  8212. ]
  8213. },
  8214. {
  8215. "name": "Wiki 读取",
  8216. "tools": [
  8217. {
  8218. "description": "读取指定的Wiki页面内容",
  8219. "label": "读取Wiki页面",
  8220. "name": "wiki_read_page"
  8221. },
  8222. {
  8223. "description": "在Wiki中搜索页面",
  8224. "label": "搜索Wiki",
  8225. "name": "wiki_search"
  8226. },
  8227. {
  8228. "description": "使用知识点深入阅读特定原始文档",
  8229. "label": "精读源文档",
  8230. "name": "wiki_read_source_doc"
  8231. },
  8232. {
  8233. "description": "标记页面中存在的事实错误或合并冲突问题",
  8234. "label": "标记Wiki问题",
  8235. "name": "wiki_flag_issue"
  8236. }
  8237. ]
  8238. },
  8239. {
  8240. "name": "Wiki 编辑",
  8241. "tools": [
  8242. {
  8243. "description": "创建新页面或完全覆盖已有页面",
  8244. "label": "创建/覆盖Wiki",
  8245. "name": "wiki_write_page"
  8246. },
  8247. {
  8248. "description": "替换Wiki页面中的特定文本",
  8249. "label": "局部替换Wiki",
  8250. "name": "wiki_replace_text"
  8251. },
  8252. {
  8253. "description": "重命名Wiki页面并自动更新关联链接",
  8254. "label": "重命名Wiki",
  8255. "name": "wiki_rename_page"
  8256. },
  8257. {
  8258. "description": "删除Wiki页面并自动清理关联死链",
  8259. "label": "删除Wiki",
  8260. "name": "wiki_delete_page"
  8261. }
  8262. ]
  8263. },
  8264. {
  8265. "name": "Wiki 巡检",
  8266. "tools": [
  8267. {
  8268. "description": "查看特定的Wiki页面问题详情",
  8269. "label": "查看Wiki问题",
  8270. "name": "wiki_read_issue"
  8271. },
  8272. {
  8273. "description": "更新特定的Wiki页面问题状态",
  8274. "label": "更新Wiki问题状态",
  8275. "name": "wiki_update_issue"
  8276. }
  8277. ]
  8278. },
  8279. {
  8280. "name": "数据分析",
  8281. "tools": [
  8282. {
  8283. "description": "理解数据文件并进行数据分析",
  8284. "label": "数据分析",
  8285. "name": "data_analysis"
  8286. },
  8287. {
  8288. "description": "获取表格文件的元信息",
  8289. "label": "查看数据元信息",
  8290. "name": "data_schema"
  8291. }
  8292. ]
  8293. }
  8294. ],
  8295. "isAuthorized": true
  8296. }
  8297. }
  8298. },
  8299. "headers": {}
  8300. }
  8301. },
  8302. "security": []
  8303. }
  8304. }
  8305. },
  8306. "components": {
  8307. "schemas": {
  8308. "AgentNode": {
  8309. "type": "object",
  8310. "properties": {
  8311. "appAgentId": {
  8312. "type": "string",
  8313. "format": "uuid"
  8314. },
  8315. "creationTime": {
  8316. "type": "string",
  8317. "format": "date-time"
  8318. },
  8319. "creatorUserId": {
  8320. "type": "string",
  8321. "format": "uuid"
  8322. },
  8323. "data": {
  8324. "$ref": "#/components/schemas/NodeData"
  8325. },
  8326. "height": {
  8327. "type": "integer"
  8328. },
  8329. "id": {
  8330. "type": "string",
  8331. "format": "uuid"
  8332. },
  8333. "isDeleted": {
  8334. "type": "boolean"
  8335. },
  8336. "position": {
  8337. "type": "object",
  8338. "properties": {
  8339. "x": {
  8340. "type": "integer"
  8341. },
  8342. "y": {
  8343. "type": "integer"
  8344. }
  8345. },
  8346. "required": ["x", "y"]
  8347. },
  8348. "selected": {
  8349. "type": "boolean"
  8350. },
  8351. "type": {
  8352. "type": "string",
  8353. "enum": ["custom", "start", "end", "condition", "task", "http-request"]
  8354. },
  8355. "updateTime": {
  8356. "type": "string",
  8357. "format": "date-time"
  8358. },
  8359. "width": {
  8360. "type": "integer"
  8361. },
  8362. "zIndex": {
  8363. "type": "integer"
  8364. }
  8365. },
  8366. "required": [
  8367. "appAgentId",
  8368. "creationTime",
  8369. "creatorUserId",
  8370. "data",
  8371. "id",
  8372. "position",
  8373. "type"
  8374. ]
  8375. },
  8376. "NodeData": {
  8377. "type": "object",
  8378. "properties": {
  8379. "outputs": {
  8380. "type": "array",
  8381. "items": {
  8382. "type": "object",
  8383. "properties": {
  8384. "name": {
  8385. "type": "string"
  8386. },
  8387. "describe": {
  8388. "type": "string"
  8389. },
  8390. "type": {
  8391. "type": "string",
  8392. "enum": ["string", "number", "boolean", "object", "array"]
  8393. }
  8394. },
  8395. "required": ["name", "describe", "type"]
  8396. }
  8397. },
  8398. "output_can_alter": {
  8399. "type": "boolean"
  8400. },
  8401. "variables": {
  8402. "type": "array",
  8403. "items": {
  8404. "type": "string"
  8405. }
  8406. },
  8407. "method": {
  8408. "type": "string",
  8409. "enum": ["get", "post", "put", "delete", "patch", "head", "options"]
  8410. },
  8411. "ssl_verify": {
  8412. "type": "boolean"
  8413. },
  8414. "isInIteration": {
  8415. "type": "boolean"
  8416. },
  8417. "default_value": {
  8418. "type": "array",
  8419. "items": {
  8420. "type": "string"
  8421. }
  8422. },
  8423. "body": {
  8424. "$ref": "#/components/schemas/RequestBody"
  8425. },
  8426. "params": {
  8427. "type": "array",
  8428. "items": {
  8429. "type": "string"
  8430. }
  8431. },
  8432. "title": {
  8433. "type": "string"
  8434. },
  8435. "type": {
  8436. "type": "string",
  8437. "enum": ["http-request", "condition", "task"]
  8438. },
  8439. "error_strategy": {
  8440. "type": "string",
  8441. "enum": ["none", "retry", "abort", "continue"]
  8442. },
  8443. "retry_config": {
  8444. "type": "object",
  8445. "properties": {
  8446. "max_retries": {
  8447. "type": "integer",
  8448. "minimum": 0,
  8449. "maximum": 10
  8450. },
  8451. "retry_enabled": {
  8452. "type": "boolean"
  8453. },
  8454. "retry_interval": {
  8455. "type": "integer",
  8456. "minimum": 0,
  8457. "maximum": 5000
  8458. }
  8459. },
  8460. "required": ["max_retries", "retry_enabled", "retry_interval"]
  8461. },
  8462. "url": {
  8463. "type": "string",
  8464. "format": "uri"
  8465. },
  8466. "authorization": {
  8467. "type": "object",
  8468. "properties": {
  8469. "type": {
  8470. "type": "string",
  8471. "enum": ["none", "bearer", "basic", "api-key"]
  8472. },
  8473. "config": {
  8474. "type": "object",
  8475. "properties": {
  8476. "api_key": {
  8477. "type": "string"
  8478. },
  8479. "header": {
  8480. "type": "string"
  8481. },
  8482. "type": {
  8483. "type": "string"
  8484. }
  8485. }
  8486. }
  8487. },
  8488. "required": ["type", "config"]
  8489. },
  8490. "timeout_config": {
  8491. "type": "object",
  8492. "properties": {
  8493. "max_write_timeout": {
  8494. "type": "integer",
  8495. "minimum": 0
  8496. },
  8497. "max_read_timeout": {
  8498. "type": "integer",
  8499. "minimum": 0
  8500. },
  8501. "max_connect_timeout": {
  8502. "type": "integer",
  8503. "minimum": 0
  8504. }
  8505. },
  8506. "required": ["max_write_timeout", "max_read_timeout", "max_connect_timeout"]
  8507. },
  8508. "heads": {
  8509. "type": "array",
  8510. "items": {
  8511. "$ref": "#/components/schemas/HttpHeader"
  8512. }
  8513. },
  8514. "selected": {
  8515. "type": "boolean"
  8516. },
  8517. "desc": {
  8518. "type": "string"
  8519. },
  8520. "isInLoop": {
  8521. "type": "boolean"
  8522. }
  8523. },
  8524. "required": ["outputs", "method", "title", "type", "url"]
  8525. },
  8526. "RequestBody": {
  8527. "type": "object",
  8528. "properties": {
  8529. "data": {
  8530. "type": "array",
  8531. "items": {
  8532. "$ref": "#/components/schemas/RequestDataItem"
  8533. }
  8534. },
  8535. "type": {
  8536. "type": "string",
  8537. "enum": ["json", "form-data", "x-www-form-urlencoded", "raw", "binary"]
  8538. }
  8539. },
  8540. "required": ["data", "type"]
  8541. },
  8542. "RequestDataItem": {
  8543. "type": "object",
  8544. "properties": {
  8545. "type": {
  8546. "type": "string",
  8547. "enum": ["text", "file", "json"]
  8548. },
  8549. "value": {
  8550. "type": "string"
  8551. },
  8552. "key": {
  8553. "type": "string"
  8554. }
  8555. },
  8556. "required": ["type", "value"]
  8557. },
  8558. "HttpHeader": {
  8559. "type": "object",
  8560. "properties": {
  8561. "name": {
  8562. "type": "string"
  8563. },
  8564. "value": {
  8565. "type": "string"
  8566. }
  8567. },
  8568. "required": ["name", "value"]
  8569. }
  8570. },
  8571. "securitySchemes": {
  8572. "ApiKeyAuth": {
  8573. "type": "apiKey",
  8574. "in": "header",
  8575. "name": "Authorization"
  8576. }
  8577. }
  8578. },
  8579. "security": [
  8580. {
  8581. "ApiKeyAuth": []
  8582. }
  8583. ]
  8584. }