Repository navigation
v0.7.2
What's New
Features
- Tool results can be cached.
CachedTool(strands_env.core.tool_cache) wraps anyAgentTooland serves the result from cache when the same input, plus a caller-setscope, 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-wideToolCache(bounded by entries and bytes, jittered TTL) and an optionalRayToolCacheshared by every process of a Ray job through a named actor, which also runs each key once job-wide.on_accessreports hit/miss/coalesced, tier, and latency per call for metrics. Wiring is per env; no shipped env wires it yet. (#261) --reasoning-effortnow reaches thebedrockbackend. It was accepted and silently dropped there, so a Converse-served reasoning model ran with reasoning off.ModelConfig.bedrock_request_fields()translates it into theadditionalModelRequestFieldseach model family takes: OpenAI models getreasoning.effort; Claude 5 models get adaptive thinking viaoutput_config.effortwithdisplay: "summarized", so the thinking block carries readable text. Older Claude models (budget-basedthinking.enabled) are unmapped and unchanged.bedrock_model_factorygainsadditional_request_fields, forwarded toBedrockModelas-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/httpcoretransport 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
bytesin the messages (Bedrock's redacted reasoning,reasoningContent.redactedContent) no longer crashLocalReporter; the bytes are written toresults.jsonlas base64. (#259) - When a sample aborts, the evaluator logs the full traceback instead of only the exception message. (#262)
Maintenance
- Dependencies:
harbor0.21.0 → 0.22.0,click8.4.2 → 8.5.0,ruff0.16.4 → 0.16.5 (dev),re-actors/alls-green1.2.2 → 1.3.0 (CI). (#260)
Notes for upgraders
cachetoolsis a new main dependency; it installs with the package.- If you passed
--reasoning-effort(orModelConfig.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. CachedToolis not re-exported fromstrands_env.core; import it fromstrands_env.core.tool_cache. The Ray tier needsrayinstalled.
Full Changelog: v0.7.1...v0.7.2