The display name of the agent (user-friendly name, not API name)
Activates the agent.
Optionalversion: numberThe VersionNumber to activate (e.g., 0, 1, 2, 31), or undefined for latest
The activated bot version metadata
Deactivates the currently active agent version. Only one version can be active at a time, so this automatically finds and deactivates it.
The deactivated bot version metadata
Get the agent ID to use for storage/transcript purposes
Gets a bot version by its version number, or latest if omitted. Searches for a version with matching VersionNumber property.
Optionalversion: numberThe VersionNumber to find (e.g., 0, 1, 2, 31), or undefined for latest
OptionalsessionId: stringReturns the ID for this agent.
The ID of the agent (The Bot ID).
Returns the latest bot version metadata.
the latest bot version metadata
Abstract base class for agent preview functionality. Contains shared properties and methods between ScriptAgent and ProductionAgent.