ai-agent-book 精选快照(<2MB 代码与文档,来自 github.com/bojieli/ai-agent-book)
Build latest book artifacts / build (push) Canceled after 0s
dependency resolution / resolve (3.11) (push) Canceled after 0s
dependency resolution / resolve (3.13) (push) Canceled after 0s
deploy-pages / build (push) Canceled after 0s
deploy-pages / deploy (push) Canceled after 0s
i18n consistency check / check (push) Canceled after 0s
provider adoption tests / test (chapter2/context-compression) (push) Canceled after 0s
provider adoption tests / test (chapter2/prompt-injection) (push) Canceled after 0s
provider adoption tests / test (chapter2/system-hint) (push) Canceled after 0s
provider adoption tests / test (chapter3/log-sanitization) (push) Canceled after 0s
web-search-agent tests / test (push) Canceled after 0s
web-search-agent tests / agentbook (push) Canceled after 0s

This commit is contained in:
2026-08-20 13:12:50 +00:00
commit b119135836
10275 changed files with 3284984 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
# ============================================================
# 补充案例:Alita 式工具自我扩展 · 环境变量示例
# 复制为 .env 或直接 export 到环境中
# ============================================================
# 默认使用 OpenAIgpt-5.6-luna),function calling
OPENAI_API_KEY=your-openai-api-key
# 统一兜底:若上面 provider 的 Key 缺失,但设置了 OPENROUTER_API_KEY
# 则自动改走 OpenRouter,并把模型名映射到 openai/gpt-5.6-luna 等。
# OPENROUTER_API_KEY=your-openrouter-api-key
# 可选:切换到其它 OpenAI 兼容供应商(三选一),并可覆盖模型名
# LLM_PROVIDER=openai # openai | moonshot | ark
# LLM_MODEL=gpt-5.6-luna # 覆盖默认模型
# MOONSHOT_API_KEY=your-moonshot-api-key # 当 LLM_PROVIDER=moonshot
# ARK_API_KEY=... # 当 LLM_PROVIDER=ark
# 说明:本实验的 web_search 使用 DuckDuckGo,无需任何搜索 API key。