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
+35
View File
@@ -0,0 +1,35 @@
# LLM Configuration (for safety checks and summarization)
PROVIDER=kimi
# API Keys (set the one for your provider)
DASHSCOPE_API_KEY=your_dashscope_key
SILICONFLOW_API_KEY=your_siliconflow_key
DOUBAO_API_KEY=your_doubao_key
KIMI_API_KEY=your_kimi_key
MOONSHOT_API_KEY=your_moonshot_key
OPENROUTER_API_KEY=your_openrouter_key
# Universal OpenRouter fallback:
# When the configured PROVIDER's key is missing but OPENROUTER_API_KEY is set,
# Config.effective_provider() transparently switches to 'openrouter' so the LLM
# steps (approval, summarization, error/syntax analysis) still run.
# For OpenRouter, MODEL should be a provider/model id, e.g. openai/gpt-5.6-luna.
# Model (optional, defaults to provider's default model)
# MODEL=kimi-k3
# DashScope/Bailian defaults to qwen3.7-plus; set DASHSCOPE_BASE_URL to
# https://dashscope-intl.aliyuncs.com/compatible-mode/v1 for international keys.
# Model parameters
TEMPERATURE=0.7
MAX_TOKENS=4096
# External Services (optional)
GOOGLE_CALENDAR_CREDENTIALS_FILE=credentials.json
GITHUB_TOKEN=your_github_token_here
# Safety Settings
REQUIRE_APPROVAL_FOR_DANGEROUS_OPS=true
AUTO_SUMMARIZE_COMPLEX_OUTPUT=true
AUTO_VERIFY_CODE=true
MAX_OUTPUT_LENGTH=1000