renderSwml
Render the current SWML document. For a plain SWMLService, this delegates to
the underlying SwmlBuilder’s getDocument() method and returns the in-memory
document object.
The signature accepts optional callId and modifications arguments. These are
unused by the base SWMLService implementation but are part of the
override-friendly signature: AgentBase overrides renderSwml() to consume
them and returns a serialized JSON string instead.
Parameters
callId
Optional call id. Used by the AgentBase override; ignored by a plain
SWMLService.
modifications
Optional SWML modifications. Used by the AgentBase override; ignored by a
plain SWMLService.
Returns
Record<string, unknown> | string — A plain SWMLService returns the
in-memory document object (with version and sections); the AgentBase
override returns a serialized JSON string.