Batch Evaluation
dcl_evaluate_batchEvaluate multiple agent responses against policies in a single pre-action call, reducing processing fees and time while maintaining tamper-evident audit trails.
Instructions
PRE-ACTION Bulk Processing ($0.10). Evaluates multiple responses in a single call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | List of items to evaluate, each shaped like {'response': str, 'policy'?: str}. | |
| agent_id | Yes | Identifier of the agent that produced the responses. | |
| payment_id | No | Optional payment identifier returned by a previous call when payment is required |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | Number of items evaluated in this batch. | |
| results | Yes | Per-item evaluation results, in input order. | |
| agent_id | Yes | Identifier of the agent whose responses were evaluated. | |
| batch_id | Yes | Unique identifier for this batch run. |