Class: ReasoningContent

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

Instance Method Summary collapse

Instance Method Details

#to_hObject



29
30
31
32
33
34
35
36
# File 'lib/llm_gateway/adapters/structs.rb', line 29

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