Skip to main content

Constrained, composable agents that hold by construction — a safety-first SDK for high-stakes, deterministic agent workflows.

Project description

Drawbore

Composable agents that hold by construction.

Drawbore is a Python SDK for building constrained, composable agent pipelines with safety guarantees baked in as architecture — for high-stakes, deterministic workflows in fintech, healthcare, legal, compliance, and beyond.

The thesis: capability is a liability in high-stakes workflows; constraint is the feature. You compose tightly scoped, typed, schema-enforced, audit-logged agents; the framework enforces the contracts and you write the business logic.

Install

pip install drawbore            # core
pip install "drawbore[mcp]"     # + MCP server tools
pip install "drawbore[otlp]"    # + OTLP span export

Sixty seconds

from pydantic import BaseModel
from drawbore import agent, Pipeline

class Payment(BaseModel):
    cents: int

class Normalized(BaseModel):
    dollars: float

@agent(name="normalize", input=Payment, output=Normalized)
async def normalize(p: Payment) -> Normalized:
    return Normalized(dollars=p.cents / 100)

pipeline = Pipeline(name="payments", version="1.0.0")
pipeline.add(normalize)

async def main():
    async with pipeline.test_mode() as tp:
        result = await tp.run(Payment(cents=2500))
    assert result.status == "completed"
    print(result.audit_trace.legible())   # a regulator-readable run record

Every step is schema-checked at both edges. Every tool call passes through a proxy with a single-use permission token. Every run produces a legible audit record. None of it is configurable off.

What the framework guarantees

  • Typed contracts at every edge — Pydantic-validated inputs and outputs; a wrong shape halts the run with a readable reason, it never propagates.
  • Least-privilege tools — agents call only the tools they declared, through one audited chokepoint, with single-use scoped tokens and circuit breakers.
  • Halt-and-escalate by default — failures stop the pipeline and produce an escalation package a human can read; there is no silent degradation.
  • Audit as a side effectresult.audit_trace.legible() renders what ran, what was called, and why it stopped, with no tracing setup.
  • Test mode with the real safety layerpipeline.test_mode(...) mocks the outside world (models, tools, MCP) while every control runs for real.

Learn more

  • Quickstart — install to first run.
  • Guides — pipelines, tools, model-backed agents, escalation, testing, observability.
  • Examples — runnable, tested pipelines from tiny to high-stakes.

License

MIT

Project details


Download files

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

Source Distribution

drawbore-0.4.1.tar.gz (457.0 kB view details)

Uploaded Source

Built Distribution

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

drawbore-0.4.1-py3-none-any.whl (165.4 kB view details)

Uploaded Python 3

File details

Details for the file drawbore-0.4.1.tar.gz.

File metadata

  • Download URL: drawbore-0.4.1.tar.gz
  • Upload date:
  • Size: 457.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for drawbore-0.4.1.tar.gz
Algorithm Hash digest
SHA256 f6c4ed1cb5c3ccd7323c38074b34dff22aa2a7bb2e4c66412f08298759b59189
MD5 4d7a0f5b8ec2ff604811a4a414e5aa98
BLAKE2b-256 3f4abfa6bd209423d012f2a9c349ce1ddf541d2d80c575c3ced54f00939d328a

See more details on using hashes here.

Provenance

The following attestation bundles were made for drawbore-0.4.1.tar.gz:

Publisher: release.yml on daviesayo/drawbore

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

File details

Details for the file drawbore-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: drawbore-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 165.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for drawbore-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 590f0e4baa68d79976bf2f5a0b92c139b30ee430b8fe453ab1a5ed50e850128e
MD5 aa3a0be531c71287f22a470d6dabe4ef
BLAKE2b-256 4a58c0e1abfde3ff888b82849c796426ce13ce9c605b1570613f03572a05ce66

See more details on using hashes here.

Provenance

The following attestation bundles were made for drawbore-0.4.1-py3-none-any.whl:

Publisher: release.yml on daviesayo/drawbore

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page