Reconnection
Survive a dropped stream with backoff and buffered writes
Node
Python
The Node SDK has a built-in reconnect loop on both connectWithRetry() and createConversationStream(). It retries with full-jitter exponential backoff and buffers writes until the stream is back.
ReconnectOptions (used by connectWithRetry() and createConversationStream())
Next steps
- The conversation stream: the stream this reconnects
- Worked examples:
connectWithRetryin a full agent