Skip to content

Agent tests

Agent tests

Runs all Agentforce agent tests (AiEvaluationDefinition metadata) of the org and reports pass / fail results for each test case.

The command fails if any agent test case fails. A test case fails when one of its assertions fails: the output latency, which is only a measurement, and an instruction adherence rated HIGH or UNCERTAIN never fail it. The report lists every assertion with the result returned by Salesforce.

Sfdx-hardis command: sf hardis:org:test:agents

Key: AGENT_TESTS

This monitoring command requires the @salesforce/plugin-agent Salesforce CLI plugin (sf plugins install @salesforce/plugin-agent).

Comments