Agent SDK
JoyToken Agent SDK is the higher-level runtime layer for agentic workflows. It sits above the Client SDK and gives TypeScript applications a model loop, tool dispatch, stop conditions, usage aggregation, and a JoyToken provider helper.
SDKs
The Agent SDK still keeps business state in your application. JoyToken governs each model call: API key, policy, routing, wallet, usage, and billing.
When to use Agent SDK
Choose the Agent SDK when your application needs a loop, not just one model call.
Quick example
agent.ts