PageSourceSearch

https://infoplatform.ai/assets/AgentsList-CTefWn9p.js

js infoplatform.ai collected 2026-10-05 13:25:53 UTC 9,204 bytes, 15 lines download raw bytes

1import{c as j,u as c,a as E,b as U,d as R,j as e,L as l,B as g,P as T,C as o,e as m,f as u,g as a,h as q,W as S,i as L,k as y,l as P,t as b,m as h,n as _}from"./index-uZFX8t9P.js";/**
2 * @license lucide-react v0.460.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const w=j("CircleDot",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]);/**
7 * @license lucide-react v0.460.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const D=j("CirclePause",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]]),v=[{id:"cui-identification",name:"CUI identification with escalation",blurb:"Identify the CUI category in a document against the NARA CUI Registry, and send it to a person whenever the category 
11is sensitive or the model could not name one. Runs in-house: CUI may not be served from a hosted platform.",useCase:"export_control",build:s=>({version:1,blocks:[{id:"t1",kind:"trigger",position:{x:20,y:220},config:{mode:"manual"}},{id:"m1",kind:"model",label:"Identify CUI",position:{x:230,y:220},config:{modelId:s,promptTemplate:`Identify the CUI category of this document against the NARA CUI Registry. Give the category and quote the controlling registry text.
12
13Document: {{input}}`}},{id:"c1",kind:"conditional",label:"Sensitive category?",position:{x:450,y:220},config:{condition:{type:"class_in",classes:["CUI.Expt","CUI.IR","CUI.Phys","CUI.Proc","CUI.Info"],negate:!1}}},{id:"c2",kind:"conditional",label:"No category proposed?",position:{x:670,y:320},config:{condition:{type:"critical_missing",negate:!1}}},{id:"h1",kind:"human",label:"Marking review",position:{x:900,y:120},config:{notifyEmail:"",instructions:"Confirm or correct the proposed CUI category before it is recorded.",allowEdit:!0}},{id:"o1",kind:"output",label:"Return it",position:{x:900,y:420},config:{destination:"response"}},{id:"o2",kind:"output",label:"Save the correction",position:{x:1120,y:120},config:{destination:"feedback"}}],edges:[{id:"e1",from:"t1",to:"m1"},{id:"e2",from:"m1",to:"c1"},{id:"e3",from:"c1",to:"h1",branch:"true"},{id:"e4",from:"c1",to:"c2",branch:"false"},{id:"e5",from:"c2",to:"h1",branch:"true"},{id:"e6",from:"c2",to:"o1",branch:"false"},{id:"e7",from:"h1",to:"o2"}]})},{id:"eccn-escalation",name:"Classification with escalation",blurb:"Classify an item, and send it to a person whenever the class is sensitive or the model did not produce one. The reviewer's correction is saved as training feedback.",useCase:"export_control",build:s=>({version:1,blocks:[{id:"t1",kind:"trigger",position:{x:20,y:220},config:{mode:"manual"}},{id:"m1",kind:"model",label:"Classify",position:{x:230,y:220},config:{modelId:s,promptTemplate:`Classify this item for export and give the ECCN.
14
15Item: {{input}}`}},{id:"c1",kind:"conditional",label:"Sensitive class?",position:{x:450,y:220},config:{condition:{type:"class_in",classes:["3A090","3B001","3B002","5A002"],negate:!1}}},{id:"c2",kind:"conditional",label:"No class proposed?",position:{x:670,y:320},config:{condition:{type:"critical_missing",negate:!1}}},{id:"h1",kind:"human",label:"Compliance review",position:{x:900,y:120},config:{notifyEmail:"",instructions:"Confirm or correct the proposed ECCN before it is recorded.",allowEdit:!0}},{id:"o1",kind:"output",label:"Return it",position:{x:900,y:420},config:{destination:"response"}},{id:"o2",kind:"output",label:"Save the correction",position:{x:1120,y:120},config:{destination:"feedback"}}],edges:[{id:"e1",from:"t1",to:"m1"},{id:"e2",from:"m1",to:"c1"},{id:"e3",from:"c1",to:"h1",branch:"true"},{id:"e4",from:"c1",to:"c2",branch:"false"},{id:"e5",from:"c2",to:"h1",branch:"true"},{id:"e6",from:"c2",to:"o1",branch:"false"},{id:"e7",from:"h1",to:"o2"}]})},{id:"review-everything",name:"Review every answer",blurb:"The strictest setting: every single answer waits for a person before it is returned. Slower, and sometimes exactly what a first month in production needs.",build:s=>({version:1,blocks:[{id:"t1",kind:"trigger",position:{x:20,y:160},config:{mode:"manual"}},{id:"m1",kind:"model",label:"Answer",position:{x:250,y:160},config:{modelId:s,promptTemplate:"{{input}}"}},{id:"h1",kind:"human",label:"Review",position:{x:480,y:160},config:{notifyEmail:"",instructions:"Confirm or correct this answer.",allowEdit:!0}},{id:"o1",kind:"output",position:{x:710,y:160},config:{destination:"response"}}],edges:[{id:"e1",from:"t1",to:"m1"},{id:"e2",from:"m1",to:"h1"},{id:"e3",from:"h1",to:"o1"}]})}],M={running:w,paused:D,completed:P,failed:y,cancelled:y};function $(){const{data:s,isLoading:C}=c({queryKey:["agents"],queryFn:h.list}),{data:r}=c({queryKey:["agent-runs"],queryFn:()=>h.listRuns(),refetchInterval:2e4}),N=E(),k=U(),{data:d}=c({queryKey:["models"],queryFn:_.list}),I=((d==null?void 0:d.data)??[]).filter(t=>["READY","ACTIVE"].includes(t.status)),f=R({mutationFn:async t=>{const i=v.find(A=>A.id===t),n=I[0];if(!n)throw new Error("Train a model first: an agent runs your model, so there has to be one to run.");return h.create(i.name,i.build(n.id),"draft")},onSuccess:t=>{var i;N.invalidateQueries({queryKey:["agents"]}),b({title:"Draft created",description:"Add the reviewer's email on the approval block, then activate it."}),(i=t.data)!=null&&i.id&&k(`/dashboard/agents/${t.data.id}`)},onError:t=>b({title:"Could not start from that template",description:t.message,variant:"error"})}),p=(s==null?void 0:s.data)??[],x=(r==null?void 0:r.data)??[];return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold",children:"Agents"}),e.jsx("p",{className:"text-muted-foreground",children:"Workflows around your models with human control points exactly where the engagement needs a sign-off: governed autonomy you can show the client's security team."})]}),e.jsx(l,{to:"/dashboard/agents/new",children:e.jsxs(g,{"data-testid":"new-agent",children:[e.jsx(T,{className:"mr-1 h-4 w-4"})," New agent"]})})]}),e.jsxs(o,{children:[e.jsx(m,{className:"pb-2",children:e.jsx(u,{className:"text-sm",children:"Start from a template"})}),e.jsx(a,{className:"grid gap-3 md:grid-cols-2",children:v.map(t=>e.jsxs("button",{"data-testid":`template-${t.id}`,onClick:()=>f.mutate(t.id),disabled:f.isPending,className:"rounded-md border border-white/10 p-3 text-left transition hover:border-primary/50 disabled:opacity-60",children:[e.jsx("span",{className:"block text-sm font-medium",children:t.name}),e.jsx("span",{className:"mt-1 block text-xs leading-snug text-muted-foreground",children:t.blurb})]},t.id))})]}),C?e.jsx("div",{className:"flex justify-center py-16",children:e.jsx(q,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):p.length===0?e.jsx(o,{children:e.jsxs(a,{className:"flex flex-col items-center gap-3 py-16 text-center",children:[e.jsx(S,{className:"h-8 w-8 text-muted-foreground"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:"No agents yet"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"An agent chains your model with conditions, loops and human approvals."})]})]})}):e.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:p.map(t=>{var i,n;return e.jsxs(o,{"data-testid":"agent-card",children:[e.jsx(m,{className:"pb-2",children:e.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.jsx(u,{className:"text-base",children:t.name}),e.jsx(L,{variant:t.status==="active"?"secondary":"outline",children:t.status})]})}),e.jsxs(a,{className:"space-y-3",children:[e.jsxs("p",{className:"text-sm text-muted-foreground",children:[((n=(i=t.graph)==null?void 0:i.blocks)==null?void 0:n.length)??0," blocks, version ",t.version]}),e.jsx(l,{to:`/dashboard/agents/${t.id}`,children:e.jsx(g,{variant:"outline",size:"sm",children:"Open in builder"})})]})]},t.id)})}),x.length>0&&e.jsxs(o,{children:[e.jsx(m,{children:e.jsx(u,{className:"text-lg",children:"Recent runs"})}),e.jsx(a,{className:"space-y-2",children:x.slice(0,12).map(t=>{const i=M[t.status]??w;return e.jsxs(l,{to:`/dashboard/agents/runs/${t.id}`,className:"flex flex-wrap items-center justify-between gap-2 border-b border-white/5 pb-2 text-sm transition hover:bg-white/5 last:border-0","data-testid":"run-row",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(i,{className:`h-4 w-4 ${t.status==="completed"?"text-emerald-500":t.status==="paused"?"text-amber-500":t.status==="failed"?"text-red-500":"text-muted-foreground"}`}),e.jsx("span",{className:"font-medium",children:t.agentName}),e.jsx("span",{className:"text-muted-foreground",children:t.status})]}),e.jsxs("div",{className:"text-xs text-muted-foreground",children:[t.stepCount," steps · ",t.tokensUsed.toLocaleStr
15ing()," tokens ·"," ",new Date(t.startedAt).toLocaleString()]}),t.errorMessage&&e.jsx("p",{className:"w-full text-xs text-red-400",children:t.errorMessage})]},t.id)})})]})]})}export{$ as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.