Class: AgUiProtocol::Core::Events::ToolCallEndEvent
- Inherits:
-
BaseEvent
- Object
- Types::Model
- BaseEvent
- AgUiProtocol::Core::Events::ToolCallEndEvent
- Defined in:
- lib/ag_ui_protocol/core/events.rb
Overview
Signals the end of a tool call.
“‘ruby
event = AgUiProtocol::Core::Events::ToolCallEndEvent.new(tool_call_id: “tc1”)
“‘
Instance Attribute Summary collapse
-
#tool_call_id ⇒ Object
readonly
Returns the value of attribute tool_call_id.
Attributes inherited from BaseEvent
Instance Method Summary collapse
-
#initialize(tool_call_id:, timestamp: nil, raw_event: nil) ⇒ ToolCallEndEvent
constructor
A new instance of ToolCallEndEvent.
- #to_h ⇒ Object
Methods inherited from Types::Model
Constructor Details
#initialize(tool_call_id:, timestamp: nil, raw_event: nil) ⇒ ToolCallEndEvent
Returns a new instance of ToolCallEndEvent.
426 427 428 429 |
# File 'lib/ag_ui_protocol/core/events.rb', line 426 def initialize(tool_call_id:, timestamp: nil, raw_event: nil) super(type: EventType::TOOL_CALL_END, timestamp: , raw_event: raw_event) @tool_call_id = tool_call_id end |
Instance Attribute Details
#tool_call_id ⇒ Object (readonly)
Returns the value of attribute tool_call_id.
420 421 422 |
# File 'lib/ag_ui_protocol/core/events.rb', line 420 def tool_call_id @tool_call_id end |
Instance Method Details
#to_h ⇒ Object
432 433 434 |
# File 'lib/ag_ui_protocol/core/events.rb', line 432 def to_h super.merge(tool_call_id: @tool_call_id) end |