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

python
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]]) -> None

Parameters

ParamField Optional[str]

No description available.

ParamField str

No description available.

ParamField float

No description available.

ParamField Any

No description available.

ParamField Optional[str]

No description available.

ParamField Optional[str]

No description available.

ParamField Optional[str]

No description available.

ParamField Optional

No description available.

Uses

  • ContextEvent
  • time.time

Source

View on GitHub

praisonaiagents/trace/context_events.py at line 1298