Skip to main content
Mellea is a library for writing generative programs. Generative programming replaces flaky agents and brittle prompts with structured, maintainable, and efficient AI workflows.

Python Library

  • mellea.backends — Backend implementations for the mellea inference layer.
  • mellea.core — Core abstractions for the mellea library.
  • mellea.formatters — Formatters for converting components into model-ready prompts.
  • mellea.helpers — Low-level helpers and utilities supporting mellea backends.
  • mellea.plugins — Mellea Plugin System — extension points for policy enforcement, observability, and customization.
  • mellea.stdlib — The mellea standard library of components, sessions, and sampling strategies.
  • mellea.telemetry — OpenTelemetry instrumentation for Mellea.

CLI (m)

See the CLI Reference page.