Works With Agents — Python SDK
Reference implementations for all Agent OSI Model protocols: Trust Score, Deployment Manifest, SLA Framework, Identity Protocol, Compliance-as-Code, Onboarding Protocol.
Install
pip install workswithagents
Quick Start
from workswithagents import (
TrustScoreClient,
DeploymentManifest,
SLAMetrics,
AgentIdentity,
ComplianceEngine,
OnboardingClient
)
# Trust Score — check before delegating
ts = TrustScoreClient()
if ts.get("target-agent")["tier"] == "trusted":
delegate(task, to="target-agent")
# Deployment — deploy a fleet from YAML
dm = DeploymentManifest.from_file("fleet.yaml")
dm.deploy()
# SLA — track fleet performance
sla = SLAMetrics("my-fleet", tier="production")
sla.report("agent-1", "task-42", duration_seconds=187, success=True)
# Identity — sign and verify messages
ai = AgentIdentity("my-agent")
ai.register()
sig = ai.sign({"type": "heartbeat"})
# Compliance — validate before executing
ce = ComplianceEngine()
dtac = ce.load("dtac-v2.1")
if dtac.validate(action).passed:
execute(action)
# Onboarding — create new agents
ob = OnboardingClient()
result = ob.full_onboard("new-agent", "Build SPFx parts",
capabilities=["build:spfx"])
Protocols
| Protocol | Module | Layer |
|---|---|---|
| Trust Score | trust_score.py |
L3/L5 |
| Deployment Manifest | deployment.py |
Cross-layer |
| SLA Framework | sla.py |
L7 |
| Identity Protocol | identity.py |
L2/L3 |
| Compliance-as-Code | compliance.py |
L7 |
| Onboarding Protocol | onboarding.py |
L1/L3 |
All protocols CC BY 4.0. Full specs: https://workswithagents.dev/specs/
Release files for workswithagents 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| workswithagents-0.1.3.tar.gz | 18.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| workswithagents-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 41.9 kB
Release files / workswithagents-0.1.3.tar.gz
| Download URL | workswithagents-0.1.3.tar.gz |
|---|---|
| Size | 18.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a32b560d8474368acf6632857a849230519a0516a968e894a7368bd051aab59
|
|
BLAKE2b-256 checksum How to use checksums |
6404ede5062e20ddc6f0b1af182e91d9d92579cc5c6f726b0f0262f6c26c17a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","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 / workswithagents-0.1.3-py3-none-any.whl
| Download URL | workswithagents-0.1.3-py3-none-any.whl |
|---|---|
| Size | 23.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d87f405f3dd3cccacff081993fa6878a4eacfcd7de8f00fec8936a1141b2c5d5
|
|
BLAKE2b-256 checksum How to use checksums |
40c6355650aad218516a8bf2edca9aa6389318854dd04016d376044cac893cb4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","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}
|