Skip to main content

Agentex Output

Use the agentex_output task type to generate outputs from an external Agentex agent for each item in your evaluation.

Example Usage

The following illustrates a complete example in which an Agentex agent is used to generate responses for each evaluation item.
For Azure workspace deployments, use the /api path suffix in the base URL:

Output Structure

The task produces the following output for each evaluation item: Successful response: When include_traces=True, the optional trace field contains the agent’s execution spans. In this example, no spans were captured.
Error response:

Combining with Other Tasks

Evaluation tasks run according to their item-data dependencies. A judge that references item.agent_response.output waits for the agent_response task; independent tasks can run concurrently. Reference the generated output column in each downstream task to establish the dependency, as in the judge prompt below.