Usage
- TypeScript
- Python
Response structure
When polling session status, you’ll receive a response with the following fields:boolean
required
true while the session is running, false when completeboolean | null
required
Session outcome:
null while running, true if successful, false if failedobject
Metadata set in the workflow definition
object
Custom metadata you provided when starting the session
array
Metadata for files downloaded during the session
array
Data collected by scraper actions during the session
object | null
Structured output fields from workflow execution.
null while the session is in progress, populated at session close.string | null
A summary of what the agent accomplished.
null while the session is in progress, populated at session close.boolean
true if the session is currently paused (waiting to be resumed), false otherwisestring
The pause key identifier if the session is paused, empty string otherwise
Polling with timeout
For production use, always implement a timeout to prevent infinite polling:- TypeScript
- Python
Monitoring file downloads
Thefile_metadata field updates in real-time as file_metadata are downloaded during the session. You can use this to track download progress:
- TypeScript
- Python
