Class: Legion::Extensions::Ollama::Transport::Messages::LlmResponse
- Inherits:
-
LLM::Fleet::Response
- Object
- LLM::Fleet::Response
- Legion::Extensions::Ollama::Transport::Messages::LlmResponse
- Defined in:
- lib/legion/extensions/ollama/transport/messages/llm_response.rb
Overview
Published back to the caller’s reply_to queue after a fleet request is processed.
Inherits Legion::LLM::Fleet::Response which:
- sets type: 'llm.fleet.response'
- sets routing_key to @options[:reply_to]
- publishes via AMQP default exchange ('')
- propagates message_context into body and headers
- generates message_id with 'resp_' prefix
This class only overrides app_id so audit records and the wire protocol correctly identify lex-ollama as the worker component.
Instance Method Summary collapse
Instance Method Details
#app_id ⇒ Object
20 21 22 |
# File 'lib/legion/extensions/ollama/transport/messages/llm_response.rb', line 20 def app_id 'lex-ollama' end |