registerWithAgent
Register this DataMap as a SWAIG function on an agent. Converts the DataMap
to a SWAIG function definition and registers it with the agent’s
registerSwaigFunction method.
Parameters
agent
An object with a registerSwaigFunction(fn: Record<string, unknown>) method
(typically an AgentBase instance).
Returns
DataMap — Self for method chaining.