Skip to content

pydantic-evals should optionally raise an exception if some or all cases raise an exception #2911

@samuelcolvin

Description

@samuelcolvin

Initial Checks

Description

New flag on evaluate(errors: literal['raise-if-any', 'raise-if-all', 'never-raise'] = 'never-raise')

cc @dmontagu

Example Code

Python, Pydantic AI & LLM client version

1.0.6

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions