v2.6.1 3.3.0

high risk

krahets/hello-algoJul 31, 2026 → Aug 3, 20263 days between releases

What's New

Upgrades to DSPy 3.3.0 with Flex optimizer and typed LM API, replacing v2.6.1's bug fixes

Breaking Changes

  • Resource constructors for Image, Audio, and File no longer perform implicit I/O
  • Custom LMs must implement the typed LMRequest -> LMResponse contract
  • LiteLLM imports are now lazy and optional

New Features

  • Experimental Flex optimizer for program structure via GEPA
  • Native-tool-aware ReActV2 implementation with history support
  • Typed LMRequest and LMResponse API for provider neutrality
  • BaseLM state serialization with dump_state and load_state

Improvements

  • Native tool-call history support
  • Lazy and optional LiteLLM imports

Upgrade Notes

Review API changes for Image, Audio, and File constructors; use explicit methods like from_path or from_url. Ensure custom LMs implement the new typed LMRequest -> LMResponse contract. Review GEPA results and tool-call history support if applicable.

The Two Releases

v2.6.1

v2.6.1

Jul 31, 2026· 3 months ago

Fixes AI-generated replies losing hyperlinks and backend translation fallbacks.

Full release notes
3.3.0

3.3.0

Aug 3, 2026· 3 months ago

Introduces experimental `Flex` optimization for program structure, a native-tool-aware `ReActV2` implementation, and a typed, provider-neutral LM API boundary.

Full release notes