Skip to main content
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]
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]
The closing time of the agent
saved
bool
default:"False"
Whether the agent is saved as a workflow
credit_usage
UnionType[float, None]
Credit usage for the agent. None if the agent is still running
task
str
required
The task that the agent is currently running
url
UnionType[str, None]
The URL that the agent started on
success
UnionType[bool, None]
Whether the agent task was successful. None if the agent is still running
answer
UnionType[str, None]
The answer to the agent task. None if the agent is still running
steps
list[Dict[str, Any]]
required
replay_start_offset
int
required
The start offset of the replay
replay_stop_offset
int
required
The stop offset of the replay

Module

notte_sdk.endpoints.agents
I