class Riffer::StreamEvents::ReasoningDone
Represents completion of reasoning during streaming.
Emitted when the LLM has finished producing reasoning/thinking content. Only available with providers that support reasoning (e.g., OpenAI with reasoning option).
Attributes
The complete reasoning content.
Public Class Methods
Source
# File lib/riffer/stream_events/reasoning_done.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_done.rb, line 19 def to_h {role: @role, content: @content} end
: () -> Hash[Symbol, untyped]