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 vialevain_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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
042d4f7261d603983ce5e4f88b59fd247c5901edc24c90eaae580c1cf4e81b17
|
|
| MD5 |
b721bfbf34430fad199f646e3aeb2ff0
|
|
| BLAKE2b-256 |
5f5a89330016bb4537f87378460be8223f6975da1e59aaba1ffb033c0e283b1d
|
Provenance
The following attestation bundles were made for levain_sdk-0.1.0.tar.gz:
Publisher:
pypi-publish.yaml on levainlabs/levain
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
levain_sdk-0.1.0.tar.gz -
Subject digest:
042d4f7261d603983ce5e4f88b59fd247c5901edc24c90eaae580c1cf4e81b17 - Sigstore transparency entry: 2613840691
- Sigstore integration time:
-
Permalink:
levainlabs/levain@6f5127ed2b4e30c034338794363c543442ab2ab0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/levainlabs
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yaml@6f5127ed2b4e30c034338794363c543442ab2ab0 -
Trigger Event:
workflow_dispatch
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5a36c2d7cfc053125c1d5b9b4e1f01b254835266959e7e2d86650c7b3fb9784
|
|
| MD5 |
87df0ddd1988316251b6555edc9e965f
|
|
| BLAKE2b-256 |
6fd3fc887060f6da2958dea03cc01cb36ddada572b454b2a9ed0ea082a120e3b
|
Provenance
The following attestation bundles were made for levain_sdk-0.1.0-py3-none-any.whl:
Publisher:
pypi-publish.yaml on levainlabs/levain
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
levain_sdk-0.1.0-py3-none-any.whl -
Subject digest:
e5a36c2d7cfc053125c1d5b9b4e1f01b254835266959e7e2d86650c7b3fb9784 - Sigstore transparency entry: 2613840870
- Sigstore integration time:
-
Permalink:
levainlabs/levain@6f5127ed2b4e30c034338794363c543442ab2ab0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/levainlabs
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yaml@6f5127ed2b4e30c034338794363c543442ab2ab0 -
Trigger Event:
workflow_dispatch
-
Statement type: