Skip to main content

StageContext

Defined in the types module.
AI Agent Context passed between escalation stages. Maintains state across stage transitions.

Properties

EscalationStage
No description available.
str
No description available.
Set[EscalationSignal]
No description available.
List
No description available.
List
No description available.
str
No description available.
Set[str]
No description available.
Set[str]
No description available.
int
No description available.
int
No description available.
float
No description available.
List[str]
No description available.
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 GitHub

praisonaiagents/escalation/types.py at line 146

Context Concept

Context Management

Context Strategies