Python API¶
The reference below is generated from the installed package. Start with the first optimization for task-oriented guidance.
Public package¶
pydantic_gepa ¶
CandidateComponentError ¶
Bases: PydanticGEPAError
Raised when a candidate component cannot be encoded or decoded.
Source code in src/pydantic_gepa/errors.py
8 9 | |
CandidateInjectionError ¶
Bases: PydanticGEPAError
Raised when a candidate cannot be injected into a target system.
Source code in src/pydantic_gepa/errors.py
12 13 | |
EvaluationHarnessError ¶
Bases: PydanticGEPAError
Raised when a Pydantic Evals harness cannot run a batch.
Source code in src/pydantic_gepa/errors.py
16 17 | |
EvidenceEncodingError ¶
Bases: PydanticGEPAError
Raised when runtime evidence cannot be encoded safely.
Source code in src/pydantic_gepa/errors.py
20 21 | |
InfrastructureError ¶
Bases: PydanticGEPAError
Raised when evaluation infrastructure fails outside task or evaluator logic.
Source code in src/pydantic_gepa/errors.py
24 25 | |
InvalidScoreError ¶
Bases: PydanticGEPAError
Raised when an evaluator produces an invalid optimization score.
Source code in src/pydantic_gepa/errors.py
28 29 | |
OptimizationDependencyError ¶
Bases: PydanticGEPAError
Raised when an optional optimization dependency is unavailable.
Source code in src/pydantic_gepa/errors.py
32 33 | |
PlanError ¶
Bases: PydanticGEPAError
Raised when an optimization plan or stage violates its contract.
Source code in src/pydantic_gepa/errors.py
36 37 | |
PydanticGEPAError ¶
Bases: Exception
Base exception for pydantic-gepa failures.
Source code in src/pydantic_gepa/errors.py
4 5 | |
RunStoreError ¶
Bases: PydanticGEPAError
Raised when durable optimization state is unsafe or incompatible.
Source code in src/pydantic_gepa/errors.py
40 41 | |
Configuration¶
pydantic_gepa.configuration
¶
ConfigurationError
¶
Bases: PydanticGEPAError
Raised when typed GEPA settings conflict or cannot be migrated.
Source code in src/pydantic_gepa/configuration/models.py
27 28 | |