Class: Protege::Orchestrator::ResponsibilityContext
- 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
-
#responsibility ⇒ Protege::Responsibility
readonly
The responsibility being fulfilled.
Attributes inherited from Context
#config, #correlation_id, #logger, #persona
Instance Method Summary collapse
- #initialize(persona:, responsibility:) ⇒ void constructor
Methods inherited from Context
Constructor Details
#initialize(persona:, responsibility:) ⇒ void
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
#responsibility ⇒ Protege::Responsibility (readonly)
Returns the responsibility being fulfilled.
11 12 13 |
# File 'lib/protege/orchestrator/responsibility_context.rb', line 11 def responsibility @responsibility end |