Complete API reference for the Task class including all methods and properties
id
agent_id
status
input
result
events_streaming
created_at
updated_at
output_format
output_schema
aload(task_id, configuration=None)
task_id
(str): Unique identifier for the taskconfiguration
(Optional[Configuration]): SDK configurationTask
object with full details.
Example:
ModuleException
: If the task is not found or access is denied.load(task_id, configuration=None)
aload()
Returns: Complete Task
object.
Example:
aset_status(status)
status
(AgentExecutionStatus): New status for the taskset_status(status)
aset_status()
Example:
asave()
Task
object with server-side changes.
Example:
ModuleException
: If the save operation fails.save()
Task
object.
Example:
astop()
Task
object with updated status.
Example:
ModuleException
: If the task cannot be stopped.stop()
Task
object.
Example:
aevents()
TaskUpdateEvent
objects.
Example:
events_streaming=True
when creating the task.
events()
TaskUpdateEvent
objects.
Example:
Agent
: Agent that creates and manages tasks