Retrieve Conversation Stream
client.conversations.messages.stream(stringconversationID, MessageStreamParams { agent_id, batch_size, include_pings, 2 more } body?, RequestOptionsoptions?): MessageStreamResponse | Stream<LettaStreamingResponse>
/v1/conversations/{conversation_id}/stream
Resume the stream for the most recent active run in a conversation.
This endpoint allows you to reconnect to an active background stream for a conversation, enabling recovery from network interruptions.
Agent-direct mode: Pass conversation_id="default" with agent_id in request body to retrieve the stream for the agent's most recent active run.
Deprecated: Passing an agent ID as conversation_id still works but will be removed.
Parameters
Returns
MessageStreamResponse = unknown
Retrieve Conversation Stream
import Letta from '@letta-ai/letta-client';
const client = new Letta({
apiKey: process.env['LETTA_API_KEY'], // This is the default and can be omitted
});
const response = await client.conversations.messages.stream('default');
console.log(response);
{}
Returns Examples
{}