to_swaig
to_swaig
Convert this function to a SWAIG-compatible dictionary for inclusion in a SWML document. Called internally during SWML rendering.
Parameters
base_url
Base URL for the webhook endpoint.
token
Auth token to include in the webhook URL.
call_id
Call ID for session tracking.
include_auth
Whether to include auth credentials in the webhook URL.
Returns
dict[str, Any] — Dictionary with "function", "description", "parameters",
"web_hook_url", and optional "fillers" keys.