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

#agent, #config, #correlation_id, #logger

Instance Method Summary collapse

Methods inherited from Context

#deliver, #responsibility

Constructor Details

#initialize(agent:, message:) ⇒ void

Parameters:

  • agent (Protege::Agent)

    the agent 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(agent:, message:)
  @message = message
  super(agent:)
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