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

# clarify • AI Agent SDK

> clarify: Generate clarifying questions for a research query.

# clarify

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

> This is a method of the [**DeepResearchAgent**](../classes/DeepResearchAgent) class in the [**deep\_research\_agent**](../modules/deep_research_agent) module.

Generate clarifying questions for a research query.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def clarify(query: str, model: Optional[str]) -> str
```

## Parameters

<ParamField query="query" type="str" required={true}>
  The initial research query
</ParamField>

<ParamField query="model" type="Optional" required={false}>
  Model to use for generating questions
</ParamField>

### Returns

<ResponseField name="Returns" type="str">
  String containing clarifying questions
</ResponseField>

## Uses

* `create`

## Source

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