Skip to content

速查卡 · Governance

← 回速查卡總覽

V3 Governance pattern (Production agent)

每次 LLM call → 必走 4 道閘門:

1. Cost cap check    (pre-flight, fail-closed)
2. Tool sandbox      (allowed list, deny-by-default)
3. Audit log         (SQLite: ts/run_id/event/payload/cost)
4. Replay record     (input + output + model + temperature)

完整 V3 case →


模型路由建議

任務類型推薦 model
Routing / 分類Haiku 4.5 / Gemini Flash
摘要 / 整理Haiku 4.5 / GPT-4o-mini
Coding 修 bugSonnet 4.6 / DeepSeek V3
Coding 大重構Opus 4.7
數學 / 推理DeepSeek R1 / Opus 4.7 / o1
Embeddingtext-embedding-3-small (OpenAI) / cohere multilingual
Function callingHaiku 4.5 (cost) / Sonnet 4.6 (穩)
Multi-agent supervisorSonnet 4.6
Multi-agent workerHaiku 4.5
Reviewer / CriticSonnet 4.6
Long context (>200K)Sonnet 4.6 (1M) / Gemini 1.5 Pro (2M)

Anti-hallucination 5 條 (Researcher 用)

  1. 每 citation 必經 DOI / arxiv ID verify
  2. 區分 [直接引用] vs [基於 X 推論] vs [推測]
  3. Reflection critique 必含 fact-check
  4. 多 source 對比 (≥ 2 source 才寫進報告)
  5. uncertainty 標記 (不確定日期就只標年份)

完整 Ch 16 →


下一頁CLI / Git · SDK · Pricing · Patterns · MCP / Skills

MIT License — 章節內容跟 starter code 都可以 copy 進你自己的商業專案