agent.openapi.json 217 KB

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