GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • ADK for TypeScript: API Reference

This view

  • Original page
  • New address

GeezerVison is showing adk.dev — LLMRegistry | ADK for TypeScript: API Reference - v2.5.0

  • LLMRegistry

Class LLMRegistry

Registry for LLMs.

  • Defined in core/src/models/registry.ts:60

Constructors

constructor

  • new LLMRegistry(): LLMRegistry

    Returns LLMRegistry

Methods

StaticnewLlm

  • newLlm(model: string): BaseLlm

    Creates a new LLM instance.

    Parameters

    • model: string

      The model name.

    Returns BaseLlm

    The LLM instance.

    • Defined in core/src/models/registry.ts:73

Staticregister

  • register<T extends BaseLlm>(
        llmCls: new (params: { model: string }) => T & {
            supportedModels: (string | RegExp)[];
        },
    ): void

    Registers a new LLM class.

    Type Parameters

    • T extends BaseLlm

    Parameters

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

      The class that implements the model.

    Returns void

    • Defined in core/src/models/registry.ts:93

Staticresolve

  • resolve(model: string): BaseLlmType

    Resolves the model to a BaseLlm subclass.

    Parameters

    • model: string

      The model name.

    Returns BaseLlmType

    The BaseLlm subclass.

    Throws

    If the model is not found.

    • Defined in core/src/models/registry.ts:109
Constructors
constructor
Methods
newLlmregisterresolve
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.