This release is a pre-release and may not be stable for production use.
Shared AI integration library for Cognisn products: providers, streaming, prompt caching, agent runner, compaction, skills, MCP client and embeddings.
pip install cognisn-conduit Copy PIP instructions
One AI integration layer for Cognisn products.
conduit gives a Python product model providers, a model catalogue with residency policy, streaming, prompt caching, normalised usage, an agent runner with budgets and hand-off, compaction, skills, an MCP client, embeddings, product-supplied storage, and audit and monitoring events. It supplies the mechanisms; each product keeps its own policy (its prompts, guardrails, approvals and billing).
Release candidate. conduit 0.1.0rc1 is on PyPI as a pre-release, built from the release/v0.1.0 branch. Every layer described here is built and tested; the public API may still change before 0.1.0 if testing of the release candidate finds a problem.
The PyPI package is cognisn-conduit and the import name is conduit. Until 0.1.0 is final, ask for the pre-release explicitly, with pip install --pre or a pinned version such as cognisn-conduit==0.1.0rc1:
pip install "cognisn-conduit[bedrock]" uv add "cognisn-conduit[anthropic,mcp]" The core install and the stub provider need no extra. Setting up providers has install lines for each installer, including CPU-only torch for local embeddings.
The agent runner, compaction, skills and the in-memory and JSON stores are part of the core install.
This runs as it stands, against the stub provider:
import asyncio from conduit import ConduitSettings, LiteralSecretResolver, Message, TaskClass, start from conduit.providers import builtin_factories settings = ConduitSettings.model_validate( { "providers": {"local": {"kind": "stub", "not_for_production": True}}, "assignments": {"triage": {"provider": "local", "model": "stub-echo"}}, } ) async def main() -> str: runtime = await start( settings, task_classes=[TaskClass(name="triage")], factories=builtin_factories(), secrets=LiteralSecretResolver({}), ) try: binding = runtime.for_task("triage") response = await binding.provider.complete( binding.request(messages=[Message.user("Hello from example.com")]) ) return response.text finally: await runtime.aclose() assert asyncio.run(main()) == "Hello from example.com" To call a real model, configure its provider (for example {"kind": "bedrock", "region": "eu-west-2"}), assign one of its models, and use an EnvironmentSecretResolver or your own resolver for its credentials.
Import the core's names (types, settings, events, errors, tools, transcript entries and backend models) from conduit itself, and each layer's names from its package: conduit.agent, conduit.stores, conduit.mcp, conduit.providers.bedrock and so on. Importing conduit loads the core alone.
The full design is in docs/design/architecture.md.
pip install -e ".[dev,all-providers,bedrock-mantle,cli,konfig,local-embeddings,mcp,otel,sql,testing,warden]" ruff format --check . ruff check . mypy --strict pytest python scripts/licence_audit.py python scripts/licence_audit.py --all-extras The default test run never calls a live model or service. Tests marked integration need live providers and are skipped by default. Every Python example in this README and in the guides is executed by tests/docs/test_guides.py; a guide whose examples need an extra you have not installed is skipped, naming the extra. With every extra installed, set CONDUIT_ALL_EXTRAS=require, as CI does: a missing extra then fails these tests and the event-content tripwire instead of skipping them, and any other value of the variable is refused. The MCP tests' loopback servers take ports the operating system assigns, unless CONDUIT_MCP_TEST_PORT_BASE is set to a slot's base port.
Both files in this release have provenance metadata.
all-providers anthropic bedrock bedrock-mantle cli dev gemini konfig local-embeddings mcp ollama openai otel sql testing warden
agents ai amazon-bedrock anthropic gemini llm mcp ollama openai
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
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 verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.
Both files in this release have been uploaded with provenance metadata.
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.




