Class: LlmGateway::Agents::Event::ToolCallResult

Inherits:
BaseStruct show all
Defined in:
lib/llm_gateway/agents/event.rb

Instance Method Summary collapse

Instance Method Details

#dig(*keys) ⇒ Object



45
46
47
# File 'lib/llm_gateway/agents/event.rb', line 45

def dig(*keys)
  to_h.dig(*keys)
end

#to_hObject



37
38
39
40
41
42
43
# File 'lib/llm_gateway/agents/event.rb', line 37

def to_h
  {
    type: type.to_s,
    tool_use_id: tool_use_id,
    content: content
  }
end