toSwaig
Convert this function to a SWAIG-compatible object for inclusion in a SWML document. Called internally during SWML rendering.
Parameters
baseUrl
Base URL for the webhook endpoint.
token
Session token for secure function URL construction.
callId
Call ID for secure function URL construction.
Returns
Record<string, unknown> — Object with "function", "description", "parameters",
"web_hook_url", and optional "fillers", "wait_file", "wait_file_loops" keys,
plus any extraFields.