class Riffer::StreamEvents::WebSearchStatus
Represents a web search status notification during streaming.
Emitted when the LLM performs a server-side web search and its status changes.
Attributes
The search query (present when available during status changes).
The web search status (“in_progress”, “searching”, “completed”, “open_page”).
The URL being fetched (present for “open_page” status).
Public Class Methods
Source
# File lib/riffer/stream_events/web_search_status.rb, line 18 def initialize(status, url: nil, query: nil, role: :assistant) super(role: role) @status = status @url = url @query = query end
: (String, ?url: String?, ?query: String?, ?role: Symbol) -> void
Calls superclass method
Riffer::StreamEvents::Base::new
Public Instance Methods
Source
# File lib/riffer/stream_events/web_search_status.rb, line 26 def to_h h = {role: @role, status: @status} h[:url] = @url if @url h[:query] = @query if @query h end
: () -> Hash[Symbol, untyped]