你将构建什么
第一级:仅自定义角色
第二级:角色 + 技能
第三级:角色 + 技能 + 内联工具
流式
最佳实践
- 角色:明确说明 E.V.I. 不应该做什么(例如”绝不提及 Theo”)
- 技能:只安装你的使用场景真正需要的技能
- 工具:保持描述清晰——模型会读取这些描述来判断何时调用
- 成本:对简单查询使用
mode: "fast"
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Welcome to Theo Docs — the AI orchestration API.
通过自定义角色、技能和工具,将 Theo 嵌入你的产品。
Your Application (CRM, dashboard, app)
└── Your UI (chat, sidebar, actions)
└── @hitheo/sdk (evi instance)
└── Theo API (api.hitheo.ai)
└── Classify → Skills → Route → Agent Loop → Response
const evi = theo.evi({
persona: "You are Kai, a friendly coding assistant for DevHub.",
});
const res = await evi.complete({
prompt: "Why is my useEffect running twice?",
});
const evi = theo.evi({
persona: "You are Atlas, an operations assistant for AcmeCorp.",
skills: ["inventory-check", "data-extraction"],
});
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"],
},
},
],
});
const stream = evi.stream({ prompt: "Generate inventory report" });
for await (const event of stream) {
if (event.type === "token") process.stdout.write(event.token!);
}
mode: "fast"此页面对您有帮助吗?
