analyze • AI Agent SDK

analyze: Analyze prompt and recommend initial stage.

analyze

Method

</div>

This is a method of the EscalationPipeline class in the pipeline module.

Analyze prompt and recommend initial stage.

Signature

python
def analyze(prompt: str, context: Optional[Dict[str, Any]]) -> EscalationStage

Parameters

ParamField str

User prompt

ParamField Optional

Optional context (workspace, history, etc.)

Returns

ResponseField EscalationStage

Recommended starting stage

Uses

  • analyze
  • recommend_stage

Used By

Source

View on GitHub

praisonaiagents/escalation/pipeline.py at line 76