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
def analyze(prompt: str, context: Optional[Dict[str, Any]]) -> EscalationStageParameters
ParamField
strUser prompt
ParamField
OptionalOptional context (workspace, history, etc.)
Returns
ResponseField
EscalationStageRecommended starting stage
Uses
analyzerecommend_stage
Used By
Agent.analyze_promptAgent.get_recommended_stageAutonomyTrigger.analyzeVisionAgent.describeVisionAgent.extract_text
Source
View on GitHubpraisonaiagents/escalation/pipeline.py at line 76