Class: LlmGateway::Agents::Event::ToolCallResult
- Inherits:
-
BaseStruct
- Object
- Dry::Struct
- BaseStruct
- LlmGateway::Agents::Event::ToolCallResult
- Defined in:
- lib/llm_gateway/agents/event.rb
Instance Method Summary collapse
Instance Method Details
#dig(*keys) ⇒ Object
47 48 49 |
# File 'lib/llm_gateway/agents/event.rb', line 47 def dig(*keys) to_h.dig(*keys) end |
#to_h ⇒ Object
38 39 40 41 42 43 44 45 |
# File 'lib/llm_gateway/agents/event.rb', line 38 def to_h { type: type.to_s, tool_use_id: tool_use_id, content: content, is_error: is_error } end |