v0.6.0 Migration Guide
This release upgrades Flujo to Pydantic 2.0 and introduces improved state management.
Key Changes
Flujo.run()
andrun_async()
accept an optionalrun_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 aserializer_default
argument for advanced orjson customization.
Existing code continues to work, but update any usages that previously passed run_id
through initial_context_data
.