contracts
March 21, 2026 ยท View on GitHub
Community contract library for AgentContract.
Ready-to-use .contract.yaml files for common agent types. Pick one, adapt it, and enforce it on your agent in minutes.
Use a Contract
pip install agentcontract
curl -O https://raw.githubusercontent.com/agentcontract/contracts/main/customer-support/basic.contract.yaml
from agentcontract import load_contract, enforce
@enforce(load_contract("basic.contract.yaml"))
def run_agent(user_input: str) -> str:
return my_llm.run(user_input)
Available Contracts
| Category | Contract | Description |
|---|---|---|
customer-support/ | basic.contract.yaml | Tier-1 support agent, no PII, escalation policy |
coding-agent/ | basic.contract.yaml | Coding assistant with filesystem access |
research-agent/ | basic.contract.yaml | Research agent with citation requirements |
data-pipeline/ | basic.contract.yaml | Data processing agent with schema validation |
regulated/ | gxp.contract.yaml | GxP/pharma agent (21 CFR Part 11, GAMP5) |
More contracts added weekly. Submit yours.
Contributing
Submit a contract for any agent type:
- Fork this repo
- Create
<category>/<name>.contract.yaml - Add a brief comment header explaining the use case
- Open a PR
Every merged contract is credited to its author. See CONTRIBUTING.md.
License
Apache 2.0 โ Part of the AgentContract open standard.