register_swaig_function
register_swaig_function
Register a raw SWAIG function definition dictionary. This is the primary way to
register server-side functions created by
DataMap, which generates complete
SWAIG function definitions including URL mappings, expressions, and output templates.
Unlike define_tool(),
this method does not take a Python handler — the function executes on the SignalWire
server (for DataMap functions) or at an external webhook URL.
Parameters
function_dict
Complete SWAIG function definition dictionary. Must follow the SWAIG function
schema, typically generated by DataMap.to_swaig_function().
Returns
AgentBase — Returns self for method chaining.