@salesforce/agents
    Preparing search index...

    Abstract base class for agent preview functionality. Contains shared properties and methods between ScriptAgent and ProductionAgent.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    name: string | undefined

    The display name of the agent (user-friendly name, not API name)

    Methods

    • Get the agent ID to use for storage/transcript purposes

      Returns string

    • Gets a bot version by its version number, or latest if omitted. Searches for a version with matching VersionNumber property.

      Parameters

      • Optionalversion: number

        The VersionNumber to find (e.g., 0, 1, 2, 31), or undefined for latest

      Returns Promise<BotVersionMetadata>

    • Returns the ID for this agent.

      Returns Promise<string>

      The ID of the agent (The Bot ID).