Poll the status of a test run until the tests are complete or the timeout is reached.
Get detailed test run results.
Initiates a test run (i.e., AI test suite evaluation).
The name of the AI test suite definition to run.
Promise that resolves with the response from starting the test.
Get the status of a test run.
A service for testing agents using
AiTestingDefinitionmetadata (Agentforce Studio). Start asynchronous test runs, get or poll for test status, and get detailed test results.Examples
Create an instance of the service:
const agentTester = new AgentforceStudioTester(connection);Start a test run:
const startResponse = await agentTester.start(aiTestSuiteDefName);Get the status for a test run:
const status = await agentTester.status(startResponse.runId);Get detailed results for a test run:
const results = await agentTester.results(startResponse.runId);