struct

Crig::Providers::Gemini::InteractionsClient

Inherits Struct < Value < Object

Constructors

from_env
Source
from_val(input : GeminiApiKey) : self
Source
new(api_key : String, base_url : String = GEMINI_API_BASE_URL)
Source

Instance methods

base_url
Source
build_uri(path : String, sse : Bool = false) : String
Source
generate_content_api
Source
get(path : String, sse : Bool = false) : HTTP::Client::Response
Source
post_json(path : String, body : String, sse : Bool = false) : HTTP::Client::Response
Source
stream_interaction_events_by_id(interaction_id : String, last_event_id : String | Nil = nil) : Crig::Providers::Gemini::Interactions::Streaming::InteractionEventStream
Source