Marvin 2.x
Thecast, classify, extract, generate, and fn entry points remain available. Check their current signatures; do not assume every model, image, or audio integration from 2.x is present.
For a general task, use marvin.run with a result_type:
generate returns a list even when requesting one value. Helpers such as extract accept agent=...; run and Task accept agents=[...].
ControlFlow
Replace model identifiers with Pydantic AI’sprovider:model-name format. Replace Flow contexts with Thread contexts:
@flow decorator. For work with dependencies, construct tasks and call run_tasks.
Storage and teams
Thread/message history is stored in a database, SQLite by default. Vector memory is separate and depends on a provider; see memory. SettingMARVIN_DATABASE_URL does not configure vector memory.
All team classes are deprecated. Coordinate individual agents explicitly rather than porting team or swarm orchestration.
See model configuration, database migrations, and the examples for current usage.