Class: Protege::Orchestrator::ResponsibilityContext

Inherits:
Context
  • Object
show all
Defined in:
lib/protege/orchestrator/responsibility_context.rb

Overview

Context for a proactive run — one driven by a scheduled Responsibility (the Loop layer). Adds the responsibility to the shared Context surface so tools and resolvers can reach the duty being carried out (its prompt, schedule, owning persona). The #message accessor inherited from Context stays nil, so reply-only tools (e.g. send_email in reply mode) degrade gracefully.

Instance Attribute Summary collapse

Attributes inherited from Context

#config, #correlation_id, #logger, #persona

Instance Method Summary collapse

Methods inherited from Context

#deliver, #message

Constructor Details

#initialize(persona:, responsibility:) ⇒ void

Parameters:



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

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

Instance Attribute Details

#responsibilityProtege::Responsibility (readonly)

Returns the responsibility being fulfilled.

Returns:



11
12
13
# File 'lib/protege/orchestrator/responsibility_context.rb', line 11

def responsibility
  @responsibility
end