# Prints 200 when the pipeline's own OAuth client gets a Sonnet 5 answer, else the failure class.
import asyncio, os, sys
from quber.agents._oauth_gate import make_oauth_anthropic_model
from pydantic_ai import Agent
async def main():
    try:
        r = await Agent(make_oauth_anthropic_model("claude-sonnet-5", os.environ["ANTHROPIC_AUTH_TOKEN"]), system_prompt="Reply with one word.").run("Say ok.")
        print(200)
    except Exception as e:
        print(getattr(e, "status_code", type(e).__name__))
asyncio.run(main())
