agent.openapi.json 236 KB

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