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

# All Queries • AI Agent SDK

> all_queries: Returns all queries including original and rewritten.

# all\_queries

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

> This is a method of the [**RewriteResult**](../classes/RewriteResult) class in the [**query\_rewriter\_agent**](../modules/query_rewriter_agent) module.

Returns all queries including original and rewritten.

## Signature

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

### Returns

<ResponseField name="Returns" type="List[str]">
  The result of the operation.
</ResponseField>

## Source

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