class AI::Google::GoogleSSEStreamIterator

Overview

SSE Stream Iterator for Google Generative AI streaming responses.

Parses Server-Sent Events (SSE) from the Google API and yields stream parts for text, reasoning, tool calls, files, and sources.

Included Modules

Defined in:

ai/google/google_generative_ai_language_model.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(response_body : String, warnings : Array(Provider::Shared::Warning), generate_id : Proc(String), provider_options_name : String) #

[View source]

Instance Method Detail

def next : Provider::LanguageModel::StreamPart | Iterator::Stop #

[View source]