toSwaigFunction
Convert this DataMap to a SWAIG function definition object. Register the
result with your agent using agent.registerSwaigFunction().
Returns
Record<string, unknown> — An object containing the function name, description,
parameter schema, and data_map configuration (instead of a webhook URL).