Skip to content

Get Agent Task Tracker

tracker.retrieve(strtracker_id) -> AgentTaskTracker
GET/tracker/{tracker_id}

Get agent task tracker by tracker ID

ParametersExpand Collapse
tracker_id: str
ReturnsExpand Collapse
class AgentTaskTracker: …
id: str

The UUID of the agent task tracker

agent_id: str

The UUID of the agent

created_at: datetime

When the agent task tracker was created

formatdate-time
task_id: str

The UUID of the task

last_processed_event_id: Optional[str]

The last processed event ID

status: Optional[str]

Processing status

status_reason: Optional[str]

Optional status reason

updated_at: Optional[datetime]

When the agent task tracker was last updated

formatdate-time

Get Agent Task Tracker

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
)
agent_task_tracker = client.tracker.retrieve(
    "tracker_id",
)
print(agent_task_tracker.id)
{
  "id": "id",
  "agent_id": "agent_id",
  "created_at": "2019-12-27T18:11:19.117Z",
  "task_id": "task_id",
  "last_processed_event_id": "last_processed_event_id",
  "status": "status",
  "status_reason": "status_reason",
  "updated_at": "2019-12-27T18:11:19.117Z"
}
Returns Examples
{
  "id": "id",
  "agent_id": "agent_id",
  "created_at": "2019-12-27T18:11:19.117Z",
  "task_id": "task_id",
  "last_processed_event_id": "last_processed_event_id",
  "status": "status",
  "status_reason": "status_reason",
  "updated_at": "2019-12-27T18:11:19.117Z"
}