The rationale is that we are likely to change the AgentStepResponse in the future and we want to be able to handle the legacy response. This is a temporary solution to avoid breaking changes

Fields

replay
UnionType[bytes, None]
required

The session replay in .webp format

agent_id
str
required

The ID of the agent

created_at
datetime
required

The creation time of the agent

session_id
str
required

The ID of the session

status
AgentStatus
required

The status of the agent (active or closed)

closed_at
UnionType[datetime, None]
required

The closing time of the agent

saved
bool
required

Whether the agent is saved as a workflow

task
str
required

The task that the agent is currently running

url
UnionType[str, None]
required

The URL that the agent started on

success
UnionType[bool, None]
required

Whether the agent task was successful. None if the agent is still running

answer
UnionType[str, None]
required

The answer to the agent task. None if the agent is still running

steps
list[Dict[str, Any]]
required

Module

notte_sdk.endpoints.agents