Class: Protege::Orchestrator::ReplyHarness

Inherits:
Harness
  • Object
show all
Defined in:
lib/protege/orchestrator/reply_harness.rb

Overview

The reactive run — answering one inbound email. Runs the receiving persona's message_resolvers chain, opens the turn with the message body (plus any viewable attachments as vision parts), and streams tokens when the message came from the console. The Harness base owns the tool loop; this subclass only supplies the reply-specific hooks.

Instance Method Summary collapse

Methods inherited from Harness

run, #run

Constructor Details

#initialize(persona:, message:) ⇒ void

Parameters:

  • persona (Protege::Persona)

    the persona that received the message

  • message (Object)

    the inbound message to respond to



13
14
15
16
# File 'lib/protege/orchestrator/reply_harness.rb', line 13

def initialize(persona:, message:)
  super(persona:)
  @message = message
end