Class: Chorus::Agents::CoderAgent

Inherits:
Chorus::Agent show all
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

#name, #system_prompt

Instance Method Summary collapse

Methods inherited from Chorus::Agent

#call

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