Class: Legion::LLM::Transport::Messages::ToolEvent

Inherits:
Legion::LLM::Transport::Message show all
Defined in:
lib/legion/llm/transport/messages/tool_event.rb

Constant Summary

Constants inherited from Legion::LLM::Transport::Message

Legion::LLM::Transport::Message::LLM_ENVELOPE_KEYS

Instance Method Summary collapse

Methods inherited from Legion::LLM::Transport::Message

#app_id, #correlation_id, #message, #message_context, #message_id, #tracing_headers

Instance Method Details

#encrypt?Boolean

Returns:

  • (Boolean)


14
# File 'lib/legion/llm/transport/messages/tool_event.rb', line 14

def encrypt?    = Legion::LLM.settings.dig(:compliance, :encrypt_audit) == true

#exchangeObject



11
# File 'lib/legion/llm/transport/messages/tool_event.rb', line 11

def exchange    = Legion::LLM::Transport::Exchanges::Audit

#expirationObject



15
# File 'lib/legion/llm/transport/messages/tool_event.rb', line 15

def expiration  = nil

#headersObject



17
18
19
# File 'lib/legion/llm/transport/messages/tool_event.rb', line 17

def headers
  super.merge(tool_headers).merge(classification_headers)
end

#priorityObject



13
# File 'lib/legion/llm/transport/messages/tool_event.rb', line 13

def priority    = 0

#routing_keyObject



12
# File 'lib/legion/llm/transport/messages/tool_event.rb', line 12

def routing_key = "audit.tool.#{@options[:tool_name]}"

#typeObject



10
# File 'lib/legion/llm/transport/messages/tool_event.rb', line 10

def type        = 'llm.audit.tool'