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/functions/executeFunctionCall.md.
Lynx
  • 简体中文
  • 函数: executeFunctionCall()

    executeFunctionCall(processor: MessageProcessor, fn: object, surfaceId: string, dataContextPath?: string, options?: ResolveFunctionOptions): unknown

    解析参数,在注册表中查找对应的函数并调用它。 当没有注册实现时,只记录一次日志并返回 undefined,以便调用方 (检查、动态属性绑定)可以优雅降级。

    参数

    参数类型
    processorMessageProcessor
    fn{ args: Record<string, any>; call: string; returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any"; }
    fn.argsRecord<string, any>
    fn.callstring
    fn.returnType?"string" | "number" | "boolean" | "object" | "array" | "void" | "any"
    surfaceId?string
    dataContextPath?string
    options?ResolveFunctionOptions

    返回

    unknown

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