Class: Legion::LLM::Fleet::Request
Constant Summary
collapse
- PRIORITY_MAP =
{ critical: 9, high: 7, normal: 5, low: 2 }.freeze
Transport::Message::LLM_ENVELOPE_KEYS
Instance Method Summary
collapse
#app_id, #correlation_id, #headers, #message, #message_context, #message_id, #tracing_headers
Instance Method Details
#expiration ⇒ Object
16
|
# File 'lib/legion/llm/fleet/request.rb', line 16
def expiration = @options[:ttl] ? (@options[:ttl] * 1000).to_s : super
|
#priority ⇒ Object
15
|
# File 'lib/legion/llm/fleet/request.rb', line 15
def priority = map_priority(@options[:priority])
|
#reply_to ⇒ Object
14
|
# File 'lib/legion/llm/fleet/request.rb', line 14
def reply_to = @options[:reply_to]
|
#routing_key ⇒ Object
13
|
# File 'lib/legion/llm/fleet/request.rb', line 13
def routing_key = @options[:routing_key]
|
#type ⇒ Object
11
|
# File 'lib/legion/llm/fleet/request.rb', line 11
def type = 'llm.fleet.request'
|