Class: Protege::Orchestrator::ResponsibilityHarness

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

Overview

The proactive run — carrying out one scheduled Responsibility (the Loop layer). Runs the persona's responsibility_resolvers chain, which assembles the entire message list — including the responsibility's instructions (e.g. via LoadTextResolver(role: :user) { ctx.responsibility.instructions }). The harness injects no user turn of its own (it inherits the base user_content default of nil): context assembly is the resolver chain's job. There is no inbound message and no streaming. The Harness base owns the tool loop; this subclass only supplies the responsibility-specific hooks.

Instance Method Summary collapse

Methods inherited from Harness

run, #run

Constructor Details

#initialize(persona:, responsibility:, responsibility_run:) ⇒ void

Parameters:



16
17
18
19
20
# File 'lib/protege/orchestrator/responsibility_harness.rb', line 16

def initialize(persona:, responsibility:, responsibility_run:)
  super(persona:)
  @responsibility     = responsibility
  @responsibility_run = responsibility_run
end