> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mellea.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Mellea API Reference

> Complete reference for Mellea's Python API and command-line tools

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](/api/mellea/backends/backends)** — Backend implementations for the mellea inference layer.
* **[mellea.core](/api/mellea/core/core)** — Core abstractions for the mellea library.
* **[mellea.formatters](/api/mellea/formatters/formatters)** — Formatters for converting components into model-ready prompts.
* **[mellea.helpers](/api/mellea/helpers/helpers)** — Low-level helpers and utilities supporting mellea backends.
* **[mellea.plugins](/api/mellea/plugins/plugins)** — Mellea Plugin System — extension points for policy enforcement, observability, and customization.
* **[mellea.stdlib](/api/mellea/stdlib/stdlib)** — The mellea standard library of components, sessions, and sampling strategies.
* **[mellea.telemetry](/api/mellea/telemetry/telemetry)** — OpenTelemetry instrumentation for Mellea.

## CLI (`m`)

See the [CLI Reference](/reference/cli) page.
