Creates a new AgentPublisher instance.
The caller-supplied Connection. Used as the lookup key into the ConnectionManager cache (managerFor()); never used directly for SFAP or org API calls.
The Salesforce project
The compiled AgentJson to publish
Whether to skip retrieving the agent metadata from the org
Optionaloptions: PublishOptionsOptionalsourceType?: "Bot"Where the agent came from ("Bot" for a converted Einstein Bot). Sent on the first publish only.
Publish an AgentJson representation to the org
Promise
Service class responsible for publishing agents to Salesforce orgs