Repository navigation
v0.6.5
What's New
⚠️ Breaking Changes
LLMJudgeReward.__init__no longer acceptssystem_promptormax_model_retries. Pass a per-sample prompt by overridingget_system_promptinstead; dropmax_model_retriesentirely — Strands'ModelRetryStrategyalready retries every judge agent, and ajudge_modellist still round-robins per sample.get_system_promptnow defaults toNone. (#206)- Unscorable samples are now aborted rather than counted.
Evaluator.validate_samplepreviously defaulted to keeping every sample, so a sample with no reward — or one whose reward failed and fell back todefault_reward— was folded into the metrics as incorrect. Such samples are now excluded from metrics and retried on resume (the trajectory is still written to the results file). To keep inference-only runs in the metrics, overridevalidate_sampletoreturn True. (#208)
Bug Fixes
- Judge tools now actually run in structured mode.
LLMJudgeRewarddrives the judge throughinvoke_async(structured_output_model=...), so a judge can gather evidence and return a typed verdict in one invocation — previously, settingjudgment_formatsilently bypassed the event loop and skipped the tool loop. (#206) - Reasoning judges no longer score
default_rewardon correct answers: text extraction reads the last text block with<think>stripped, instead of an empty leadingreasoningContentblock. (#206) - A throttled judge no longer stacks retries. The outer
max_model_retriesloop multiplied against Strands' own 6-attempt backoff (~6 minutes of blocking in the worst case). (#206) WebScraperToolkit.summarizemoves off the deprecatedstructured_output_asynctoinvoke_async, so the summarizer agent's hooks fire and its tools are honored. A missing summary still degrades toNone— no caller-visible change. (#207)
Refactoring
- New
get_judge_agent(system_prompt, name=...)seam onLLMJudgeRewardfor attaching tools, hooks (e.g. aLoopLimiterbudget), or a customretry_strategyto the judge agent. The resolved per-sample system prompt is passed in, so an override cannot silently drop it. (#206) - Seven benchmarks (
simpleqa_verified,sealqa,frames,browsecomp,hle_verified,mcp_atlas,terminal_bench) drop their copy-pasted reward-error checks and inherit the basevalidate_sample;tau2_benchkeeps only the checks the base cannot see (nested NL-judge errors, user-simulator aborts). (#208)
Full Changelog: v0.6.4...v0.6.5