What problem does it solve?
It solves the problem of verifying that an Agentforce agent reliably routes intents, invokes the right actions, grounds responses, and passes safety expectations before you ship changes.
Core Features & Use Cases
- Preview-based smoke testing: Run fast, ad-hoc checks with
sf agent preview and local trace artifacts to diagnose routing, grounding, safety score, and action visibility.
- Testing Center batch regression testing: Create and run persistent suites with
sf agent test create, sf agent test run, and sf agent test results using a structured YAML spec.
- Action execution isolation: Directly invoke Flow/Apex actions via REST to test a single action safely and deterministically, then validate end-to-end behavior.
- Iterative fix loop: Use trace-driven failure diagnosis and targeted edits with a max 3-iteration workflow to converge on passing tests.
Quick Start
Run a Mode B regression suite by creating a test spec YAML (with name, subjectType: AGENT, subjectName, and testCases), then deploy it with sf agent test create and execute it with sf agent test run to get structured results for every test case.