v4.16.1 3.3.1

medium risk

labring/FastGPTAug 21, 2026 → Aug 21, 20261 day between releases

What's New

DSPy interpreter managed runtime and sandbox hardening added in 3.3.1, contrasting with v4.16.1's schema migration.

Breaking Changes

  • Deprecation of `dspy.CodeAct` and `dspy.ProgramOfThought` (scheduled for removal in 3.5)
  • `max_reflection_cost` now raises an error in DSPy's GEPA adapter

New Features

  • Managed runtime for PythonInterpreter
  • Callback API for lifecycle events
  • GEPA multi-proposal sampling and selection strategies
  • MCP structured result mode
  • Improved adapter fallbacks for missing fields

Improvements

  • Hardened sandbox isolation and execution integrity
  • Faster Multi-Proposal GEPA Optimization
  • Improved structured adapter outputs
  • Enhanced MCP compatibility

Bug Fixes

  • Interpreter execution fixes
  • Sandbox diagnostics desynchronization fix
  • Recursive execution rejection fix

Upgrade Notes

Install optional managed runtime using `pip install "dspy[deno]"`. Update code to handle the deprecation of `dspy.CodeAct` and `dspy.ProgramOfThought` and ensure `max_reflection_cost` is handled correctly in the GEPA adapter.

The Two Releases

v4.16.1

v4.16.1

Aug 21, 2026· 2 months ago

A patch release following v4.16.0, focusing on refining Agent Sandbox configuration (supporting root images and custom APT sources) and migrating tool JSON Schema storage to string format.

Full release notes
3.3.1

3.3.1

Aug 21, 2026· 2 months ago

A maintenance release focused on interpreter fixes, sandbox isolation hardening, and observability. It includes faster multi-proposal GEPA optimization, improved adapter correctness, and enhanced MCP compatibility.

Full release notes