[Go to site: main page, start]

ADK for TypeScript: API Reference
    Preparing search index...

    Class Gemini

    Integration for Gemini models.

    Hierarchy (View Summary)

    Constructors

    Properties

    "[BASE_MODEL_SYMBOL]": true

    A unique symbol to identify BaseLlm classes.

    "[GEMINI_MODEL_SYMBOL]": true
    model: string
    useInteractionsApi: boolean
    vertexai: boolean
    supportedModels: (string | RegExp)[] = ...

    A list of model name patterns that are supported by this LLM.

    A list of supported models.

    Accessors

    • get trackingHeaders(): Record<string, string>

      Returns Record<string, string>

    Methods

    • Sends a request to the Gemini model.

      Parameters

      • llmRequest: LlmRequest

        LlmRequest, the request to send to the Gemini model.

      • stream: boolean = false

        bool = false, whether to do streaming call.

      • OptionalabortSignal: AbortSignal

      Returns AsyncGenerator<LlmResponse, void>

      LlmResponse: The model response.