class Google::GenerativeAI::Client
- Google::GenerativeAI::Client
- Reference
- Object
Defined in:
gemini.crConstructors
Instance Method Summary
- #get(path : String, headers : HTTP::Headers | Nil = nil, *, retries : Int = 5, return type : T.class) forall T
- #get(path : String, headers : HTTP::Headers | Nil = nil, *, body, retries : Int = 3, return type : T.class) forall T
- #model(name : String, system_instruction = nil, temperature : Float64 | Nil = nil, response_schema = nil)
- #models(page_size : Int | Nil = nil, page_token : String | Nil = nil, response_schema = nil)
- #post(path : String, headers : HTTP::Headers | Nil = nil, *, retries : Int = 5, return type : T.class) forall T
- #post(path : String, headers : HTTP::Headers | Nil = nil, *, body, retries : Int = 3, return type : T.class) forall T
Constructor Detail
Instance Method Detail
def get(path : String, headers : HTTP::Headers | Nil = nil, *, retries : Int = 5, return type : T.class) forall T
#
def get(path : String, headers : HTTP::Headers | Nil = nil, *, body, retries : Int = 3, return type : T.class) forall T
#
def model(name : String, system_instruction = nil, temperature : Float64 | Nil = nil, response_schema = nil)
#
def post(path : String, headers : HTTP::Headers | Nil = nil, *, retries : Int = 5, return type : T.class) forall T
#
def post(path : String, headers : HTTP::Headers | Nil = nil, *, body, retries : Int = 3, return type : T.class) forall T
#