For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt, and this page is available as Markdown at /next/zh/api/genui/a2ui/classes/FunctionRegistry.md.
Lynx
  • 简体中文
  • 类: FunctionRegistry

    查找表,将协议中 FunctionCall.call 的名称路由到本地 JavaScript 实现。

    构造函数

    构造函数

    new FunctionRegistry(): FunctionRegistry

    返回

    FunctionRegistry

    方法

    has()

    has(name: string): boolean

    参数

    参数类型
    namestring

    返回

    boolean


    list()

    list(): FunctionEntry[]

    返回

    FunctionEntry[]


    register()

    register(entry: FunctionEntry): void

    参数

    参数类型
    entryFunctionEntry

    返回

    void


    resolve()

    resolve(name: string): FunctionImpl | undefined

    参数

    参数类型
    namestring

    返回

    FunctionImpl | undefined


    unregister()

    unregister(name: string): void

    参数

    参数类型
    namestring

    返回

    void

    除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。