class Riffer::StreamEvents::ReasoningDelta
Represents an incremental reasoning chunk during streaming.
Emitted when the LLM produces reasoning/thinking content incrementally. Only available with providers that support reasoning (e.g., OpenAI with reasoning option).
Attributes
The incremental reasoning content.
Public Class Methods
Source
# File lib/riffer/stream_events/reasoning_delta.rb, line 13 def initialize(content, role: :assistant) super(role: role) @content = content end
: (String, ?role: Symbol) -> void
Calls superclass method
Riffer::StreamEvents::Base::new
Public Instance Methods
Source
# File lib/riffer/stream_events/reasoning_delta.rb, line 19 def to_h {role: @role, content: @content} end
: () -> Hash[Symbol, untyped]