DSPy 3.5 changes how predictors ask a model for answers. The default adapter is now XMLAdapter(use_native_function_calling=True) instead of ChatAdapter. Your signature can stay the same while prompts, demonstrations, and parsed outputs change.

The official upgrade guide says to re-evaluate optimized programs and rebuild format-dependent fixtures. To keep Chat-style field delimiters, configure dspy.ChatAdapter() explicitly. That only preserves the adapter choice; other 3.5 changes still apply.

Other migration edges matter for agent programs. dspy.ReAct now uses structured history and a typed submit tool instead of the old trajectory dictionary. dspy.ChainOfThought can return reasoning as dspy.Reasoning or None, so code expecting a reasoning string needs review. The release also fixes GEPA and bootstrap behaviors that can change which examples or instructions get selected.

Proposed exercise

Take a small labeled classification task with separate training, validation, and untouched final-test examples. Record the package version, adapter, model route, prompts, parsed outputs, and task metric on a baseline. Compare the same frozen program under 3.5 on the held-out final test after choosing any migration settings on validation data. Inspect invalid outputs and changed labels, not just the aggregate score. This is a proposed check, not a run performed here.

Caveat: the release’s speed and size measurements come from the maintainers’ development snapshot, not a performance result for your program.

For the learning sequence, start with metrics before optimizers or return to Start here.