AI red teaming with TrustTest
Traditional test frameworks verify application logic and performance. TrustTest adds the components needed for adversarial testing: targets, generated or curated test cases, attack techniques, evaluators, and structured results. You can point the same workflow at a model, agent, or HTTP endpoint. This keeps the assessment process consistent when you change providers or move a workload between environments.Run an assessment
The following example runs an assessment against an HTTP endpoint and sends the results to NeuralTrust:Coverage and workflow
- Test first-party models and third-party APIs through a consistent target interface.
- Generate test cases automatically or supply your own datasets and prompts.
- Use built-in probes and algorithmic attacks to exercise security and safety controls.
- Evaluate responses across scenarios, edge cases, languages, and model behaviors.
- Track test cases, evaluations, scenarios, and results locally or in NeuralTrust.
- Combine AI red teaming with functional evaluations in the same workflow.
Why use TrustTest?
TrustTest makes the process repeatable. Instead of treating each assessment as a separate exercise, teams can keep the target, test generation, evaluation criteria, and results together. This approach helps teams:- Identify security and safety weaknesses before a model or agent reaches production.
- Rerun assessments after model, prompt, retrieval, or application changes.
- Select probes and evaluators that match the risks of a specific workload.
- Compare results across models, versions, languages, and environments.
- Retain evidence for investigation, reporting, and remediation.
Frequently asked questions
When should I rerun an assessment?
Run another assessment after material changes to the model, system prompt, tools, retrieval data, or surrounding application. Run assessments regularly to detect regressions as the system evolves.Can results stay in my environment?
Yes. UseFileSystemClient to store scenarios, test sets, and results as JSON
under a local path. Use NeuralTrustClient when you want to persist those
artifacts in the NeuralTrust platform. See
Connect to NeuralTrust for both options.
What systems can TrustTest evaluate?
The Python library supportsHttpTarget for REST APIs and custom target
implementations for other model interfaces. The web UI currently requires an
LLM exposed through a REST API. Multi-turn probes require a
ConversationTarget; HttpTarget already provides that interface.