onContent? | (delta, conversationId) => void | Callback for content chunks (streaming) |
onDone? | (usage, conversationId) => void | Callback when message is complete |
onError? | (error, code, conversationId) => void | Callback for errors |
onEvent? | (event) => void | Callback for all events |
onProgress? | (step, message, conversationId) => void | Callback for progress updates |
onQueryResult? | (query, summary, rowCount, data, conversationId) => void | Callback for query results |
reconnectAttempts? | number | Reconnect attempts (0 = no reconnect) |
reconnectDelay? | number | Reconnect delay in ms |
token? | string | JWT token for authentication |
wsUrl? | string | WebSocket URL (defaults to ws://host/ai/ws) |