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

    Class BaseLlmAbstract

    The BaseLLM class.

    Hierarchy (View Summary)

    Constructors

    • Creates an instance of BaseLLM.

      Parameters

      • params: { model: string }

        The parameters for creating a BaseLlm instance.

        • model: string

          The name of the LLM, e.g. gemini-1.5-flash or gemini-1.5-flash-001.

      Returns BaseLlm

    Properties

    model: string
    supportedModels: (string | RegExp)[] = []

    List of supported models in regex for LlmRegistry.

    Methods

    • Generates one content from the given contents and tools.

      Parameters

      • llmRequest: LlmRequest

        LlmRequest, the request to send to the LLM.

      • Optionalstream: boolean

        whether to do streaming call. For non-streaming call, it will only yield one Content.

      Returns AsyncGenerator<LlmResponse, void>

      A generator of LlmResponse.