DEV Community

Vilius
Vilius

Posted on • Originally published at workswithagents.dev

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

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)
Enter fullscreen mode Exit fullscreen mode

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);
Enter fullscreen mode Exit fullscreen mode

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)
Enter fullscreen mode Exit fullscreen mode

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)?;
Enter fullscreen mode Exit fullscreen mode

Shell

source workswithagents.sh
wwa_trust_get "target-agent"
wwa_compliance_validate "dtac-v2.1" '{"verb":"deploy","reversible":true}'
Enter fullscreen mode Exit fullscreen mode

C

using WorksWithAgents;

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

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.

Top comments (0)