class

Google::GenerativeAI::Client

Inherits Reference < Object

Constructors

new(api_key : String, base_uri : URI = DEFAULT_URI)
Source

Instance methods

files
Source
get(path : String, headers : HTTP::Headers | Nil = nil, *, retries : Int = 5, return type : T.class) forall T
Source
get(path : String, headers : HTTP::Headers | Nil = nil, *, body, retries : Int = 3, return type : T.class) forall T
Source
model(name : String, system_instruction = nil, temperature : Float64 | Nil = nil, response_schema = nil)
Source
models(page_size : Int | Nil = nil, page_token : String | Nil = nil, response_schema = nil)
Source
post(path : String, headers : HTTP::Headers | Nil = nil, *, retries : Int = 5, return type : T.class) forall T
Source
post(path : String, headers : HTTP::Headers | Nil = nil, *, body, retries : Int = 3, return type : T.class) forall T
Source