Works With Agents — Agent OSI Model Python SDK
Project description
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/
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
workswithagents-0.1.3.tar.gz
(18.2 kB
view details)
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 workswithagents-0.1.3.tar.gz.
File metadata
- Download URL: workswithagents-0.1.3.tar.gz
- Upload date:
- Size: 18.2 kB
- Tags: Source
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a32b560d8474368acf6632857a849230519a0516a968e894a7368bd051aab59
|
|
| MD5 |
bc28dbdfbf345f526d4c8ab75b3b5e49
|
|
| BLAKE2b-256 |
6404ede5062e20ddc6f0b1af182e91d9d92579cc5c6f726b0f0262f6c26c17a7
|
File details
Details for the file workswithagents-0.1.3-py3-none-any.whl.
File metadata
- Download URL: workswithagents-0.1.3-py3-none-any.whl
- Upload date:
- Size: 23.7 kB
- Tags: Python 3
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d87f405f3dd3cccacff081993fa6878a4eacfcd7de8f00fec8936a1141b2c5d5
|
|
| MD5 |
ea03f9db9104db2975945adce8689dd7
|
|
| BLAKE2b-256 |
40c6355650aad218516a8bf2edca9aa6389318854dd04016d376044cac893cb4
|