Class: ReasoningContent

Inherits:
BaseStruct show all
Defined in:
lib/llm_gateway/adapters/structs.rb

Instance Method Summary collapse

Instance Method Details

#to_hObject



58
59
60
61
62
63
64
65
# File 'lib/llm_gateway/adapters/structs.rb', line 58

def to_h
  result = {
    type: type,
    reasoning: reasoning
  }
  result[:signature] = signature unless signature.nil?
  result
end