Class: Legion::Extensions::Llm::Fleet::ProviderResponder::FleetEnvelope
- Inherits:
-
Struct
- Object
- Struct
- Legion::Extensions::Llm::Fleet::ProviderResponder::FleetEnvelope
- Defined in:
- lib/legion/extensions/llm/fleet/provider_responder.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
Instance Method Summary collapse
- #[](key) ⇒ Object
- #correlation_id ⇒ Object
- #execution_contract ⇒ Object
- #fetch(key, default = nil) ⇒ Object
- #idempotency_key ⇒ Object
- #key?(key) ⇒ Boolean
- #message_context ⇒ Object
- #model ⇒ Object
- #offering_id ⇒ Object
- #operation ⇒ Object
- #params ⇒ Object
- #protocol_version ⇒ Object
- #provider ⇒ Object
- #provider_instance ⇒ Object
- #reply_to ⇒ Object
- #request_id ⇒ Object
- #to_h ⇒ Object
- #trace_context ⇒ Object
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data
37 38 39 |
# File 'lib/legion/extensions/llm/fleet/provider_responder.rb', line 37 def data @data end |
Instance Method Details
#[](key) ⇒ Object
38 39 40 41 42 43 |
# File 'lib/legion/extensions/llm/fleet/provider_responder.rb', line 38 def [](key) symbol_key = key.to_sym return data[symbol_key] if data.key?(symbol_key) data[key.to_s] end |
#correlation_id ⇒ Object
56 |
# File 'lib/legion/extensions/llm/fleet/provider_responder.rb', line 56 def correlation_id = self[:correlation_id] |
#execution_contract ⇒ Object
66 |
# File 'lib/legion/extensions/llm/fleet/provider_responder.rb', line 66 def execution_contract = self[:execution_contract] |
#fetch(key, default = nil) ⇒ Object
49 50 51 |
# File 'lib/legion/extensions/llm/fleet/provider_responder.rb', line 49 def fetch(key, default = nil) key?(key) ? self[key] : default end |
#idempotency_key ⇒ Object
57 |
# File 'lib/legion/extensions/llm/fleet/provider_responder.rb', line 57 def idempotency_key = self[:idempotency_key] |
#key?(key) ⇒ Boolean
45 46 47 |
# File 'lib/legion/extensions/llm/fleet/provider_responder.rb', line 45 def key?(key) data.key?(key.to_sym) || data.key?(key.to_s) end |
#message_context ⇒ Object
64 |
# File 'lib/legion/extensions/llm/fleet/provider_responder.rb', line 64 def = self[:message_context] || {} |
#model ⇒ Object
61 |
# File 'lib/legion/extensions/llm/fleet/provider_responder.rb', line 61 def model = self[:model] |
#offering_id ⇒ Object
67 |
# File 'lib/legion/extensions/llm/fleet/provider_responder.rb', line 67 def offering_id = self[:offering_id] |
#operation ⇒ Object
58 |
# File 'lib/legion/extensions/llm/fleet/provider_responder.rb', line 58 def operation = self[:operation] |
#params ⇒ Object
62 |
# File 'lib/legion/extensions/llm/fleet/provider_responder.rb', line 62 def params = self[:params] || {} |
#protocol_version ⇒ Object
54 |
# File 'lib/legion/extensions/llm/fleet/provider_responder.rb', line 54 def protocol_version = self[:protocol_version] |
#provider ⇒ Object
59 |
# File 'lib/legion/extensions/llm/fleet/provider_responder.rb', line 59 def provider = self[:provider] |
#provider_instance ⇒ Object
60 |
# File 'lib/legion/extensions/llm/fleet/provider_responder.rb', line 60 def provider_instance = self[:provider_instance] |
#reply_to ⇒ Object
63 |
# File 'lib/legion/extensions/llm/fleet/provider_responder.rb', line 63 def reply_to = self[:reply_to] |
#request_id ⇒ Object
55 |
# File 'lib/legion/extensions/llm/fleet/provider_responder.rb', line 55 def request_id = self[:request_id] |
#to_h ⇒ Object
53 |
# File 'lib/legion/extensions/llm/fleet/provider_responder.rb', line 53 def to_h = data |
#trace_context ⇒ Object
65 |
# File 'lib/legion/extensions/llm/fleet/provider_responder.rb', line 65 def trace_context = self[:trace_context] || {} |