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

    Class LLMRegistry

    Registry for LLMs.

    Constructors

    Methods

    • Registers a new LLM class.

      Type Parameters

      Parameters

      • llmCls: new (params: { model: string }) => T & { supportedModels: (string | RegExp)[] }

        The class that implements the model.

      Returns void

    • Resolves the model to a BaseLlm subclass.

      Parameters

      • model: string

        The model name.

      Returns BaseLlmType

      The BaseLlm subclass.

      If the model is not found.