WorkflowRunOutput Attributes

ParameterTypeDefaultDescription
contentOptional[Union[str, Dict[str, Any], List[Any], BaseModel, Any]]NoneMain content/output from the workflow execution
content_typestr"str"Type of the content (e.g., "str", "json", etc.)
workflow_idOptional[str]NoneUnique identifier of the executed workflow
workflow_nameOptional[str]NoneName of the executed workflow
run_idOptional[str]NoneUnique identifier for this specific run
session_idOptional[str]NoneSession UUID associated with this run
imagesOptional[List[ImageArtifact]]NoneList of image artifacts generated
videosOptional[List[VideoArtifact]]NoneList of video artifacts generated
audioOptional[List[AudioArtifact]]NoneList of audio artifacts generated
response_audioOptional[AudioResponse]NoneAudio response from the workflow
step_resultsList[Union[StepOutput, List[StepOutput]]][]Actual step execution results as StepOutput objects
step_executor_runsOptional[List[Union[RunOutput, TeamRunOutput]]]NoneStore agent/team responses separately with parent_run_id references
eventsOptional[List[WorkflowRunOutputEvent]]NoneEvents captured during workflow execution
metricsOptional[WorkflowMetrics]NoneWorkflow metrics aggregated from all steps
metadataOptional[Dict[str, Any]]NoneAdditional metadata stored with the response
created_atintint(time())Unix timestamp when the response was created
statusRunStatusRunStatus.pendingCurrent status of the workflow run

WorkflowRunOutputEvent Types and Attributes

BaseWorkflowRunOutputEvent Attributes

ParameterTypeDefaultDescription
created_atintint(time())Unix timestamp when the event was created
eventstr""Type of the event (e.g., "WorkflowStarted")
workflow_idOptional[str]NoneUnique identifier of the workflow
workflow_nameOptional[str]NoneName of the workflow
session_idOptional[str]NoneSession UUID associated with the workflow
run_idOptional[str]NoneUnique identifier for the workflow run
step_idOptional[str]NoneUnique identifier for the current step
parent_step_idOptional[str]NoneUnique identifier for the parent step (for nested steps)

WorkflowStartedEvent Attributes

ParameterTypeDefaultDescription
eventstrWorkflowRunEvent.workflow_started.valueEvent type identifier
Inherits all fields from BaseWorkflowRunOutputEvent

WorkflowCompletedEvent Attributes

ParameterTypeDefaultDescription
eventstrWorkflowRunEvent.workflow_completed.valueEvent type identifier
contentOptional[Any]NoneFinal output content from the workflow
content_typestr"str"Type of the content
step_resultsList[StepOutput][]List of all step execution results
metadataOptional[Dict[str, Any]]NoneAdditional metadata from workflow execution
Inherits all fields from BaseWorkflowRunOutputEvent

WorkflowCancelledEvent Attributes

ParameterTypeDefaultDescription
eventstrWorkflowRunEvent.workflow_cancelled.valueEvent type identifier
reasonOptional[str]NoneReason for workflow cancellation
is_cancelledboolTrueProperty indicating the workflow was cancelled
Inherits all fields from BaseWorkflowRunOutputEvent

StepStartedEvent Attributes

ParameterTypeDefaultDescription
eventstrWorkflowRunEvent.step_started.valueEvent type identifier
step_nameOptional[str]NoneName of the step being started
step_indexOptional[Union[int, tuple]]NoneIndex or position of the step
Inherits all fields from BaseWorkflowRunOutputEvent

StepCompletedEvent Attributes

ParameterTypeDefaultDescription
eventstrWorkflowRunEvent.step_completed.valueEvent type identifier
step_nameOptional[str]NoneName of the step that completed
step_indexOptional[Union[int, tuple]]NoneIndex or position of the step
contentOptional[Any]NoneContent output from the step
content_typestr"str"Type of the content
imagesOptional[List[ImageArtifact]]NoneImage artifacts from the step
videosOptional[List[VideoArtifact]]NoneVideo artifacts from the step
audioOptional[List[AudioArtifact]]NoneAudio artifacts from the step
response_audioOptional[AudioResponse]NoneAudio response from the step
step_responseOptional[StepOutput]NoneComplete step execution result object
Inherits all fields from BaseWorkflowRunOutputEvent

ConditionExecutionStartedEvent Attributes

ParameterTypeDefaultDescription
eventstrWorkflowRunEvent.condition_execution_started.valueEvent type identifier
step_nameOptional[str]NoneName of the condition step
step_indexOptional[Union[int, tuple]]NoneIndex or position of the condition
condition_resultOptional[bool]NoneResult of the condition evaluation
Inherits all fields from BaseWorkflowRunOutputEvent

ConditionExecutionCompletedEvent Attributes

ParameterTypeDefaultDescription
eventstrWorkflowRunEvent.condition_execution_completed.valueEvent type identifier
step_nameOptional[str]NoneName of the condition step
step_indexOptional[Union[int, tuple]]NoneIndex or position of the condition
condition_resultOptional[bool]NoneResult of the condition evaluation
executed_stepsOptional[int]NoneNumber of steps executed based on condition
step_resultsList[StepOutput][]Results from executed steps
Inherits all fields from BaseWorkflowRunOutputEvent

ParallelExecutionStartedEvent Attributes

ParameterTypeDefaultDescription
eventstrWorkflowRunEvent.parallel_execution_started.valueEvent type identifier
step_nameOptional[str]NoneName of the parallel step
step_indexOptional[Union[int, tuple]]NoneIndex or position of the parallel step
parallel_step_countOptional[int]NoneNumber of steps to execute in parallel
Inherits all fields from BaseWorkflowRunOutputEvent

ParallelExecutionCompletedEvent Attributes

ParameterTypeDefaultDescription
eventstrWorkflowRunEvent.parallel_execution_completed.valueEvent type identifier
step_nameOptional[str]NoneName of the parallel step
step_indexOptional[Union[int, tuple]]NoneIndex or position of the parallel step
parallel_step_countOptional[int]NoneNumber of steps executed in parallel
step_resultsList[StepOutput]field(default_factory=list)Results from all parallel steps
Inherits all fields from BaseWorkflowRunOutputEvent

LoopExecutionStartedEvent Attributes

ParameterTypeDefaultDescription
eventstrWorkflowRunEvent.loop_execution_started.valueEvent type identifier
step_nameOptional[str]NoneName of the loop step
step_indexOptional[Union[int, tuple]]NoneIndex or position of the loop
max_iterationsOptional[int]NoneMaximum number of iterations allowed
Inherits all fields from BaseWorkflowRunOutputEvent

LoopIterationStartedEvent Attributes

ParameterTypeDefaultDescription
eventstrWorkflowRunEvent.loop_iteration_started.valueEvent type identifier
step_nameOptional[str]NoneName of the loop step
step_indexOptional[Union[int, tuple]]NoneIndex or position of the loop
iterationint0Current iteration number
max_iterationsOptional[int]NoneMaximum number of iterations allowed
Inherits all fields from BaseWorkflowRunOutputEvent

LoopIterationCompletedEvent Attributes

ParameterTypeDefaultDescription
eventstrWorkflowRunEvent.loop_iteration_completed.valueEvent type identifier
step_nameOptional[str]NoneName of the loop step
step_indexOptional[Union[int, tuple]]NoneIndex or position of the loop
iterationint0Current iteration number
max_iterationsOptional[int]NoneMaximum number of iterations allowed
iteration_resultsList[StepOutput][]Results from this iteration
should_continueboolTrueWhether the loop should continue
Inherits all fields from BaseWorkflowRunOutputEvent

LoopExecutionCompletedEvent Attributes

ParameterTypeDefaultDescription
eventstrWorkflowRunEvent.loop_execution_completed.valueEvent type identifier
step_nameOptional[str]NoneName of the loop step
step_indexOptional[Union[int, tuple]]NoneIndex or position of the loop
total_iterationsint0Total number of iterations completed
max_iterationsOptional[int]NoneMaximum number of iterations allowed
all_resultsList[List[StepOutput]][]Results from all iterations
Inherits all fields from BaseWorkflowRunOutputEvent

RouterExecutionStartedEvent Attributes

ParameterTypeDefaultDescription
eventstrWorkflowRunEvent.router_execution_started.valueEvent type identifier
step_nameOptional[str]NoneName of the router step
step_indexOptional[Union[int, tuple]]NoneIndex or position of the router
selected_stepsList[str]field(default_factory=list)Names of steps selected by the router
Inherits all fields from BaseWorkflowRunOutputEvent

RouterExecutionCompletedEvent Attributes

ParameterTypeDefaultDescription
eventstrWorkflowRunEvent.router_execution_completed.valueEvent type identifier
step_nameOptional[str]NoneName of the router step
step_indexOptional[Union[int, tuple]]NoneIndex or position of the router
selected_stepsList[str]field(default_factory=list)Names of steps that were selected
executed_stepsOptional[int]NoneNumber of steps executed
step_resultsList[StepOutput]field(default_factory=list)Results from executed steps
Inherits all fields from BaseWorkflowRunOutputEvent

StepsExecutionStartedEvent Attributes

ParameterTypeDefaultDescription
eventstrWorkflowRunEvent.steps_execution_started.valueEvent type identifier
step_nameOptional[str]NoneName of the steps group
step_indexOptional[Union[int, tuple]]NoneIndex or position of the steps group
steps_countOptional[int]NoneNumber of steps in the group
Inherits all fields from BaseWorkflowRunOutputEvent

StepsExecutionCompletedEvent Attributes

ParameterTypeDefaultDescription
eventstrWorkflowRunEvent.steps_execution_completed.valueEvent type identifier
step_nameOptional[str]NoneName of the steps group
step_indexOptional[Union[int, tuple]]NoneIndex or position of the steps group
steps_countOptional[int]NoneNumber of steps in the group
executed_stepsOptional[int]NoneNumber of steps actually executed
step_resultsList[StepOutput]field(default_factory=list)Results from all executed steps
Inherits all fields from BaseWorkflowRunOutputEvent

StepOutputEvent Attributes

ParameterTypeDefaultDescription
eventstr"StepOutput"Event type identifier
step_nameOptional[str]NoneName of the step that produced output
step_indexOptional[Union[int, tuple]]NoneIndex or position of the step
step_outputOptional[StepOutput]NoneComplete step execution result
Inherits all fields from BaseWorkflowRunOutputEvent
Properties (read-only):
contentOptional[Union[str, Dict[str, Any], List[Any], BaseModel, Any]]-Content from the step output
imagesOptional[List[ImageArtifact]]-Images from the step output
videosOptional[List[VideoArtifact]]-Videos from the step output
audioOptional[List[AudioArtifact]]-Audio from the step output
successbool-Whether the step succeeded
errorOptional[str]-Error message if step failed
stopbool-Whether the step requested early termination