You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Retrieves a single conversation using its unique identifier. To retrieve
212
212
* all conversations, use {@linkcode getConversations | getConversations()} To filter, sort, or paginate conversations, use {@linkcode listConversations | listConversations()}.
213
213
*
214
+
* This function returns the complete stored conversation including full tool call results, even for large responses (11kb+).
215
+
*
214
216
* @param conversationId - The unique identifier of the conversation.
215
217
* @returns Promise resolving to the conversation, or undefined if not found.
* Establishes a WebSocket connection to receive instant updates when new
323
325
* messages are added to the conversation. Returns an unsubscribe function
324
326
* to clean up the connection.
327
+
*
328
+
* <Note>
329
+
When receiving messages through this function, results from agent tool calls may be truncated if they exceed a certain size (around 11kb). The complete tool results are always saved in storage and can be retrieved by calling {@linkcode getConversation | getConversation()} after the message completes.
330
+
</Note>
325
331
*
326
332
* @param conversationId - The conversation ID to subscribe to.
327
333
* @param onUpdate - Callback function called when the conversation is updated. The callback receives a conversation object with the following properties:
0 commit comments