agentic_test 0.1.2
agentic_test: ^0.1.2 copied to clipboard
Test agents without paying for every run: record real model answers once and replay them offline, and score agent behaviour with repeatable evals.
Changelog #
0.1.2 #
Initial release. The version follows the sibling packages it ships with.
- Cassettes.
RecordingChatModelrecords a real model's answers,ReplayChatModelplays them back offline, andcassetteModelchooses between them: it records when the file is missing orAGENTIC_RECORD=1is set, and replays otherwise. Replay fails with aCassetteMismatchErrornaming the first difference when a prompt or tool changes, andverifyExhaustedcatches a run that makes fewer calls. ARedactorkeeps secrets out of the file. - Evals.
EvalSuiterunsEvalCases repeatedly against an agent and reports pass rates. Checks cover success, answer text, tools called and not called, step and token limits, custom functions, and a model-graded rubric.EvalReportrenders as a summary, Markdown or JSON, andrequirePassRateturns it into a test assertion.