Step End • AI Agent SDK
step_end: A flow step ends: “completed“, “failed“, “skipped“ or “cached“.
step_end
Method
</div>
This is a method of the ContextTraceEmitter class in the context_events module.
A flow step ends: `completed, failed, skipped or cached`.
`variables are the workflow variables the step itself set (a handler's StepResult.variables`); recorded redacted so a re-run that reuses the step can restore them.
Signature
def step_end(name: Optional[str], status: str, duration_ms: float, output: Any, route: Optional[str], node_id: Optional[str], agent: Optional[str], variables: Optional[Dict[str, Any]]) -> NoneParameters
ParamField
Optional[str]No description available.
ParamField
strNo description available.
ParamField
floatNo description available.
ParamField
AnyNo description available.
ParamField
Optional[str]No description available.
ParamField
Optional[str]No description available.
ParamField
Optional[str]No description available.
ParamField
OptionalNo description available.
Uses
ContextEventtime.time
Source
View on GitHubpraisonaiagents/trace/context_events.py at line 1298