The Execution Object

The Execution Object

class Execution:
    id: str
    agent_id: str
    agent_executor_job_id: Optional[str]
    status: Literal["success", "in_progress", "failure", "termination"]
    start: str
    finish: Optional[str]
    logs: List[Dict[str, str]]
    return_value: JSON
  • id: Unique identifier for the execution.

  • agent_id: The ID of the associated agent.

  • agent_executor_job_id: The ID of the related agent executor job (if applicable).

  • status: The current state of the execution (success, in_progress, failure, termination).

  • start: Timestamp of when the execution began.

  • finish: Optional timestamp of when the execution completed.

  • logs: A list of dictionaries containing log entries related to the execution.

  • return_value: The returned output of the execution, in JSON format.

Note: JSON is a flexible alias that can represent nested dictionaries, lists, or primitive data types.

Last updated