class Riffer::StreamEvents::ToolCallDelta
rbs_inline: enabled
Attributes
Providers may send the name only on the first delta.
Public Class Methods
Source
# File lib/riffer/stream_events/tool_call_delta.rb, line 14 def initialize(item_id:, arguments_delta:, name: nil, role: :assistant) super(role: role) @item_id = item_id @name = name @arguments_delta = arguments_delta end
Calls superclass method
Riffer::StreamEvents::Base::new
Public Instance Methods
Source
# File lib/riffer/stream_events/tool_call_delta.rb, line 23 def to_h { role: @role, item_id: @item_id, name: @name, arguments_delta: @arguments_delta }.compact end