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

# Primary Query • Rust AI Agent SDK

> primary_query: Get the primary rewritten query

# primary\_query

<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 [**specialized\_agents**](../modules/specialized_agents) module.

Get the primary rewritten query

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def primary_query(&self) -> Option<&str>
```

### Returns

<ResponseField name="Returns" type="Option<&str>">
  The result of the operation.
</ResponseField>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Query" icon="magnifying-glass" href="/docs/rust/query" />

  <Card title="Rust RAG" icon="magnifying-glass" href="/docs/rust/rag" />
</CardGroup>
