> ## 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.

# Detect Strategy • Rust AI Agent SDK

> detect_strategy: Detect the best expansion strategy for a prompt

# detect\_strategy

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

> This is a method of the [**PromptExpanderAgent**](../classes/PromptExpanderAgent) class in the [**specialized\_agents**](../modules/specialized_agents) module.

Detect the best expansion strategy for a prompt

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def detect_strategy(&self, prompt: &str) -> ExpandStrategy
```

## Parameters

<ParamField query="prompt" type="&str" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="ExpandStrategy">
  The result of the operation.
</ResponseField>
