Home > @lynx-js/genui-a2ui > defineFunction
defineFunction() function
Build a function entry for defineCatalog. Either pair the impl with the extracted manifest, or pass just the impl (the registry still routes calls; the agent just won't see the parameter schema).
Signature:
Parameters
Returns:
Example
const requiredEntry = defineFunction(required, requiredManifest); const catalog = defineCatalog([Text, Button, requiredEntry]);