你將構建什麼
第一級:僅自定義角色
第二級:角色 + 技能
第三級:角色 + 技能 + 內聯工具
流式
最佳實踐
- 角色:明確說明 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"這個頁面有幫助嗎?
