agent.openapi.json 220 KB

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