Hierarchy (view full)

Constructors

Accessors

Methods

Constructors

  • Create a new instance of Google GenAI LLM.

    Environment Requirements:

    • For VertexAI: Set the GOOGLE_APPLICATION_CREDENTIALS environment variable to the path of the service account key file or use any of the other Google Cloud auth methods. The Google Cloud project and location can be set via project and location arguments or the environment variables GOOGLE_CLOUD_PROJECT and GOOGLE_CLOUD_LOCATION. By default, the project is inferred from the service account key file, and the location defaults to "us-central1".
    • For Google Gemini API: Set the apiKey argument or the GOOGLE_API_KEY environment variable.

    Parameters

    Returns LLM

Accessors

  • get model(): string
  • Get the model name/identifier for this LLM instance.

    Returns string

    The model name if available, "unknown" otherwise.

    Remarks

    Plugins should override this property to provide their model information.

Methods

  • Returns Promise<void>

  • Pre-warm connection to the LLM service

    Returns void