Lynx

Home > @lynx-js/genui-a2ui > 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

Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.