Advanced Topics
Logging, concurrency, and delivery semantics for production deployments.
Failure modes and delivery
Logging
The SDK uses stdlib logging with a NullHandler - configure it in your app.
Useful loggers: agentduet, agentduet.session_manager_connection, agentduet.voice_session, agentduet.call.
The SDK does not log secrets (API keys, tokens, certs). Connection URLs and call ids may appear for debugging.
Thread safety and concurrency
- Each incoming call and incoming message runs in its own task.
- Heartbeat and reconnect run in background tasks.
- Write ordinary
async/awaitin handlers; the SDK manages lifecycle.
For your own bridge, run model I/O as concurrent tasks and cancel them on hangup.
Cross-node handoff
Serialize only in CallState.NEW. See Sessions and Handoff.
Support
Questions and bug reports: support@agentduet.com. Credentials: agentduet.com.
