← All integrations

AutoGen integration

Plain-function tool registered with AutoGen. The function calls the Ontario x402 endpoint directly; pair with an x402 client for automatic 402 retry.

Reference docs: https://microsoft.github.io/autogen/  |  Machine-readable: /integrations/autogen.json

Snippet

import httpx


def ontario_agent_trust_scan(target_url: str) -> dict:
    """Scan an AI agent surface for trust signals. 0.01 USDC via x402."""
    r = httpx.post(
        "https://ontarioprotocol.com/api/x402/agent-trust-scan",
        json={"target_url": target_url},
        timeout=30,
    )
    r.raise_for_status()
    return r.json()


# Then register as a tool with your AutoGen agent.

Endpoints wired

Want to test without paying? Use POST /api/demo/agent-trust-scan — free, rate-limited, same response shape.