class AI::Google::GoogleGenerativeAILanguageModel

Overview

Google Generative AI language model.

Implements the LanguageModelV3 interface for text generation using Google's Generative AI API (Gemini models).

Included Modules

Defined in:

ai/google/google_generative_ai_language_model.cr

Constructors

Instance Method Summary

Instance methods inherited from module AI::Provider::LanguageModel::V3

do_generate(options : CallOptions) : GenerateResult do_generate, do_stream(options : CallOptions) : StreamResult do_stream, model_id : String model_id, provider : String provider, specification_version : String specification_version, supported_urls : Hash(String, Array(Regex)) supported_urls

Constructor Detail

def self.new(model_id : String, config : LanguageModelConfig) #

[View source]

Instance Method Detail

Generates content from the prompt.


[View source]

Streams content from the prompt.


[View source]
def model_id : String #

The model ID.


[View source]
def provider : String #

Returns the provider name.


[View source]
def specification_version : String #

Returns the specification version.


[View source]
def supported_urls : Hash(String, Array(Regex)) #

Returns supported URLs for file access.


[View source]