这是开发预览网站。请访问正式文档 lynxjs.org

Home > @lynx-js/genui > FunctionImpl

FunctionImpl type

Function implementations live on the client; the agent only references functions by name. The registry is the bridge from the wire-level FunctionCall.call string to the actual code that runs locally.

Signature:

export type FunctionImpl = (args: Record<string, unknown>, context?: FunctionCallContext) => unknown;

References: FunctionCallContext