Lynx

genui / a2ui / executeFunctionCall

executeFunctionCall()

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

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.

参数

范围类型
processorMessageProcessor
fnFunctionCall
surfaceIdstring
dataContextPath?string
options?ResolveFunctionOptions

返回

unknown

定义于

@lynx-js/genui/a2ui/src/store/resolveFunctionCall.ts:114

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