Module: Legion::LLM::Call::CanonicalToolCallCompat

Defined in:
lib/legion/llm/call/dispatch.rb

Overview

DEPRECATED(P6): Hash-key compatibility adapter for Canonical::ToolCall. Deleted in Phase 6.

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ Object



55
56
57
58
59
60
61
# File 'lib/legion/llm/call/dispatch.rb', line 55

def [](key)
  Legion::Logging.log.debug do
    "[llm][DEPRECATED(P6)] tool_call_hash_access key=#{key} caller=#{caller_locations(1, 1)&.first}"
  end
  sym = key.to_sym
  public_send(sym) if respond_to?(sym)
end