Stage Context • AI Agent SDK
StageContext: Context passed between escalation stages.
StageContext
Defined in the types module.
AI Agent
Context passed between escalation stages.
Maintains state across stage transitions.
Properties
ResponseField
EscalationStageNo description available.
ResponseField
strNo description available.
ResponseField
Set[EscalationSignal]No description available.
ResponseField
ListNo description available.
ResponseField
ListNo description available.
ResponseField
strNo description available.
ResponseField
Set[str]No description available.
ResponseField
Set[str]No description available.
ResponseField
intNo description available.
ResponseField
intNo description available.
ResponseField
floatNo description available.
ResponseField
List[str]No description available.
ResponseField
Optional[str]No description available.
Methods
add_step()
Add a step to history.
add_tool_result()Add a tool result.
should_escalate()Check if escalation is needed based on current state.
should_deescalate()Check if de-escalation is appropriate.
Source
View on GitHubpraisonaiagents/escalation/types.py at line 146