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.

Wiki

levain_sdk.wiki reads the workspace knowledge base from node code, with no agent loop: read_page(path), search(query, limit) and list_pages(). All three are async, take their configuration from the sandbox environment, and report failures as {"error": ..., "code": ...} rather than raising. The Knowledge Base guide has the example and the list of codes.

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.

Metadata

Release files for levain-sdk 0.1.140

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for levain-sdk 0.1.140
File Size Uploaded
levain_sdk-0.1.140.tar.gz 169.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for levain-sdk 0.1.140
File Interpreter ABI Platform
levain_sdk-0.1.140-py3-none-any.whl Python 3 none any Details

Total release size: 374.4 kB

Release files / levain_sdk-0.1.140.tar.gz

Download URL levain_sdk-0.1.140.tar.gz
Size 169.3 kB
Tags Source
SHA-256 checksum
How to use checksums
01a19dad080efc2173873bb5aa4710aac5c50669e347deac95a27b51bf330452
BLAKE2b-256 checksum
How to use checksums
531475a037e976aa29c724e1aeacaa3d3e9ec28825ffe45f3d8111014adc07d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.

Transparency log

Release files / levain_sdk-0.1.140-py3-none-any.whl

Download URL levain_sdk-0.1.140-py3-none-any.whl
Size 205.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4442e503d48549069df60a7a48a4c6c24e95fd0f796b83d8ca3ec3bbc7b975cd
BLAKE2b-256 checksum
How to use checksums
91f87709c3e1d2df50b10e29160117952e8d4ec32595b12089661f530e3a1bf7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.140 This release

2 release files

0.1.0

2 release 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