Skip to content

v0.6.0 Migration Guide

This release upgrades Flujo to Pydantic 2.0 and introduces improved state management.

Key Changes

  • Flujo.run() and run_async() accept an optional run_id parameter for explicit workflow identification.
  • State backends automatically serialize nested Pydantic models. Data in your context no longer needs manual conversion.
  • All StateBackend classes accept a serializer_default argument for advanced orjson customization.

Existing code continues to work, but update any usages that previously passed run_id through initial_context_data.