Class: Chorus::Agents::CoderAgent
- Inherits:
-
Chorus::Agent
- Object
- Chorus::Agent
- Chorus::Agents::CoderAgent
- Defined in:
- lib/chorus/agents/coder_agent.rb
Overview
Handles code-related tasks: writing, debugging, and explaining code.
Constant Summary collapse
- SYSTEM_PROMPT =
<<~PROMPT You are Chorus's coding agent. You write, debug, and explain code. Be precise and give runnable examples when relevant. If a task is not related to code, say so briefly instead of improvising an answer. PROMPT
Instance Attribute Summary
Attributes inherited from Chorus::Agent
Instance Method Summary collapse
-
#initialize(client:) ⇒ CoderAgent
constructor
A new instance of CoderAgent.
Methods inherited from Chorus::Agent
Constructor Details
#initialize(client:) ⇒ CoderAgent
Returns a new instance of CoderAgent.
15 16 17 18 19 |
# File 'lib/chorus/agents/coder_agent.rb', line 15 def initialize(client:) super @name = :coder @system_prompt = SYSTEM_PROMPT end |