Skip to content

v0.7.2

Choose a tag to compare

@Lawhy Lawhy released this 04 Sep 23:14
· 13 commits to main since this release
16eb33c

What's New

Features

  • Tool results can be cached. CachedTool (strands_env.core.tool_cache) wraps any AgentTool and serves the result from cache when the same input, plus a caller-set scope, was seen before, so repeat calls across pass@k samples, episodes, and Ray workers stop paying the tool's latency and quota. Wrap only tools whose result is a function of input and scope. Concurrent calls for one key in a process coalesce onto a single run. Two tiers: a process-wide ToolCache (bounded by entries and bytes, jittered TTL) and an optional RayToolCache shared by every process of a Ray job through a named actor, which also runs each key once job-wide. on_access reports hit/miss/coalesced, tier, and latency per call for metrics. Wiring is per env; no shipped env wires it yet. (#261)
  • --reasoning-effort now reaches the bedrock backend. It was accepted and silently dropped there, so a Converse-served reasoning model ran with reasoning off. ModelConfig.bedrock_request_fields() translates it into the additionalModelRequestFields each model family takes: OpenAI models get reasoning.effort; Claude 5 models get adaptive thinking via output_config.effort with display: "summarized", so the thinking block carries readable text. Older Claude models (budget-based thinking.enabled) are unmapped and unchanged. bedrock_model_factory gains additional_request_fields, forwarded to BedrockModel as-is. (#258)

Bug Fixes

  • e2b sandboxes no longer abort on a dropped first connection. At high launch concurrency the e2b gateway closes a small share of fresh envd connections mid-handshake. The error surfaced as a raw h2/httpcore transport error that harbor's own retry does not cover, and the episode died with an empty trajectory. PrebakedE2BEnvironment.ensure_dirs, the first request every sandbox receives, now retries those errors with jittered backoff. On one node at concurrency 500, ramp-period aborts went from 6 to 0. (#263)
  • Eval results with bytes in the messages (Bedrock's redacted reasoning, reasoningContent.redactedContent) no longer crash LocalReporter; the bytes are written to results.jsonl as base64. (#259)
  • When a sample aborts, the evaluator logs the full traceback instead of only the exception message. (#262)

Maintenance

  • Dependencies: harbor 0.21.0 → 0.22.0, click 8.4.2 → 8.5.0, ruff 0.16.4 → 0.16.5 (dev), re-actors/alls-green 1.2.2 → 1.3.0 (CI). (#260)

Notes for upgraders

  • cachetools is a new main dependency; it installs with the package.
  • If you passed --reasoning-effort (or ModelConfig.reasoning) with --backend bedrock, reasoning is now actually on for OpenAI and Claude 5 models on Converse. Expect longer, costlier responses than before, and readable thinking summaries in the record.
  • CachedTool is not re-exported from strands_env.core; import it from strands_env.core.tool_cache. The Ray tier needs ray installed.

Full Changelog: v0.7.1...v0.7.2