Skip to main content

levain-sdk

The Python interface that Levain agent recipes are written against: node helpers, the agentic engine, state reducers, and tool annotations.

A recipe's node functions import from levain_sdk, so this package is what makes a cloned recipe installable and readable in your editor — type checking, completion, and uv sync all resolve against it. Agents execute on the Levain platform; this package defines the contract, it does not run them.

Install

Recipe packages already declare levain-sdk, so inside a cloned recipe:

uv sync

Or directly:

pip install levain-sdk

Extras

  • models — direct (non-agentic) LLM calls via levain_sdk.models.
  • review — helpers used by review-oriented recipes.
  • crawler — main-content extraction for crawling recipes.

Most recipes need none of these; the error message will name the extra if a module you import requires one.

Authoring recipes

Validation and code generation live in the companion tool, levain-cli. The full authoring guide is at docs.levainlabs.com.

License

Apache-2.0.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

levain_sdk-0.1.0.tar.gz (137.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

levain_sdk-0.1.0-py3-none-any.whl (168.2 kB view details)

Uploaded Python 3

File details

Details for the file levain_sdk-0.1.0.tar.gz.

File metadata

  • Download URL: levain_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 137.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for levain_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 042d4f7261d603983ce5e4f88b59fd247c5901edc24c90eaae580c1cf4e81b17
MD5 b721bfbf34430fad199f646e3aeb2ff0
BLAKE2b-256 5f5a89330016bb4537f87378460be8223f6975da1e59aaba1ffb033c0e283b1d

See more details on using hashes here.

Provenance

The following attestation bundles were made for levain_sdk-0.1.0.tar.gz:

Publisher: pypi-publish.yaml on levainlabs/levain

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file levain_sdk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: levain_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 168.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for levain_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e5a36c2d7cfc053125c1d5b9b4e1f01b254835266959e7e2d86650c7b3fb9784
MD5 87df0ddd1988316251b6555edc9e965f
BLAKE2b-256 6fd3fc887060f6da2958dea03cc01cb36ddada572b454b2a9ed0ea082a120e3b

See more details on using hashes here.

Provenance

The following attestation bundles were made for levain_sdk-0.1.0-py3-none-any.whl:

Publisher: pypi-publish.yaml on levainlabs/levain

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page