Class: Protege::Orchestrator::ReplyContext

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

Overview

Context for a reactive run — one driven by an inbound email. Adds the message to the shared Context surface so tools and resolvers can reach the email being answered (its thread, sender, body, attachments). The #responsibility accessor inherited from Context stays nil.

Instance Attribute Summary collapse

Attributes inherited from Context

#config, #correlation_id, #logger, #persona

Instance Method Summary collapse

Methods inherited from Context

#deliver, #responsibility

Constructor Details

#initialize(persona:, message:) ⇒ void

Parameters:

  • persona (Protege::Persona)

    the persona handling the run

  • message (Object)

    the inbound message being processed



15
16
17
18
# File 'lib/protege/orchestrator/reply_context.rb', line 15

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

Instance Attribute Details

#messageObject (readonly)

Returns the inbound message being processed.

Returns:

  • (Object)

    the inbound message being processed



10
11
12
# File 'lib/protege/orchestrator/reply_context.rb', line 10

def message
  @message
end