criteria | str | "" | Criteria the judge grades the output against. |
scoring_strategy | Literal["numeric", "binary"] | "binary" | How the judge grades. "binary" returns a pass/fail verdict. "numeric" returns a 1-10 score that passes when it meets threshold. |
threshold | int | 7 | Minimum passing score from 1 to 10. Only used when scoring_strategy is "numeric". |
on_fail | Optional[Callable[[AgentAsJudgeEvaluation], None]] | None | Callback invoked with the evaluation when it fails. An async callback is skipped (with a logged warning) when the eval runs via run(); use arun() to have it invoked. |
additional_guidelines | Optional[Union[str, List[str]]] | None | Guidelines appended to the default judge’s instructions. |
name | Optional[str] | None | Evaluation name. |
model | Optional[Model] | None | Model for the default judge agent. Falls back to OpenAI gpt-5-mini when unset. |
evaluator_agent | Optional[Agent] | None | Custom judge agent. Its output_schema is replaced with the response schema matching scoring_strategy. |
print_summary | bool | False | Print the summary table with pass rate and score statistics after the run. |
print_results | bool | False | Print the per-evaluation results after the run. |
show_spinner | bool | True | Render the progress spinner. Set to False when the eval runs inside code that must not write to the console. |
file_path_to_save_results | Optional[str] | None | File path where the result is saved. |
debug_mode | bool | False | Enable debug logs. Defaults to True when the AGNO_DEBUG environment variable is "true". |
db | Optional[Union[BaseDb, AsyncBaseDb]] | None | Database where the eval run is stored. |
telemetry | bool | True | Log minimal telemetry for the eval run. |
run_in_background | bool | False | Run the eval in the background when attached as a post_hook, without blocking the agent’s response. Takes effect only when the run is served through AgentOS, which supplies the background task queue; direct run() and arun() calls on the agent execute the eval inline. |