1import{l as Me,m as Fe,r,j as e,L as B}from"./vendor-react-DtC_VEUo.js";import{f as d,l as F,H as c}from"./index-BHcE0VsM.js";import{s as oe}from"./ArrowLeft.es-Ccga8xeh.js";import{s as Ae}from"./ArrowRight.es-Cj3Au2OZ.js";import{m as ie}from"./ArrowsClockwise.es-jGRpw33P.js";import{h as Pe,a9 as de,s as Te}from"./Layout-BDeo5r58.js";import{s as Ee}from"./CaretRight.es-CDi70gdz.js";import{s as $e}from"./Graph.es-o7MaHsNA.js";import{m as A}from"./SpinnerGap.es-B6em60KE.js";import{C as u,a as h,b as p,c as f}from"./card-BvU4P5j5.js";import{B as m}from"./button-BKWM_XRB.js";import{C as R}from"./checkbox-Dpa2Z3aY.js";import{m as Le}from"./modelUtils-D9jBY7Mk.js";import"./auth-redirect-519xYbgh.js";import"./vendor-mui-DOGRGCPu.js";import"./index-BBzAfRJ_.js";import"./frontmatter--9vFRCjG.js";import"./index-BW1YI9Vb.js";import"./utils-CAJzcftR.js";import"./blog-B1140jCW.js";import"./Check.es-yHqOqKZb.js";import"./List.es-BRz05NQr.js";import"./User.es-D95GFoTy.js";import"./lightning-logo-C9q01Enb.js";import"./supportedCodingAgents-1kCjImuc.js";import"./Play.es-DVCzMQKj.js";import"./modelRates-DUkNloPJ.js";import"./appPaletteStore-C4KZpuNY.js";import"./vendor-posthog-1e9euB4x.js";import"./singleFlight-U_Or92Sz.js";import"./cardSurface-GlPrhl0E.js";const We="You are a helpful assistant. Answer questions clearly and concisely.",D=["Basics","Instructions","Tools & Settings"];function hs(){const g=Me(),o=Pe(),{id:x}=Fe(),b=!!x,[n,z]=r.useState(0),[ce,I]=r.useState(!1),[H,O]=r.useState(!1),[N,q]=r.useState([]),[j,me]=r.useState([]),[xe,ue]=r.useState("qwen3-80b"),[V,he]=r.useState(new Set),[y,Y]=r.useState(null),[P,K]=r.useState(""),[T,U]=r.useState(We),[w,k]=r.useState(""),[C,G]=r.useState([]),[E,pe]=r.useState([]),[S,J]=r.useState([]),[$,fe]=r.useState([]),[_,Q]=r.useState([]),[X,Z]=r.useState(120),[ee,se]=r.useState(20),[M,te]=r.useState(void 0),[L,ae]=r.useState(void 0);r.useEffect(()=>{ge(),be(),je(),ve(),b&&x&&Ne(x)},[x]);async function ge(){try{const s=await d.mcpServers.list();q(s.items)}catch(s){F("Failed to load MCP servers:",s)}}async function je(){try{const s=await d.functions.list(void 0,100,"custom");pe(s.items)}catch(s){F("Failed to load compute functions:",s)}}async function ve(){try{const s=await d.workflows.list();fe(s.items)}catch(s){F("Failed to load workflows for agent picker:",s)}}async function be(){try{const s=await d.models.listChat();me(s.models),ue(s.default),w||k(s.default)}catch(s){F("Failed to load models:",s),k("qwen3-80b")}}async function Ne(s){try{I(!0);const t=await d.agents.get(s);K(t.name),U(t.spec.instructions),k(t.spec.model),G(t.spec.mcp_tools||[]),J(t.spec.compute_functions||[]),Q(t.spec.workflows_as_tools||[]),Z(t.spec.timeout_seconds),se(t.spec.max_llm_calls);const a=t.spec.model_settings;te(a?.enable_thinking??void 0),ae(a?.reasoning_effort??void 0)}catch{c.error("Failed to load agent"),g(o("/agents"))}finally{I(!1)}}function ye(){if(n===0&&!P.trim()){c.error("Please enter an agent name");return}if(n===1&&!T.trim()){c.error("Please enter instructions");return}z(s=>Math.min(s+1,D.length-1))}async function we(){try{O(!0);const s={};M!==void 0&&(s.enable_thinking=M),L!==void 0&&(s.reasoning_effort=L);const t=Object.keys(s).length>0,a={name:P.trim(),spec:{instructions:T.trim(),model:w,mcp_tools:C,compute_functions:S,workflows_as_tools:_,timeout_seconds:X,max_llm_calls:ee,...t?{model_settings:s}:{}}};if(b&&x)await d.agents.update(x,a),c.success("Agent updated successfully"),g(o(`/agents/${x}`));else{const l=await d.agents.create(a);c.success("Agent created successfully"),g(o(`/agents/${l.id}`))}}catch(s){c.error(s instanceof Error?s.message:"Failed to save agent")}finally{O(!1)}}async function re(s){try{Y(s);const t=N.find(a=>a.id===s);if(t&&t.spec?.files){const a=await d.mcpServers.update(s,{spec:{files:t.spec.files}});q(l=>l.map(i=>i.id===s?a:i)),c.success(`Discovered ${a.tools?.length||0} tools`)}}catch{c.error("Failed to refresh tools")}finally{Y(null)}}function ke(s,t){G(a=>a.some(i=>i.server_id===s&&i.tool_name===t)?a.filter(i=>!(i.server_id===s&&i.tool_name===t)):[...a,{server_id:s,tool_name:t}])}function Ce(s,t){return C.some(a=>a.server_id===s&&a.tool_name===t)}function Se(s){he(t=>{const a=new Set(t);return a.has(s)?a.delete(s):a.add(s),a})}const v="mt-1 w-full rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))] px-3 py-2 text-sm";if(ce)return e.jsx("div",{className:"flex justify-center py-12",children:e.jsx(A,{className:"h-7 w-7 animate-spin text-[hsl(var(--muted-foreground))]"})});const _e=j.filter(s=>!s.source||s.source==="built_in"),le=j.filter(s=>s.source==="imported"),ne=j.filter(s=>s.source==="custom");function W(s){const t=w===s.name;return e.jsxs("button",{type:"button",onClick:()=>k(s.name),className:`flex flex-col gap-2 p-3 rounded-lg border text-left transition-colors min-h-[104px] ${t?"border-[hsl(var(--primary))] bg-[hsl(var(--primary))]/5":"border-[hsl(var(--border))] hover:border-[hsl(var(--primary))]"}`,children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:`w-4 h-4 rounded-full border-2 flex items-center justify-center shrink-0 ${t?"border-[hsl(var(--primary))]":"border-[hsl(var(--muted-foreground))]"}`,children:t&&e.jsx("div",{className:"w-2 h-2 rounded-full bg-[hsl(var(--primary))]"})}),e.jsx("span",{className:"text-sm font-semibold",children:s.display_name}),s.name===xe&&e.jsx("span",{className:"px-1.5 py-0.5 rounded-full text-[0.65rem] font-medium bg-[hsl(var(--muted))] text-[hsl(var(--muted-foreground))]",children:"default"}),s.source==="imported"&&e.jsx("span",{className:"px-1.5 py-0.5 rounded-full text-[0.65rem] font-medium border border-blue-500/40 text-blue-400",children:"imported"}),s.source==="custom"&&e.jsx("span",{className:"px-1.5 py-0.5 rounded-full text-[0.65rem] font-medium border border-green-500/40 text-green-400",children:"custom"}),Le(s).includes("vision")&&e.jsx("span",{className:"px-1.5 py-0.5 rounded-full text-[0.65rem] font-medium border border-[hsl(var(--border))] text-[hsl(var(--muted-foreground))]",children:"vision"})]}),e.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))] line-clamp-2",children:s.description}),e.jsxs("div",{className:"flex flex-wrap gap-1 mt-auto",children:[s.capabilities.map(a=>e.jsx("span",{className:"px-1.5 py-0.5 rounded text-[0.65rem] border border-[hsl(var(--border))] text-[hsl(var(--muted-foreground))]",children:a.replace("_"," ")},a)),s.context_length?e.jsxs("span",{className:"px-1.5 py-0.5 rounded text-[0.65rem] border border-[hsl(var(--border))] text-[hsl(var(--muted-foreground))]",children:[Math.round(s.context_length/1e3),"K context"]}):null]})]},s.name)}
1return e.jsxs("div",{className:"max-w-2xl mx-auto space-y-6",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(m,{variant:"ghost",size:"icon",onClick:()=>g(o("/agents")),"aria-label":"Back to agents",children:e.jsx(oe,{className:"h-5 w-5"})}),e.jsx("h1",{className:"text-2xl font-bold",children:b?"Edit Agent":"Create Agent"})]}),e.jsx("div",{className:"flex items-center gap-3",children:D.map((s,t)=>e.jsxs("div",{className:"contents",children:[t>0&&e.jsx("div",{className:"flex-1 h-px bg-[hsl(var(--border))]"}),e.jsxs("div",{className:`flex items-center gap-2 px-3 py-1.5 rounded-full text-sm font-medium ${n===t?"bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))]":n>t?"bg-[hsl(var(--muted))] text-[hsl(var(--foreground))]":"bg-[hsl(var(--muted))] text-[hsl(var(--muted-foreground))]"}`,children:[e.jsx("span",{className:"w-5 h-5 rounded-full bg-black/10 dark:bg-white/20 flex items-center justify-center text-xs",children:t+1}),s]})]},s))}),n===0&&e.jsxs(u,{children:[e.jsx(h,{children:e.jsx(p,{className:"text-base",children:"Basic Information"})}),e.jsxs(f,{className:"space-y-5",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"agent-name",className:"text-sm font-medium",children:"Name"}),e.jsx("span",{className:"text-red-400 text-sm ml-1",children:"*"}),e.jsx("input",{id:"agent-name",type:"text",value:P,onChange:s=>K(s.target.value),placeholder:"My Agent",className:v,autoFocus:!0})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium block mb-2",children:"Model"}),e.jsxs("div",{className:"space-y-3",children:[e.jsx("div",{className:"grid grid-cols-2 gap-2",children:_e.map(W)}),ne.length>0&&e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:"Custom Models"}),e.jsx("div",{className:"grid grid-cols-2 gap-2",children:ne.map(W)})]}),le.length>0&&e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:"Imported Endpoints"}),e.jsx("div",{className:"grid grid-cols-2 gap-2",children:le.map(W)})]}),j.length===0&&e.jsx("p",{className:"text-sm text-[hsl(var(--muted-foreground))]",children:"Loading available models..."})]})]})]})]}),n===1&&e.jsxs(u,{children:[e.jsx(h,{children:e.jsx(p,{className:"text-base",children:"Instructions (System Prompt)"})}),e.jsxs(f,{className:"space-y-2",children:[e.jsx("textarea",{value:T,onChange:s=>U(s.target.value),placeholder:"You are a helpful assistant...",rows:10,className:v}),e.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:"Define the agent's personality, capabilities, and behavior guidelines."})]})]}),n===2&&e.jsxs(e.Fragment,{children:[e.jsxs(u,{children:[e.jsxs(h,{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(de,{className:"h-5 w-5"}),e.jsx(p,{className:"text-base",children:"Agent Tools"})]}),e.jsx("p",{className:"text-sm text-[hsl(var(--muted-foreground))]",children:"Select tools from MCP Servers to enable for this agent"})]}),e.jsxs(f,{className:"space-y-3",children:[N.length===0?e.jsxs("div",{className:"flex flex-col items-center py-4 gap-2",children:[e.jsx("p",{className:"text-sm text-[hsl(var(--muted-foreground))]",children:"No MCP servers available."}),e.jsx(m,{variant:"outline",size:"sm",asChild:!0,children:e.jsx(B,{to:o("/mcp-servers/new"),children:"Create MCP Server"})})]}):e.jsx("div",{className:"space-y-2",children:N.map(s=>e.jsxs("div",{className:"rounded-lg border border-[hsl(var(--border))] overflow-hidden",children:[e.jsxs("button",{type:"button",className:"w-full flex items-center gap-2 p-3 hover:bg-[hsl(var(--muted))]/50 transition-colors",onClick:()=>Se(s.id),children:[V.has(s.id)?e.jsx(Te,{className:"h-4 w-4 shrink-0"}):e.jsx(Ee,{className:"h-4 w-4 shrink-0"}),e.jsx("span",{className:"text-sm font-semibold flex-1 text-left",children:s.name}),e.jsx("span",{className:`px-2 py-0.5 rounded-full text-[0.65rem] font-medium ${s.runtime_status==="running"?"bg-green-500/20 text-green-400":"bg-[hsl(var(--muted))] text-[hsl(var(--muted-foreground))]"}`,children:s.runtime_status}),e.jsxs("span",{className:"px-2 py-0.5 rounded-full text-[0.65rem] font-medium border border-[hsl(var(--border))] text-[hsl(var(--muted-foreground))]",children:[s.tools?.length||0," tools"]}),s.spec?.type==="hosted"&&(s.tools?.length||0)===0&&e.jsx("button",{type:"button",onClick:t=>{t.stopPropagation(),re(s.id)},disabled:y===s.id,className:"p-1 rounded hover:bg-[hsl(var(--muted))] transition-colors","aria-label":"Refresh tools",children:y===s.id?e.jsx(A,{className:"h-4 w-4 animate-spin"}):e.jsx(ie,{className:"h-4 w-4"})})]}),V.has(s.id)&&e.jsx(e.Fragment,{children:(s.tools?.length||0)>0?e.jsx("div",{className:"border-t border-[hsl(var(--border))] bg-[hsl(var(--muted))]/30 p-2 space-y-1",children:s.tools?.map(t=>e.jsxs("button",{type:"button",className:"w-full flex items-start gap-2 p-2 rounded-md hover:bg-[hsl(var(--muted))]/50 transition-colors text-left",onClick:()=>ke(s.id,t.name),children:[e.jsx(R,{checked:Ce(s.id,t.name),"aria-label":`Select ${t.name}`}),e.jsxs("div",{children:[e.jsx("span",{className:"text-sm font-semibold block",children:t.name}),t.description&&e.jsx("span",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:t.description})]})]},t.name))}):e.jsxs("div",{className:"border-t border-[hsl(var(--border))] p-3 flex items-center justify-between",children:[e.jsx("p",{className:"text-sm text-[hsl(var(--muted-foreground))]",children:"No tools detected."}),s.spec?.type==="hosted"&&e.jsxs(m,{variant:"outline",size:"sm",onClick:()=>re(s.id),disabled:y===s.id,children:[y===s.id?e.jsx(A,{className:"mr-2 h-3.5 w-3.5 animate-spin"}):e.jsx(ie,{className:"mr-2 h-3.5 w-3.5"}),"Discover Tools"]})]})})]},s.id))}),C.length>0&&e.jsxs("div",{className:"pt-3 mt-3 border-t border-[hsl(var(--border))]",children:[e.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))] mb-1",children:"Selected tools:"}),e.jsx("div",{className:"flex flex-wrap gap-1",children:C.map(s=>{const t=N.find(a=>a.id===s.server_id);return e.jsxs("span",{className:"px-2 py-0.5 rounded-full text-xs bg-[hsl(var(--muted))] text-[hsl(var(--foreground))]",children:[t?.name||s.server_id,":",s.tool_name]},`${s.server_id}:${s.tool_name}`)})})]})]})]}),e.jsxs(u,{children:[e.jsxs(h,{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(de,{className:"h-5 w-5"}),e.jsx(p,{className:"text-base",children:"Compute Functions"})]}),e.jsx("p",{className:"text-sm text-[hsl(var(--muted-foreground))]",children:"Attach custom functions as first-class agent tools (parity with the Voice Agent Tools step)"})]}),e.jsxs(f,{className:"space-y-3",children:[E.length===0?e.jsxs("div",{className:"flex flex-col items-center py-4 gap-2",children:[e.jsx("p",{className:"text-sm text-[hsl(var(--muted-foreground))]",children:"No custom functions available."}),e.jsx(m,{variant:"outline",size:"sm",asChild:!0,children:e.jsx(B,{to:o("/functions/new"),children:"Create Function"})})]}):e.jsx("div",{className:"space-y-2",children:E.map(s=>
1{const t=S.includes(s.id);return e.jsxs("button",{type:"button",className:"w-full flex items-start gap-2 p-3 rounded-lg border border-[hsl(var(--border))] hover:border-[hsl(var(--primary))] transition-colors text-left",onClick:()=>J(a=>a.includes(s.id)?a.filter(l=>l!==s.id):[...a,s.id]),children:[e.jsx(R,{checked:t,"aria-label":`Select ${s.name}`}),e.jsxs("div",{className:"flex-1",children:[e.jsx("span",{className:"text-sm font-semibold block",children:s.name}),s.spec?.description&&e.jsx("span",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:s.spec.description})]}),e.jsx("span",{className:"px-2 py-0.5 rounded-full text-[0.65rem] font-medium border border-[hsl(var(--border))] text-[hsl(var(--muted-foreground))] shrink-0",children:s.status})]},s.id)})}),S.length>0&&e.jsxs("div",{className:"pt-3 mt-3 border-t border-[hsl(var(--border))]",children:[e.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))] mb-1",children:"Selected functions:"}),e.jsx("div",{className:"flex flex-wrap gap-1",children:S.map(s=>{const t=E.find(a=>a.id===s);return e.jsx("span",{className:"px-2 py-0.5 rounded-full text-xs bg-[hsl(var(--muted))] text-[hsl(var(--foreground))]",children:t?.name||s},s)})})]})]})]}),e.jsxs(u,{children:[e.jsxs(h,{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx($e,{className:"h-5 w-5"}),e.jsx(p,{className:"text-base",children:"Workflows-as-tools"})]}),e.jsx("p",{className:"text-sm text-[hsl(var(--muted-foreground))]",children:"Attach published workflows the agent can call as first-class tools (Phase 3a parity with Voice Agents). Each call is capped at 30 seconds."})]}),e.jsxs(f,{className:"space-y-3",children:[$.length===0?e.jsxs("div",{className:"flex flex-col items-center py-4 gap-2",children:[e.jsx("p",{className:"text-sm text-[hsl(var(--muted-foreground))]",children:"No workflows in this workspace."}),e.jsx(m,{variant:"outline",size:"sm",asChild:!0,children:e.jsx(B,{to:o("/templates/new"),children:"Create Workflow"})})]}):e.jsx("div",{className:"space-y-2",children:$.map(s=>{const t=_.includes(s.id);return e.jsxs("button",{type:"button",className:"w-full flex items-start gap-2 p-3 rounded-lg border border-[hsl(var(--border))] hover:border-[hsl(var(--primary))] transition-colors text-left",onClick:()=>Q(a=>a.includes(s.id)?a.filter(l=>l!==s.id):[...a,s.id]),children:[e.jsx(R,{checked:t,"aria-label":`Select ${s.name}`}),e.jsxs("div",{className:"flex-1",children:[e.jsx("span",{className:"text-sm font-semibold block",children:s.name}),s.description&&e.jsx("span",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:s.description})]}),e.jsx("span",{className:"px-2 py-0.5 rounded-full text-[0.65rem] font-medium border border-[hsl(var(--border))] text-[hsl(var(--muted-foreground))] shrink-0",children:s.status})]},s.id)})}),_.length>0&&e.jsxs("div",{className:"pt-3 mt-3 border-t border-[hsl(var(--border))]",children:[e.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))] mb-1",children:"Selected workflows:"}),e.jsx("div",{className:"flex flex-wrap gap-1",children:_.map(s=>{const t=$.find(a=>a.id===s);return e.jsx("span",{className:"px-2 py-0.5 rounded-full text-xs bg-[hsl(var(--muted))] text-[hsl(var(--foreground))]",children:t?.name||s},s)})})]})]})]}),e.jsxs(u,{children:[e.jsx(h,{children:e.jsx(p,{className:"text-base",children:"Runtime Settings"})}),e.jsx(f,{children:e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"timeout",className:"text-sm font-medium",children:"Timeout (seconds)"}),e.jsx("input",{id:"timeout",type:"number",value:X,onChange:s=>Z(parseInt(s.target.value)||120),min:10,max:600,className:v})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"max-llm",className:"text-sm font-medium",children:"Max LLM Calls"}),e.jsx("input",{id:"max-llm",type:"number",value:ee,onChange:s=>se(parseInt(s.target.value)||20),min:1,max:100,className:v})]})]})})]}),(()=>{const s=j.find(l=>l.name===w);if(!s?.capabilities.includes("thinking"))return null;const a=s?.thinking_style??"toggle";return e.jsxs(u,{children:[e.jsx(h,{children:e.jsx(p,{className:"text-base",children:"Reasoning"})}),e.jsx(f,{children:a==="effort"?e.jsxs("div",{children:[e.jsx("label",{htmlFor:"reasoning-effort",className:"text-sm font-medium",children:"Reasoning Effort"}),e.jsxs("select",{id:"reasoning-effort",value:L??"",onChange:l=>ae(l.target.value===""?void 0:l.target.value),className:v,children:[e.jsx("option",{value:"",children:"Default"}),e.jsx("option",{value:"low",children:"Low"}),e.jsx("option",{value:"medium",children:"Medium"}),e.jsx("option",{value:"high",children:"High"})]}),e.jsxs("p",{className:"text-xs text-[hsl(var(--muted-foreground))] mt-1",children:["Sent as the top-level OpenAI"," ",e.jsx("code",{className:"font-mono",children:"reasoning_effort"})," field. Higher values emit longer chain-of-thought before the final answer."]}
1)]}):e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"enable-thinking",className:"text-sm font-medium block",children:"Enable Thinking"}),e.jsxs("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:["Wired into"," ",e.jsx("code",{className:"font-mono",children:"chat_template_kwargs.enable_thinking"}),"; default leaves the model in its built-in mode."]})]}),e.jsxs("select",{id:"enable-thinking",value:M===void 0?"":M?"true":"false",onChange:l=>te(l.target.value===""?void 0:l.target.value==="true"),className:"rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))] px-2 py-1 text-sm",children:[e.jsx("option",{value:"",children:"Default"}),e.jsx("option",{value:"true",children:"On"}),e.jsx("option",{value:"false",children:"Off"})]})]})})]})})()]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsxs(m,{variant:"outline",onClick:()=>n===0?g(o("/agents")):z(s=>s-1),children:[e.jsx(oe,{className:"mr-2 h-4 w-4"}),n===0?"Cancel":"Back"]}),n<D.length-1?e.jsxs(m,{onClick:ye,children:["Next",e.jsx(Ae,{className:"ml-2 h-4 w-4"})]}):e.jsxs(m,{onClick:we,disabled:H,children:[H&&e.jsx(A,{className:"mr-2 h-4 w-4 animate-spin"}),b?"Update Agent":"Create Agent"]})]})]})}export{hs as AgentCreate};
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.