# Works With Agents SDK — Python, TypeScript, Go, Rust, Shell, C#

# Works With Agents — Now in 6 Languages

All 12 Agent OSI Model protocols now have reference implementations in every language AI agents commonly use.

## Language SDKs

| Language | Install | Modules |
|----------|---------|---------|
| **Python** | `pip install workswithagents` | Trust, Deploy, SLA, Identity, Compliance, Onboard |
| **TypeScript** | `npm install workswithagents` | Trust, Deploy, SLA, Identity, Compliance, Onboard |
| **Go** | `go get github.com/vystartasv/works-with-agents` | Trust, Deploy, SLA, Identity, Compliance, Onboard |
| **Rust** | `cargo add workswithagents` | Trust, Deploy, SLA, Identity, Compliance |
| **Shell** | `source workswithagents.sh` | All 6 protocols as curl wrappers |
| **C#** | Copy `WorksWithAgents.cs` | Trust, Deploy, SLA, Identity, Compliance, Onboard |

## One API. Six Languages. Same Protocols.

### Python
```python
from workswithagents import TrustScoreClient, ComplianceEngine

ts = TrustScoreClient()
if ts.get("target-agent")["tier"] == "trusted":
    delegate(task, to="target-agent")

ce = ComplianceEngine()
dtac = ce.load("dtac-v2.1")
if dtac.validate(action).passed:
    execute(action)
```

### TypeScript
```typescript
import { TrustScoreClient, ComplianceEngine } from "workswithagents";

const ts = new TrustScoreClient();
const score = await ts.get("target-agent");
if (score.tier === "trusted") delegate(task, "target-agent");

const ce = new ComplianceEngine();
const dtac = await ce.load("dtac-v2.1");
if ((await dtac.validate(action)).passed) execute(action);
```

### Go
```go
import wwa "github.com/vystartasv/works-with-agents"

ts := wwa.NewTrustScoreClient()
score, _ := ts.Get("target-agent")

engine := wwa.NewComplianceEngine()
result, _ := engine.Validate("dtac-v2.1", action)
```

### Rust
```rust
use workswithagents::{TrustScoreClient, ComplianceEngine};

let ts = TrustScoreClient::new();
let score = ts.get("target-agent")?;

let engine = ComplianceEngine::new();
let result = engine.validate("dtac-v2.1", &action)?;
```

### Shell
```bash
source workswithagents.sh
wwa_trust_get "target-agent"
wwa_compliance_validate "dtac-v2.1" '{"verb":"deploy","reversible":true}'
```

### C#
```csharp
using WorksWithAgents;

var score = await WWA.TrustGet("target-agent");
var result = await WWA.ComplianceValidate("dtac-v2.1", action);
```

## Zero Dependencies (except cryptography for Identity)

Python, TypeScript, Go, Shell, and C# SDKs use only stdlib. Rust needs serde+reqwest (standard Rust ecosystem deps).

## All CC BY 4.0

Free to use, modify, distribute. Attribution required. Copy-paste into your agent codebase.

- Source: [workswithagents.dev/sdk/](https://workswithagents.dev/sdk/)
- Specs: [workswithagents.dev/specs/](https://workswithagents.dev/specs/)
- Python: [pypi.org/project/workswithagents](https://pypi.org/project/workswithagents) (submitting soon)
