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

    类 LLMRegistry

    大型语言模型(LLMs)的注册平台。

    • 创建一个新的大型语言模型(LLM)实例。

      参数

      • 模型: string

        模型名称。

      返回值 BaseLlm

      这个大型语言模型(LLM)实例。

    • 注册一个新的大型语言模型(LLM)类。

      类型参数(Type Parameters)

      参数

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

        实现该模型的类。

      返回值 void

    • 将该模型转换为 BaseLlm 类的子类。

      参数

      • 模型: string

        模型名称。

      返回值 BaseLlmType

      `BaseLlm` 的子类。

      如果找不到该模型……