Key Capabilities
Standard Chat WS
A simple wrapper around the Chat Completion API for persistent, multi-turn text conversations.
Realtime Protocol
OpenAI-compatible Realtime API for ultra-low latency text (Speech coming soon).
Session Recovery
Traceport supports advanced session recovery for the Realtime API. When a client reconnects using a previously activesession_id, the Gateway automatically:
- Restores State: Automatically restores conversation history and configurations (Instructions/Tools) from the cache.
- Synchronizes State: Emits a
session.createdevent with the restored state immediately upon connection. - Tool Continuity: (Upcoming) Ensures that in-flight workflows or tools are re-associated with the session.
Error Handling
WebSocket connections use standard closing codes to communicate gateway and provider errors:| Code | Message | Description |
|---|---|---|
4001 | gateway_error | A generic error occurred in the underlying AI provider. |
401 | unauthorized | The provided x-api-key is missing or invalid. |
404 | not_found | The specified session ID or model was not found. |

