@salesforce/agents
    Preparing search index...
    • Generates an agent script template string

      Note: This template generates agentscript using the "subagent" keyword. The compilation API supports both "topic" and "subagent" keywords for backward compatibility.

      Parameters

      • bundleApiName: string

        The API name of the bundle

      • OptionalagentSpec: ExtendedAgentJobSpec

        Optional agent specification with developer name, name, role, and topics

      Returns string

      The generated agent script template string