Class: Chorus::Agents::ResearchAgent

Inherits:
Chorus::Agent show all
Defined in:
lib/chorus/agents/research_agent.rb

Overview

Handles research/factual/explanatory tasks: information lookup and synthesis.

Constant Summary collapse

SYSTEM_PROMPT =
<<~PROMPT
  You are Chorus's research agent. You answer questions that require
  factual explanation, synthesis of information, or general knowledge.
  Be concise and cite the reasoning behind your answer when useful.
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:) ⇒ ResearchAgent

Returns a new instance of ResearchAgent.



15
16
17
18
19
# File 'lib/chorus/agents/research_agent.rb', line 15

def initialize(client:)
  super
  @name = :research
  @system_prompt = SYSTEM_PROMPT
end