Getting Started
Install
Install the AGP SDKs and connect to a reference server.
Official SDKs for TypeScript/Node.js and Python. Both support OAuth 2.0 client credentials out of the box.
npm install @agp-protocol/sdkimport { AGPClient } from "@agp-protocol/sdk";
const client = new AGPClient("https://your-agp-server", {
client_id: "my-agent",
client_secret: "s3cr3t", // tokens fetched automatically
});
const task = await client.registry.createTask({ ... });
const decision = await client.decision.evaluate(task.task_id);pip install agp-sdkfrom agp import AGPClient
client = AGPClient(
"https://your-agp-server",
client_id="my-agent",
client_secret="s3cr3t", # tokens fetched automatically
)
task = client.registry.create_task({ ... })
decision = client.decision.evaluate(task["task_id"])