Class GoogleGemini

Wrapper class for interacting with Google's Generative AI service (Gemini). Provides methods for generating text responses based on prompts.

Constructors

Methods

Constructors

  • Creates a new GoogleGemini instance.

    Parameters

    • config: GeminiConfig

      Configuration options for the GoogleGemini instance.

    Returns GoogleGemini

    If the API key is missing.

Methods

  • Generates a response based on the given prompt using the Google Generative AI service.

    Parameters

    • prompt: string

      The input prompt for generating the response.

    Returns Promise<string>

    A Promise that resolves to the generated response text.