WorkflowRunResponse Attributes

ParameterTypeDefaultDescription
contentOptional[Any]NoneMain content/output from the workflow execution
content_typestr"str"Type of the content (e.g., "str", "json", etc.)
metricsOptional[Dict[str, Any]]NonePerformance and execution metrics
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_responsesList[Union[StepOutput, List[StepOutput]]][]Actual step execution results as StepOutput objects
eventsOptional[List[WorkflowRunResponseEvent]]NoneEvents captured during workflow execution
workflow_metricsOptional[WorkflowMetrics]NoneAggregated metrics from all workflow steps
extra_dataOptional[Dict[str, Any]]NoneAdditional data stored with the response
created_atintint(time())Unix timestamp when the response was created
statusRunStatusRunStatus.pendingCurrent status of the workflow run

WorkflowRunResponseEvent Types and Attributes

BaseWorkflowRunResponseEvent 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

WorkflowStartedEvent Attributes

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

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_responsesList[StepOutput][]List of all step execution results
extra_dataOptional[Dict[str, Any]]NoneAdditional data from workflow execution
Inherits all fields from BaseWorkflowRunResponseEvent

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 BaseWorkflowRunResponseEvent

StepCompletedEvent Attributes

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

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 BaseWorkflowRunResponseEvent

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 BaseWorkflowRunResponseEvent

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 BaseWorkflowRunResponseEvent

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][]Results from all parallel steps
Inherits all fields from BaseWorkflowRunResponseEvent

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 BaseWorkflowRunResponseEvent

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 BaseWorkflowRunResponseEvent

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 BaseWorkflowRunResponseEvent

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 BaseWorkflowRunResponseEvent

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][]Names of steps selected by the router
Inherits all fields from BaseWorkflowRunResponseEvent

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][]Names of steps that were selected
executed_stepsOptional[int]NoneNumber of steps executed
step_resultsList[StepOutput][]Results from executed steps
Inherits all fields from BaseWorkflowRunResponseEvent

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 BaseWorkflowRunResponseEvent

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][]Results from all executed steps
Inherits all fields from BaseWorkflowRunResponseEvent

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 BaseWorkflowRunResponseEvent
Properties (read-only):
contentOptional[str]-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