> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# analyze • AI Agent SDK

> analyze: Analyze prompt and return detected signals.

# analyze

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**AutonomyTrigger**](../classes/AutonomyTrigger) class in the [**autonomy**](../modules/autonomy) module.

Analyze prompt and return detected signals.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def analyze(prompt: str) -> Set[str]
```

## Parameters

<ParamField query="prompt" type="str" required={true}>
  The user prompt to analyze
</ParamField>

### Returns

<ResponseField name="Returns" type="Set[str]">
  Set of signal names (lowercase strings)
</ResponseField>

## Uses

* `analyze`

## Used By

* [`Agent.analyze_prompt`](../functions/Agent-analyze_prompt)
* [`Agent.get_recommended_stage`](../functions/Agent-get_recommended_stage)
* [`AutonomyTrigger.analyze`](../functions/AutonomyTrigger-analyze)
* [`VisionAgent.describe`](../functions/VisionAgent-describe)
* [`VisionAgent.extract_text`](../functions/VisionAgent-extract_text)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/agent/autonomy.py#L279">
  `praisonaiagents/agent/autonomy.py` at line 279
</Card>
