Skip to content

v0.6.5

Choose a tag to compare

@Lawhy Lawhy released this 12 Aug 09:13
· 56 commits to main since this release
20ebdcd

What's New

⚠️ Breaking Changes

  • LLMJudgeReward.__init__ no longer accepts system_prompt or max_model_retries. Pass a per-sample prompt by overriding get_system_prompt instead; drop max_model_retries entirely — Strands' ModelRetryStrategy already retries every judge agent, and a judge_model list still round-robins per sample. get_system_prompt now defaults to None. (#206)
  • Unscorable samples are now aborted rather than counted. Evaluator.validate_sample previously defaulted to keeping every sample, so a sample with no reward — or one whose reward failed and fell back to default_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, override validate_sample to return True. (#208)

Bug Fixes

  • Judge tools now actually run in structured mode. LLMJudgeReward drives the judge through invoke_async(structured_output_model=...), so a judge can gather evidence and return a typed verdict in one invocation — previously, setting judgment_format silently bypassed the event loop and skipped the tool loop. (#206)
  • Reasoning judges no longer score default_reward on correct answers: text extraction reads the last text block with <think> stripped, instead of an empty leading reasoningContent block. (#206)
  • A throttled judge no longer stacks retries. The outer max_model_retries loop multiplied against Strands' own 6-attempt backoff (~6 minutes of blocking in the worst case). (#206)
  • WebScraperToolkit.summarize moves off the deprecated structured_output_async to invoke_async, so the summarizer agent's hooks fire and its tools are honored. A missing summary still degrades to None — no caller-visible change. (#207)

Refactoring

  • New get_judge_agent(system_prompt, name=...) seam on LLMJudgeReward for attaching tools, hooks (e.g. a LoopLimiter budget), or a custom retry_strategy to 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 base validate_sample; tau2_bench keeps only the checks the base cannot see (nested NL-judge errors, user-simulator aborts). (#208)

Full Changelog: v0.6.4...v0.6.5