GitHub repo

PrefectHQ/marvin

Python Tracked since 2023-03-10 Updated 2026-07-16 View source ↗

#279 of 783 by Stars among GitHub repos

6.2k Stars

an ambient intelligence library

About

Marvin is a Python framework for producing structured outputs and building agentic AI workflows.

Marvin provides an intuitive API for defining workflows and delegating work to LLMs:

Configure your LLM provider (Marvin uses OpenAI by default but natively supports all Pydantic AI models):

Marvin offers a few intuitive ways to work with AI:

The gang's all here - you can find all the structured-output utilities from marvin 2.x at the top level of the package.

How to use extract, cast, classify, and generate

Classify unstructured input as one of a set of predefined labels:

Generate some number of structured objects from a description:

marvin 3.0 introduces a new way to work with AI,…

Excerpted from github.com/PrefectHQ/marvin

Latest metrics

Stars 6.2k 2026-07-16
Forks 408 2026-07-16
Commits 4.0k 2026-07-16
Releases 88 2026-07-16
Watchers 33 2026-07-16
Open issues 62 2026-07-16
Open PRs 46 2026-07-16