# Class LLMRegistry

Registry for LLMs.

- Defined in models/registry.ts:58

## Constructors

### constructor

- new LLMRegistry(): LLMRegistry

  #### Returns LLMRegistry

## Methods

### `Static` newLlm

- newLlm(model: string): BaseLlm

  Creates a new LLM instance.

  #### Parameters

  - model: string

    The model name.

  #### Returns BaseLlm

  The LLM instance.

  - Defined in models/registry.ts:71

### `Static` register

- 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 models/registry.ts:91

### `Static` resolve

- 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 models/registry.ts:107