AgentTask Objects

class AgentTask(WorkflowTask)
Represents a task in an Agent stage. Attributes
  • status (AgentTaskStatus): The current status of the task.
  • data_hash (UUID): Unique ID for the data unit.
  • data_title (str): Name of the data unit.
  • label_branch_name (str): Name of the label branch.
  • assignee (Optional[str]): User assigned to the task.
  • last_actioned_by (Optional[str]): User who last acted on the task.
Allowed actions
  • proceed: Advance the task along a specific pathway from the current stage.
  • move: Move the task directly to another stage in the workflow.

proceed

def proceed(pathway_name: Optional[str] = None,
            pathway_uuid: Optional[Union[UUID, str]] = None,
            *,
            bundle: Optional[Bundle] = None) -> None
Advances the task along a pathway from the current stage. Exactly one of pathway_name or pathway_uuid must be provided to specify the pathway to take. Parameters pathway_name (Optional[str]): Name of the pathway to follow. pathway_uuid (Optional[Union[UUID, str]]): Unique identifier of the pathway to follow. bundle (Optional[Bundle]): Optional bundle to associate with the action. Raises ValueError: If neither pathway_name nor pathway_uuid is provided.

move

def move(*,
         destination_stage_uuid: UUID,
         bundle: Optional[Bundle] = None) -> None
Moves the task from its current stage to another stage. Parameters destination_stage_uuid (UUID): Unique identifier of the stage to move the task to. bundle (Optional[Bundle]): Optional bundle to associate with the move action. Returns None