get_token() before each API call.
What happens if Anti AI is down?
The SDK caches tokens in memory. If Anti AI is temporarily unavailable, your agent can continue using its cached token until it expires. After expiry, the agent will fail to get a new token until Anti AI is back up.
Can I use Anti AI with any AI framework?
Yes. Anti AI works with any framework that can make HTTP requests — CrewAI, LangGraph, LangChain, AutoGen, Semantic Kernel, or your own custom agents.
How do I handle multiple agents in the same process?
Create one OculusClient instance per agent identity: