Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

inlumen-agents

inLUMEN's pipeline design and code generation agents as one Python package, used by the inLUMEN backend, the codegen service and inlumen-bench. The design rationale is in inLUMEN's ADR 0005 (docs/adr/0005-design-and-codegen-libraries.md).

Module Contents Status
inlumen.contracts The pipeline graph model: port types, Parallel Map scopes, the artifact runtime, the Task package contract, step types, node ports and definitions, graph validation, subpipelines, plugins, Project JSON Done
inlumen.design The pipeline design agent (extra design) Done
inlumen.codegen The code generator (extra codegen) Done

Design a pipeline

from inlumen.design.run import design, openai_model_client

model = openai_model_client(
    "openai/gpt-4.1", base_url="https://openrouter.ai/api/v1", api_key=OPENROUTER_API_KEY,
)
result = await design("Read invoice PDFs, extract totals, save one CSV", model=model, name="Invoices")
result.accepted            # passed validation (after at most one repair round)
result.project             # inLUMEN Project JSON: opens with the canvas Import button
result.requests            # one record per model request: tokens, latency, outcome
result.catalog_fingerprint # what the agent could use, with the package version

It runs on an in-memory graph (inlumen.design.memory_store.InMemoryGraphStore), which behaves like the inLUMEN backend's Neo4j store: both run the scenarios in inlumen.design.store_contract, and a backend integration test requires identical results. Pass graph= to start from an existing canvas graph and catalog= to offer plugins or reusable pipelines.

Generate Task packages

from inlumen.codegen.run import generate, http_model
from inlumen.codegen.sandbox import DockerSandbox

model = http_model(
    "openai/gpt-5.2-codex", base_url="https://openrouter.ai/api/v1",
    api_key=OPENROUTER_API_KEY, provider="openrouter",
)
result = await generate(design_result.graph, model=model, files="data/")
result.accepted            # the generated pipeline passed integration validation
result.packages            # {flow_id: {filename: content}}: one Task package per step
result.write_packages("out/")
result.requests            # one record per model request: tokens, cost, latency

It runs the same planning, generation, repair and validation as the codegen service. sandbox defaults to NoSandbox() (static checks only); pass DockerSandbox() to run the pipeline on sample inputs, which needs a Docker daemon. files is a folder of attached files, looked up as <folder>/<flow_id>/<name> and then <folder>/<name>. runtime= overrides the runtime constraints for a fixed target environment, e.g. {"allowed_packages": [...], "network_allowed": False}. Any object with a name and an async complete(system_prompt=…, user_prompt=…, json_output=…, max_tokens=…) returning inlumen.codegen.model.ModelReply can be the model.

Install

From PyPI (pre-releases need an exact version or --pre):

pip install "inlumen-agents[design,codegen]==1.0.0b6.dev1"

Extras: design for inlumen.design, codegen for inlumen.codegen; inlumen.contracts needs neither.

In the inLUMEN repository (editable, for development):

uv pip install -e "packages/agents[design,codegen]"

Tests

cd packages/agents && uv run --extra design --extra codegen --extra dev pytest

Metadata

Release files for inlumen-agents 1.0.0b6.dev1

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

Source distribution (sdist)

Source distribution for inlumen-agents 1.0.0b6.dev1
File Size Uploaded Provenance Actions
inlumen_agents-1.0.0b6.dev1.tar.gz 202.7 kB Without provenance Details for inlumen_agents-1.0.0b6.dev1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for inlumen-agents 1.0.0b6.dev1
File Interpreter ABI Platform Actions
inlumen_agents-1.0.0b6.dev1-py3-none-any.whl Python 3 none any Details for inlumen_agents-1.0.0b6.dev1-py3-none-any.whl

Total release size: 423.4 kB

Release files / inlumen_agents-1.0.0b6.dev1.tar.gz

Download URL inlumen_agents-1.0.0b6.dev1.tar.gz
Size 202.7 kB
Tags Source
SHA-256 checksum
How to use checksums
822971307e8ed97b8d694171e70921a2ab707a355639560a72397c6faf3dfc3c
BLAKE2b-256 checksum
How to use checksums
36ddeddf25968881ddd4c10fd83846fb237b3dcffcb2bfbf2d7f1705401d81db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / inlumen_agents-1.0.0b6.dev1-py3-none-any.whl

Download URL inlumen_agents-1.0.0b6.dev1-py3-none-any.whl
Size 220.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a99e6c5809220bb7ad034b446c35d583778dc93bbd6a57310e15760a30d71519
BLAKE2b-256 checksum
How to use checksums
9c5a7d825540ed8821bec19005394867109de213d2110f9a75a0f5bbed8062ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for inlumen-agents 1.0.0b6.dev1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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