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":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"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-HK/sdk-reference/evi","slug":"/zh-HK/sdk-reference/evi","pageMetadata":{"title":"E.V.I.(嵌入式虛擬智能)","description":"創建預配置角色、技能和工具的品牌化 AI 助手。","href":"/zh-HK/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-HK/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":1},"zh-HK":{"href":"/zh-HK/sdk-reference/evi","matchLevel":0}}},"lastModified":"2026-10-15T15:26:01.047Z","originalFileLocation":"zh-HK/sdk-reference/evi.mdx","locale":"zh-HK"},"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-HK/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%83%E8%80%83\u0026amp;title=E.V.I.%EF%BC%88%E5%B5%8C%E5%85%A5%E5%BC%8F%E8%99%9B%E6%93%AC%E6%99%BA%E8%83%BD%EF%BC%89\u0026amp;description=%E5%89%B5%E5%BB%BA%E9%A0%90%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=4d3c99e1d8a53f1f5bf0663adb6f0cbcd0f3dbe49d81881e7c4e860d66cf16eb\">\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%83%E8%80%83\u0026amp;title=E.V.I.%EF%BC%88%E5%B5%8C%E5%85%A5%E5%BC%8F%E8%99%9B%E6%93%AC%E6%99%BA%E8%83%BD%EF%BC%89\u0026amp;description=%E5%89%B5%E5%BB%BA%E9%A0%90%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=4d3c99e1d8a53f1f5bf0663adb6f0cbcd0f3dbe49d81881e7c4e860d66cf16eb\">\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-HK/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-HK/sdk-reference/evi.md\">\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=\"en\" href=\"https://docs.hitheo.ai/sdk-reference/evi\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.hitheo.ai/zh/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-HK/sdk-reference/evi#webpage\",\"url\":\"https://docs.hitheo.ai/zh-HK/sdk-reference/evi\",\"name\":\"E.V.I.(嵌入式虛擬智能)\",\"description\":\"創建預配置角色、技能和工具的品牌化 AI 助手。\",\"dateModified\":\"2026-10-15T15:26:01.047Z\",\"isPartOf\":{\"@id\":\"https://docs.hitheo.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.hitheo.ai/zh-HK/sdk-reference/evi#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.hitheo.ai/zh-HK/sdk-reference/evi#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"SDK 參考\",\"item\":\"https://docs.hitheo.ai/zh-HK/sdk-reference/installation\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"E.V.I.(嵌入式虛擬智能)\",\"item\":\"https://docs.hitheo.ai/zh-HK/sdk-reference/evi\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.hitheo.ai/zh-HK/sdk-reference/evi#article\",\"headline\":\"E.V.I.(嵌入式虛擬智能)\",\"name\":\"E.V.I.(嵌入式虛擬智能)\",\"description\":\"創建預配置角色、技能和工具的品牌化 AI 助手。\",\"url\":\"https://docs.hitheo.ai/zh-HK/sdk-reference/evi\",\"mainEntityOfPage\":{\"@id\":\"https://docs.hitheo.ai/zh-HK/sdk-reference/evi#webpage\"},\"dateModified\":\"2026-10-15T15:26:01.047Z\",\"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-HK/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","pages":[{"title":"zh","href":"/zh/sdk-reference/evi"}]},{"language":"zh-HK","tabs":[{"tab":"文檔","pages":[{"title":"文檔","href":"/zh-HK"}]},{"tab":"API 參考","pages":[{"title":"API 參考","href":"/zh-HK/api-reference/overview"}]},{"tab":"SDK","groups":[{"group":"SDK 參考","pages":[{"title":"安裝與設置","href":"/zh-HK/sdk-reference/installation"},{"title":"Client","href":"/zh-HK/sdk-reference/client"},{"title":"密鑰","href":"/zh-HK/sdk-reference/keys"},{"title":"補全與流式響應","description":"創建補全,並逐令牌流式返回響應。","href":"/zh-HK/sdk-reference/completions"},{"title":"E.V.I.(嵌入式虛擬智能)","href":"/zh-HK/sdk-reference/evi"},{"title":"技能構建器","description":"以編程方式管理技能構建器 —— 創建、編譯、測試和發佈。","href":"/zh-HK/sdk-reference/canvases"},{"title":"技能(defineSkill)","href":"/zh-HK/sdk-reference/skills"},{"title":"路由工作室","href":"/zh-HK/sdk-reference/routing-studio"},{"title":"網關護欄","href":"/zh-HK/sdk-reference/guardrails"},{"title":"項目配置 (defineConfig)","href":"/zh-HK/sdk-reference/project-config"},{"title":"圖片、視頻、代碼、研究、文檔","href":"/zh-HK/sdk-reference/media"},{"title":"音頻(TTS / STT)","href":"/zh-HK/sdk-reference/audio"},{"title":"Theo Browser","href":"/zh-HK/sdk-reference/browser"},{"title":"工作流","href":"/zh-HK/sdk-reference/workflows-channels"},{"title":"錯誤處理","href":"/zh-HK/sdk-reference/error-handling"},{"title":"超時與重試","href":"/zh-HK/sdk-reference/timeouts-and-retries"},{"title":"TypeScript 類型參考","href":"/zh-HK/sdk-reference/types"}]}]},{"tab":"CLI","pages":[{"title":"CLI","href":"/zh-HK/cli-reference/overview"}]}]}]},"basePath":"","title":"E.V.I.(嵌入式虛擬智能) - Theo API Docs","deploymentId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","buildId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","dynamics":[],"chunks":[]}