Lynx

Home > @lynx-js/genui-a2ui > executeFunctionCall

executeFunctionCall() function

Resolve arguments, look the function up in the registry, and invoke it. When no impl is registered, log once and return undefined so callers (checks, dynamic-property bindings) can degrade gracefully.

Signature:

export declare function executeFunctionCall(
  processor: MessageProcessor,
  fn: v0_9.FunctionCall,
  surfaceId: string,
  dataContextPath?: string,
  options?: ResolveFunctionOptions,
): unknown;

Parameters

Parameter

Type

Description

processor

MessageProcessor

fn

v0_9.FunctionCall

surfaceId

string

dataContextPath

string

(Optional)

options

ResolveFunctionOptions

(Optional)

Returns:

unknown

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