Skip to content

Stream Task Events by ID

tasks.stream_events(strtask_id) -> object
GET/tasks/{task_id}/stream

Stream events for a task by its unique ID.

ParametersExpand Collapse
task_id: str
ReturnsExpand Collapse
object

Stream Task Events by ID

import os
from agentex import Agentex

client = Agentex(
    api_key=os.environ.get("AGENTEX_SDK_API_KEY"),  # This is the default and can be omitted
)
for task in client.tasks.stream_events(
    "task_id",
):
  print(task)
{}
Returns Examples
{}