base.yml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # Shared provider/tool core for the example agents, loaded via a nested
  2. # @cordisjs/plugin-include from each example's cordis.yml. This is
  3. # base-core.yml (the providerless core: llm, sessions, system-prompt, tools,
  4. # agents, invariants, bash-local, tool-bash) PLUS the real llm-deepseek adapter.
  5. #
  6. # The providerless core lives in base-core.yml so the keyless snapshot-replay
  7. # config (acp-agent/cordis.snapshot.yml) can reuse it with llm-replay in place
  8. # of the adapter — it can't reuse THIS file, because llm-deepseek's apply()
  9. # throws without DEEPSEEK_API_KEY.
  10. #
  11. # Deliberately EXCLUDES:
  12. # - the console logger: it writes to stdout, which the acp-agent reserves for
  13. # the JSON-RPC protocol (see packages/acp). Each example loads logging itself.
  14. # - agent-loop: AgentLoop pre-creates its configured `agents` in its
  15. # constructor, and the examples disagree — coding-agent needs a pre-created
  16. # `main` (its stdio-chat calls ctx.agents.get('main')), while acp-agent must
  17. # pre-create NONE (ACP session/new creates agents on demand). So each example
  18. # declares agent-loop with its own `agents` list.
  19. #
  20. # Requires DEEPSEEK_API_KEY (and optionally DEEPSEEK_BASE_URL) in the env.
  21. # The providerless core (resolved relative to THIS file's directory).
  22. - id: base-core
  23. name: '@cordisjs/plugin-include'
  24. config:
  25. path: './base-core.yml'
  26. # The DeepSeek adapter. Swap to '@deepseek-ai/dsh-llm-pi-ai' for the pi-ai-backed
  27. # twin (same config shape; `reasoning: high` replaces thinking/reasoningEffort).
  28. - id: llm-deepseek
  29. name: '@deepseek-ai/dsh-llm-deepseek'
  30. config:
  31. apiKey: !!js process.env.DEEPSEEK_API_KEY
  32. baseURL: !!js process.env.DEEPSEEK_BASE_URL
  33. models:
  34. - deepseek-v4-flash
  35. - deepseek-v4-pro