base.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # Shared provider/tool core for the example agents, loaded via a nested
  2. # @cordisjs/plugin-include from each example's cordis.yml. Contains everything
  3. # the model and tools need; each example adds its own infra (logger/timer/hmr),
  4. # its agent-loop config (the examples disagree — see below), and its UI plugin.
  5. #
  6. # Deliberately EXCLUDES:
  7. # - the console logger: it writes to stdout, which the acp-agent reserves for
  8. # the JSON-RPC protocol (see packages/acp). Each example loads logging itself.
  9. # - agent-loop: AgentLoop pre-creates its configured `agents` in its
  10. # constructor, and the examples disagree — coding-agent needs a pre-created
  11. # `main` (its stdio-chat calls ctx.agents.get('main')), while acp-agent must
  12. # pre-create NONE (ACP session/new creates agents on demand). So each example
  13. # declares agent-loop with its own `agents` list.
  14. #
  15. # Plugin entries here use package names (resolved from node_modules), so they
  16. # are insensitive to the baseUrl reset that plugin-include performs per file.
  17. # Requires DEEPSEEK_API_KEY (and optionally DEEPSEEK_BASE_URL) in the env.
  18. - id: llm
  19. name: '@deepseek-ai/dsh-llm'
  20. - id: sessions
  21. name: '@deepseek-ai/dsh-session'
  22. - id: system-prompt
  23. name: '@deepseek-ai/dsh-system-prompt'
  24. - id: tools
  25. name: '@deepseek-ai/dsh-tools'
  26. - id: agents
  27. name: '@deepseek-ai/dsh-agent'
  28. # Dev-mode event-contract assertions + session-log freeze (off in prod).
  29. - id: invariants
  30. name: '@deepseek-ai/dsh-invariants'
  31. # The DeepSeek adapter. Swap to '@deepseek-ai/dsh-llm-pi-ai' for the pi-ai-backed
  32. # twin (same config shape; `reasoning: high` replaces thinking/reasoningEffort).
  33. - id: llm-deepseek
  34. name: '@deepseek-ai/dsh-llm-deepseek'
  35. config:
  36. apiKey: !!js process.env.DEEPSEEK_API_KEY
  37. baseURL: !!js process.env.DEEPSEEK_BASE_URL
  38. models:
  39. - deepseek-v4-flash
  40. - deepseek-v4-pro
  41. # Bash execution: the local executor implementation + the tool schemas.
  42. - id: bash
  43. name: '@deepseek-ai/dsh-bash-local'
  44. config:
  45. timeoutMs: 60000
  46. - id: tool-bash
  47. name: '@deepseek-ai/dsh-tool-bash'