E.V.I. 是一个预配置的 Theo 客户端。只需创建一次,之后每次补全都会自动包含你的角色、技能和工具。
创建 E.V.I.
const evi = theo.evi({ persona: "You are Nova, the AI assistant for WarehouseOS.", skills: ["data-extraction"], tools: [ { name: "check_inventory", description: "Look up stock levels for a SKU", input_schema: { type: "object", properties: { sku: { type: "string" } }, required: ["sku"], }, }, ], defaultMode: "auto", defaultTemperature: 0.7, metadata: { app: "warehouse-os" },});
使用它
// Persona, skills, and tools are injected automaticallyconst res = await evi.complete({ prompt: "Check stock for SKU-A1234" });const stream = evi.stream({ prompt: "Generate inventory report" });
EviConfig
字段
类型
是否必需
说明
persona
string
✅
自定义系统提示词——完全替代 Theo
skills
string[]
—
每次补全都会启用的技能 slug
tools
ToolDef[]
—
每次补全都可使用的内联工具
defaultMode
ChatMode
—
默认模式(默认值:"auto")
defaultTemperature
number
—
默认温度
metadata
Record<string, unknown>
—
附加在每个请求上的元数据
合并行为
每次请求传入的值会与 E.V.I. 的默认值合并:
skills —— E.V.I. 的技能 + 请求中的技能(合并后共同生效)
tools —— E.V.I. 的工具 + 请求中的工具(合并后共同生效)
metadata —— E.V.I. 的元数据与请求元数据合并(冲突时以请求为准)
mode —— 请求中的模式会覆盖 E.V.I. 的默认模式
temperature —— 请求中的温度会覆盖 E.V.I. 的默认温度
// E.V.I. has skills: ["data-extraction"]// This request adds "compliance-checker" for a total of bothconst res = await evi.complete({ prompt: "Check compliance for order #123", skills: ["compliance-checker"],});
此页面对您有帮助吗?
{"docsConfig":{"theme":"sequoia","$schema":"https://mintlify.com/docs.json","name":"Theo API Docs","colors":{"primary":"#715eac","light":"#00eefd","dark":"#ff00aa"},"logo":"https://mintcdn.com/theoai/1GrRXquT3RmYCAKc/images/theo-logo-v1.png?fit=max\u0026auto=format\u0026n=1GrRXquT3RmYCAKc\u0026q=85\u0026s=8b015a7610e195426a8c23f5991cc4fd","favicon":"https://mintcdn.com/theoai/e1gmlMTZO-f4Ir99/images/theo-icon-512px.png?fit=max\u0026auto=format\u0026n=e1gmlMTZO-f4Ir99\u0026q=85\u0026s=24571b1a570eb2a94af2b187ed34ebdd","appearance":{"default":"dark"},"background":{"decoration":"grid"},"navbar":{"links":[]},"search":{"prompt":"Search Theo docs..."},"seo":{"indexing":"all"},"fonts":{"family":"PT Sans","weight":300},"icons":{"library":"lucide"},"styling":{"eyebrows":"section","latex":true},"banner":{"content":"Welcome to Theo Docs — the AI orchestration API.","dismissible":true},"thumbnails":{"appearance":"dark"},"interaction":{"drilldown":true},"metadata":{"timestamp":false},"navigation":{"languages":[{"language":"en","default":true,"href":""},{"language":"es","href":"es/changelog"},{"language":"zh","href":"zh"},{"language":"zh-HK","href":"zh-HK"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"theoai","hasAudioNarration":false,"actualSubdomain":"theoai","customDomains":["docs.hitheo.ai"],"gitSource":{"type":"github","owner":"arihealthbird","repo":"hitheo","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":"","_id":"6b10de369ffae5051c410436"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ad0f075d7c9ed5c31aaab6d","clientVersion":"0.0.4453","searchFilterCounts":[{"language":"en","tag":"API Reference","count":102},{"language":"zh-HK","tag":"API 參考","count":99},{"language":"zh","tag":"API 参考","count":99},{"language":"en","tag":"Documentation","count":66},{"language":"zh-HK","tag":"文檔","count":63},{"language":"zh","tag":"文档","count":63},{"language":"en","tag":"SDK","count":17},{"language":"en","tag":"SDK Reference","count":17},{"language":"en","tag":"Resources","count":16},{"language":"en","tag":"Embed Widgets","count":16},{"language":"zh-HK","tag":"資源","count":16},{"language":"zh-HK","tag":"SDK","count":16},{"language":"zh-HK","tag":"SDK 參考","count":16},{"language":"zh","tag":"资源","count":16},{"language":"zh","tag":"SDK","count":16},{"language":"zh","tag":"SDK 参考","count":16},{"language":"en","tag":"Guides","count":15},{"language":"zh-HK","tag":"嵌入式組件","count":15},{"language":"zh","tag":"嵌入式组件","count":15},{"language":"zh-HK","tag":"指南","count":14},{"language":"zh","tag":"指南","count":14},{"language":"en","tag":"Skills","count":11},{"language":"zh-HK","tag":"技能","count":11},{"language":"zh","tag":"技能","count":11},{"language":"en","tag":"Routing Studio","count":10},{"language":"zh-HK","tag":"Routing Studio","count":10},{"language":"zh","tag":"Routing Studio","count":10},{"language":"en","tag":"Webhooks","count":9},{"language":"zh-HK","tag":"Webhooks","count":9},{"language":"zh","tag":"Webhooks","count":9},{"language":"es","tag":"Documentación","count":1},{"language":"es","tag":"Registro de cambios","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"zh/sdk-reference/evi","slug":"/zh/sdk-reference/evi","pageMetadata":{"title":"E.V.I.(嵌入式虚拟智能)","description":"创建预配置角色、技能和工具的品牌化 AI 助手。","href":"/zh/sdk-reference/evi"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"创建预配置角色、技能和工具的品牌化 AI 助手。\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`E.V.I. 是一个预配置的 Theo 客户端。只需创建一次,之后每次补全都会自动包含你的角色、技能和工具。`}),`\n`,_jsx(Heading,{level:`2`,id:`创建-e-v-i`,children:`创建 E.V.I.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`18`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`18`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` evi`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` theo`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`evi`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` persona:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"You are Nova, the AI assistant for WarehouseOS.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` skills:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"data-extraction\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` tools:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` name:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"check_inventory\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` description:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Look up stock levels for a SKU\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` input_schema:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` type:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"object\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` properties:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`sku:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`type:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"string\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` required:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sku\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` defaultMode:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"auto\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` defaultTemperature:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0.7`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` metadata:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`app:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"warehouse-os\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`使用它`,children:`使用它`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Persona, skills, and tools are injected automatically`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` res`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` evi`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`complete`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`prompt:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Check stock for SKU-A1234\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` stream`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` evi`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stream`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`prompt:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Generate inventory report\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`eviconfig`,children:`EviConfig`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`字段`}),_jsx(_components.th,{children:`类型`}),_jsx(_components.th,{children:`是否必需`}),_jsx(_components.th,{children:`说明`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`persona`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`✅`}),_jsx(_components.td,{children:`自定义系统提示词——完全替代 Theo`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`skills`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string[]`})}),_jsx(_components.td,{children:`—`}),_jsx(_components.td,{children:`每次补全都会启用的技能 slug`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`tools`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`ToolDef[]`})}),_jsx(_components.td,{children:`—`}),_jsx(_components.td,{children:`每次补全都可使用的内联工具`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`defaultMode`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`ChatMode`})}),_jsx(_components.td,{children:`—`}),_jsxs(_components.td,{children:[`默认模式(默认值:`,_jsx(_components.code,{children:`\"auto\"`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`defaultTemperature`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`number`})}),_jsx(_components.td,{children:`—`}),_jsx(_components.td,{children:`默认温度`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`metadata`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Record\u003cstring, unknown>`})}),_jsx(_components.td,{children:`—`}),_jsx(_components.td,{children:`附加在每个请求上的元数据`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`合并行为`,children:`合并行为`}),`\n`,_jsxs(_components.p,{children:[`每次请求传入的值会与 E.V.I. 的默认值`,_jsx(_components.strong,{children:`合并`}),`:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`skills`}),` —— E.V.I. 的技能 + 请求中的技能(合并后共同生效)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`tools`}),` —— E.V.I. 的工具 + 请求中的工具(合并后共同生效)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`metadata`}),` —— E.V.I. 的元数据与请求元数据合并(冲突时以请求为准)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`mode`}),` —— 请求中的模式会覆盖 E.V.I. 的默认模式`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`temperature`}),` —— 请求中的温度会覆盖 E.V.I. 的默认温度`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// E.V.I. has skills: [\"data-extraction\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// This request adds \"compliance-checker\" for a total of both`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` res`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` evi`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`complete`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` prompt:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Check compliance for order #123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` skills:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"compliance-checker\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"E.V.I.(嵌入式虚拟智能)","description":"创建预配置角色、技能和工具的品牌化 AI 助手。","href":"/zh/sdk-reference/evi"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"创建 E.V.I.","slug":"创建-e-v-i","depth":2,"children":[]},{"title":"使用它","slug":"使用它","depth":2,"children":[]},{"title":"EviConfig","slug":"eviconfig","depth":2,"children":[]},{"title":"合并行为","slug":"合并行为","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"theoai","siteName":"Theo API Docs","title":"E.V.I.(嵌入式虚拟智能) - Theo API Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/sdk-reference/evi","matchLevel":1},"es":{"href":"/es/changelog","matchLevel":4},"zh":{"href":"/zh/sdk-reference/evi","matchLevel":0},"zh-HK":{"href":"/zh-HK/sdk-reference/evi","matchLevel":1}}},"lastModified":"2026-10-15T15:25:55.131Z","originalFileLocation":"zh/sdk-reference/evi.mdx","locale":"zh"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"创建预配置角色、技能和工具的品牌化 AI 助手。\">\u003cmeta data-mint-head name=\"application-name\" content=\"Theo API Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/theoai/HMaTiOxhwLuEkGS5/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/theoai/HMaTiOxhwLuEkGS5/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/theoai/HMaTiOxhwLuEkGS5/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/theoai/HMaTiOxhwLuEkGS5/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/theoai/HMaTiOxhwLuEkGS5/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/theoai/HMaTiOxhwLuEkGS5/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/theoai/HMaTiOxhwLuEkGS5/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/theoai/HMaTiOxhwLuEkGS5/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/theoai/HMaTiOxhwLuEkGS5/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"E.V.I.(嵌入式虚拟智能) - Theo API Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"创建预配置角色、技能和工具的品牌化 AI 助手。\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Theo API Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.hitheo.ai/zh/sdk-reference/evi\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://theoai.mintlify.site/_mintlify/api/og/v2?division=SDK+%E5%8F%82%E8%80%83\u0026amp;title=E.V.I.%EF%BC%88%E5%B5%8C%E5%85%A5%E5%BC%8F%E8%99%9A%E6%8B%9F%E6%99%BA%E8%83%BD%EF%BC%89\u0026amp;description=%E5%88%9B%E5%BB%BA%E9%A2%84%E9%85%8D%E7%BD%AE%E8%A7%92%E8%89%B2%E3%80%81%E6%8A%80%E8%83%BD%E5%92%8C%E5%B7%A5%E5%85%B7%E7%9A%84%E5%93%81%E7%89%8C%E5%8C%96+AI+%E5%8A%A9%E6%89%8B%E3%80%82\u0026amp;theme=1223219aff4bac636125219a\u0026amp;signature=b8dc6fd5b0635e64fda65225c70cf24eca51e0c0673cfd1444c2f795aa4e3205\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"E.V.I.(嵌入式虚拟智能) - Theo API Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"创建预配置角色、技能和工具的品牌化 AI 助手。\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://theoai.mintlify.site/_mintlify/api/og/v2?division=SDK+%E5%8F%82%E8%80%83\u0026amp;title=E.V.I.%EF%BC%88%E5%B5%8C%E5%85%A5%E5%BC%8F%E8%99%9A%E6%8B%9F%E6%99%BA%E8%83%BD%EF%BC%89\u0026amp;description=%E5%88%9B%E5%BB%BA%E9%A2%84%E9%85%8D%E7%BD%AE%E8%A7%92%E8%89%B2%E3%80%81%E6%8A%80%E8%83%BD%E5%92%8C%E5%B7%A5%E5%85%B7%E7%9A%84%E5%93%81%E7%89%8C%E5%8C%96+AI+%E5%8A%A9%E6%89%8B%E3%80%82\u0026amp;theme=1223219aff4bac636125219a\u0026amp;signature=b8dc6fd5b0635e64fda65225c70cf24eca51e0c0673cfd1444c2f795aa4e3205\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/theoai/HMaTiOxhwLuEkGS5/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Theo API Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#715eac\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.hitheo.ai/zh/sdk-reference/evi\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/zh/sdk-reference/evi.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.hitheo.ai/zh/sdk-reference/evi\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.hitheo.ai/sdk-reference/evi\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh-HK\" href=\"https://docs.hitheo.ai/zh-HK/sdk-reference/evi\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.hitheo.ai/sdk-reference/evi\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.hitheo.ai/#organization\",\"name\":\"Theo API Docs\",\"url\":\"https://docs.hitheo.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/theoai/1GrRXquT3RmYCAKc/images/theo-logo-v1.png?fit=max\u0026auto=format\u0026n=1GrRXquT3RmYCAKc\u0026q=85\u0026s=8b015a7610e195426a8c23f5991cc4fd\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.hitheo.ai#website\",\"name\":\"Theo API Docs\",\"url\":\"https://docs.hitheo.ai\",\"publisher\":{\"@id\":\"https://docs.hitheo.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.hitheo.ai/zh/sdk-reference/evi#webpage\",\"url\":\"https://docs.hitheo.ai/zh/sdk-reference/evi\",\"name\":\"E.V.I.(嵌入式虚拟智能)\",\"description\":\"创建预配置角色、技能和工具的品牌化 AI 助手。\",\"dateModified\":\"2026-10-15T15:25:55.131Z\",\"isPartOf\":{\"@id\":\"https://docs.hitheo.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.hitheo.ai/zh/sdk-reference/evi#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.hitheo.ai/zh/sdk-reference/evi#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"SDK 参考\",\"item\":\"https://docs.hitheo.ai/zh/sdk-reference/installation\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"E.V.I.(嵌入式虚拟智能)\",\"item\":\"https://docs.hitheo.ai/zh/sdk-reference/evi\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.hitheo.ai/zh/sdk-reference/evi#article\",\"headline\":\"E.V.I.(嵌入式虚拟智能)\",\"name\":\"E.V.I.(嵌入式虚拟智能)\",\"description\":\"创建预配置角色、技能和工具的品牌化 AI 助手。\",\"url\":\"https://docs.hitheo.ai/zh/sdk-reference/evi\",\"mainEntityOfPage\":{\"@id\":\"https://docs.hitheo.ai/zh/sdk-reference/evi#webpage\"},\"dateModified\":\"2026-10-15T15:25:55.131Z\",\"publisher\":{\"@id\":\"https://docs.hitheo.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.hitheo.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Theo API Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Theo API Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/zh/sdk-reference/evi.md","siteName":"Theo API Docs","nav":{"global":null,"languages":[{"language":"en","default":true,"pages":[{"title":"en","href":"/sdk-reference/evi"}]},{"language":"es","pages":[{"title":"es","href":"/es/changelog"}]},{"language":"zh","tabs":[{"tab":"文档","pages":[{"title":"文档","href":"/zh"}]},{"tab":"API 参考","pages":[{"title":"API 参考","href":"/zh/api-reference/overview"}]},{"tab":"SDK","groups":[{"group":"SDK 参考","pages":[{"title":"安装与设置","href":"/zh/sdk-reference/installation"},{"title":"Client","href":"/zh/sdk-reference/client"},{"title":"密钥","href":"/zh/sdk-reference/keys"},{"title":"补全与流式响应","description":"创建补全,并逐令牌流式返回响应。","href":"/zh/sdk-reference/completions"},{"title":"E.V.I.(嵌入式虚拟智能)","href":"/zh/sdk-reference/evi"},{"title":"技能构建器","description":"以编程方式管理技能构建器 —— 创建、编译、测试和发布。","href":"/zh/sdk-reference/canvases"},{"title":"技能(defineSkill)","href":"/zh/sdk-reference/skills"},{"title":"路由工作室","href":"/zh/sdk-reference/routing-studio"},{"title":"网关护栏","href":"/zh/sdk-reference/guardrails"},{"title":"项目配置 (defineConfig)","href":"/zh/sdk-reference/project-config"},{"title":"图片、视频、代码、研究、文档","href":"/zh/sdk-reference/media"},{"title":"音频(TTS / STT)","href":"/zh/sdk-reference/audio"},{"title":"Theo Browser","href":"/zh/sdk-reference/browser"},{"title":"工作流","href":"/zh/sdk-reference/workflows-channels"},{"title":"错误处理","href":"/zh/sdk-reference/error-handling"},{"title":"超时与重试","href":"/zh/sdk-reference/timeouts-and-retries"},{"title":"TypeScript 类型参考","href":"/zh/sdk-reference/types"}]}]},{"tab":"CLI","pages":[{"title":"CLI","href":"/zh/cli-reference/overview"}]}]},{"language":"zh-HK","pages":[{"title":"zh-HK","href":"/zh-HK/sdk-reference/evi"}]}]},"basePath":"","title":"E.V.I.(嵌入式虚拟智能) - Theo API Docs","deploymentId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","buildId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","dynamics":[],"chunks":[]}