Class: Insika::ContextRequest
- Inherits:
-
Data
- Object
- Data
- Insika::ContextRequest
- Defined in:
- lib/insika/context/provider.rb
Overview
Input for the provider contract.
session: SessionStore::Session | nil
checkpoint: Checkpoint | nil (present on ResumeTask — history comes from it)
memory_scope: the CUSTOMER-scoped memory cell (WS8): "[tenant:]customer"
when the request carries a customer, else nil (the providers
fall back to tenant || session). Kept separate from tenant
(the <request_context> merchant label) on purpose.
Instance Attribute Summary collapse
-
#checkpoint ⇒ Object
readonly
Returns the value of attribute checkpoint.
-
#memory_scope ⇒ Object
readonly
Returns the value of attribute memory_scope.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#profile ⇒ Object
readonly
Returns the value of attribute profile.
-
#session ⇒ Object
readonly
Returns the value of attribute session.
-
#tenant ⇒ Object
readonly
Returns the value of attribute tenant.
-
#vars ⇒ Object
readonly
Returns the value of attribute vars.
Instance Method Summary collapse
-
#initialize(session: nil, message: nil, profile: nil, tenant: nil, vars: {}, checkpoint: nil, memory_scope: nil) ⇒ ContextRequest
constructor
A new instance of ContextRequest.
Constructor Details
#initialize(session: nil, message: nil, profile: nil, tenant: nil, vars: {}, checkpoint: nil, memory_scope: nil) ⇒ ContextRequest
Returns a new instance of ContextRequest.
28 29 30 31 |
# File 'lib/insika/context/provider.rb', line 28 def initialize(session: nil, message: nil, profile: nil, tenant: nil, vars: {}, checkpoint: nil, memory_scope: nil) super end |
Instance Attribute Details
#checkpoint ⇒ Object (readonly)
Returns the value of attribute checkpoint
26 27 28 |
# File 'lib/insika/context/provider.rb', line 26 def checkpoint @checkpoint end |
#memory_scope ⇒ Object (readonly)
Returns the value of attribute memory_scope
26 27 28 |
# File 'lib/insika/context/provider.rb', line 26 def memory_scope @memory_scope end |
#message ⇒ Object (readonly)
Returns the value of attribute message
26 27 28 |
# File 'lib/insika/context/provider.rb', line 26 def @message end |
#profile ⇒ Object (readonly)
Returns the value of attribute profile
26 27 28 |
# File 'lib/insika/context/provider.rb', line 26 def profile @profile end |
#session ⇒ Object (readonly)
Returns the value of attribute session
26 27 28 |
# File 'lib/insika/context/provider.rb', line 26 def session @session end |
#tenant ⇒ Object (readonly)
Returns the value of attribute tenant
26 27 28 |
# File 'lib/insika/context/provider.rb', line 26 def tenant @tenant end |
#vars ⇒ Object (readonly)
Returns the value of attribute vars
26 27 28 |
# File 'lib/insika/context/provider.rb', line 26 def vars @vars end |