Skip to content
  • Auto
  • Light
  • Dark
DiscordForumGitHubSign up
View as Markdown
Copy Markdown

Open in Claude
Open in ChatGPT

Retrieve Stream

runs.messages.stream(strrun_id, MessageStreamParams**kwargs) -> object
post/v1/runs/{run_id}/stream

Retrieve Stream

ParametersExpand Collapse
run_id: str
batch_size: Optional[int]

Number of entries to read per batch.

include_pings: Optional[bool]

Whether to include periodic keepalive ping messages in the stream to prevent connection timeouts.

poll_interval: Optional[float]

Seconds to wait between polls when no new data.

starting_after: Optional[int]

Sequence id to use as a cursor for pagination. Response will start streaming after this chunk sequence id

ReturnsExpand Collapse
object
Retrieve Stream
from letta_client import Letta

client = Letta(
    api_key="My API Key",
)
response = client.runs.messages.stream(
    run_id="run_id",
)
print(response)
{}
Returns Examples
{}