Module: RubyLLM::Contract::Concerns::TraceEquality

Included in:
Pipeline::Trace, Step::Trace
Defined in:
lib/ruby_llm/contract/concerns/trace_equality.rb

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



7
8
9
10
11
# File 'lib/ruby_llm/contract/concerns/trace_equality.rb', line 7

def ==(other)
  return to_h == other if other.is_a?(Hash)

  other.is_a?(self.class) && to_h == other.to_h
end