class

AI::OpenAI::Responses::OpenAIResponsesSSEStreamIterator

Inherits Iterator < Enumerable < Reference < Object

SSE Stream Iterator for Responses API

Constructors

new(response_body : String, warnings : Array(Provider::Shared::Warning), generate_id : Proc(String), include_raw_chunks : Bool, provider_options_name : String)
Source

Instance methods

next

Returns the next element in this iterator, or Iterator::Stop::INSTANCE if there are no more elements.

Source