Move from raw chat completions or a Client SDK to the OpenDunes Agent SDK.
Not yet available. The Agent SDK is tracked to be built — today, use the Client SDKs against the live chat completions API. The docs below describe the intended migration path.
The Agent SDK wraps the raw API with an agent loop: it manages state, runs tools, and applies stop conditions so you don't hand-roll the turn loop.
Replace your manual messages loop with a single callModel:
| Concern | Chat completions | Agent SDK |
|---|---|---|
| Turn loop | You write it | Managed |
| Tool calls | You dispatch + re-send | Dispatched for you |
| State | You track messages | Kept across turns |
| Billing | Per request, in DA | Per request, in DA (unchanged) |