> For the complete documentation index, see [llms.txt](https://learning.contextqa.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learning.contextqa.com/ai-agent-testing/agent-evaluation/agent-builders.md).

# Evaluate Agents Built in Agent Builder Platforms

Integrate ContextQA evaluation into an agent-builder workflow using supported connections, reviewed scenarios, stable identifiers, and bounded result-driven improvements.

> **Documentation owner:** [Deep Barot](https://contextqa.com/academy/) · **Last updated:** November 12, 2026

## Quick answer

An agent builder creates or configures the target agent; ContextQA evaluates the connected agent’s behavior and outcomes. Integrate evaluation as a separate stage that receives the target interface and requirements, runs reviewed cases, and returns evidence. Embedding that stage in a builder requires a validated connection and orchestration contract, not an assumed native connector.

## Key takeaways

* Keep building, evaluation, and deployment as separate responsibilities.
* Discover current MCP tools and schemas before automating the workflow.
* Treat evaluation-driven code or prompt changes as proposals requiring verification.

## Integration architecture

```mermaid
flowchart LR
  A[Builder: candidate agent and requirements] --> B[Supported connection]
  B --> C[ContextQA project and reviewed cases]
  C --> D[Evaluation run and evidence]
  D --> E[Builder or engineer reviews proposed change]
  E --> F[Test deployment of revised agent]
  F --> C
```

This is a recommended integration pattern. It does not assert an installed embedded test tab, a native connector for every builder, or automatic deployment. Use [current connection choices](https://learning.contextqa.com/ai-agent-testing/agent-evaluation/connect-agents.md); Custom HTTP requires compatibility with its actual request, response, authentication, and session contract.

## Define the builder-to-evaluator contract

Pass a stable target identifier, candidate revision, environment, modality, requirements revision, permitted actions, and references to approved test fixtures. Keep credentials in supported protected connection fields. Include the business constraints that the builder knows but the evaluator cannot infer from a single response.

For a supply-chain assistant, the brief might include order lookup, cancellation windows, inventory freshness, escalation rules, and forbidden writes. A single instruction to “test my agent” omits the constraints needed to evaluate correctly.

## Establish the first integration

1. Demonstrate a single interaction through the supported connection.
2. Create or select a project without duplicating existing resources.
3. Review generated personas, use cases, and test cases against the builder’s requirements.
4. Select metrics and configure any needed knowledge or verifier resources.
5. Start one bounded evaluation, retaining the returned run UUID.
6. Retrieve status and available results; distinguish run execution failure from target behavior failure.
7. Return evidence and a decision record to the builder’s interface or development workflow.

The [MCP guide](https://learning.contextqa.com/contextai-mcp/contextai-mcp/mcp-workflow.md) documents the supplied endpoint and tool workflow with its source date. Discover live tools and required arguments rather than inventing API payloads from this architecture. No undocumented REST route is specified here.

## Make orchestration repeatable

Keep the mapping between builder candidate and evaluation run outside any display name that can change. Before retrying a timed-out start request, determine whether a run was already created; do not blindly create duplicate evaluations. Record pending, completed, failed, and inconclusive states distinctly.

A builder integration should also test cancellation behavior where supported, unreachable targets, invalid credentials, partial result retrieval, and stale candidate selection. Define how the operator can recover without modifying unrelated projects.

## Separate regression evaluation from prompt optimization

You can compare independently deployed candidate versions using stable cases and criteria. That is not the same as a native prompt optimizer that edits and deploys target prompts automatically. If a coding assistant proposes a fix, it also needs separately authorized access to the target code or configuration.

Review the proposed change, validate it with relevant local tests, deploy deliberately to the test environment, and rerun the original failures plus neighboring scenarios. Retain a withheld evaluation set so optimization does not simply memorize the scored cases.

## Builder acceptance checklist

The integration is ready for wider use when it identifies the correct candidate, runs the agreed scope, returns case-level evidence, handles failed or partial runs, protects credentials, and preserves reviewer ownership of release decisions. Use [structured evaluation specifications](https://learning.contextqa.com/ai-agent-testing/agent-evaluation/evaluation-specification.md) and [pre-deployment testing](https://learning.contextqa.com/ai-agent-testing/agent-evaluation/deployment-lifecycle.md) for the handoff.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://learning.contextqa.com/ai-agent-testing/agent-evaluation/agent-builders.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
