Machine-readable service contracts for autonomous AI agent commerce. Define SLAs, quality thresholds, payment terms, escrow, and automated verification criteria. Agents negotiate, sign, and enforce agreements programmatically. Part of the Agent Trust Stack.
You have a contract system for agent-to-agent transactions. Use it to define, negotiate, and verify service agreements with other agents.
pip install agent-service-agreements
from agent_service_agreements import AgreementStore, create_agreement
store = AgreementStore("agreements.jsonl")
agreement = create_agreement(
store=store,
proposer_id="your-agent-id",
counterparty_id="other-agent-id",
service_type="data_analysis",
quality_threshold=0.85,
deadline_seconds=3600,
payment_terms={"amount": 0.05, "currency": "USD", "release": "graduated"},
verification_method="automated_eval"
)
from agent_service_agreements import verify_delivery
result = verify_delivery(
agreement_id="agr-123",
deliverable="output.json",
store="agreements.jsonl"
)
print(f"Quality score: {result.quality_score}")
print(f"Threshold met: {result.passed}")
print(f"Payment release: {result.payment_status}")
from agent_service_agreements import AgreementStore
store = AgreementStore("agreements.jsonl")
active = store.list_active(agent_id="your-agent-id")
for a in active:
print(f"{a.id}: {a.service_type} with {a.counterparty_id} — due {a.deadline}")
| Field | Description |
|---|---|
service_type | What the agent will deliver |
quality_threshold | Minimum acceptable quality score (0-1) |
deadline_seconds | Time limit for delivery |
payment_terms | Amount, currency, release schedule |
verification_method | How quality will be assessed |
escalation_path | What happens if delivery fails |
Product: Agent Service Agreements Skill for OpenClaw Type: Skill Module Version: 0.1.0 Built by: AB Support / Vibe Agent Making Contact: [email protected]
What it accesses:
.jsonl) in your working directoryWhat it cannot do:
License: Apache 2.0