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

# Query Result • Rust AI Agent SDK

> QueryResult: Query result.

# QueryResult

> Defined in the [**knowledge**](../modules/knowledge) module.

<Badge color="orange">Rust AI Agent SDK</Badge>

Query result.

## Fields

| Name      | Type                          | Description      |
| --------- | ----------------------------- | ---------------- |
| `answer`  | `String`                      | Answer text      |
| `sources` | `Vec&lt;SearchResultItem&gt;` | Source documents |
| `mode`    | `QueryMode`                   | Query mode used  |

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-rust/praisonai/src/knowledge/mod.rs#L521">
  `praisonai/src/knowledge/mod.rs` at line 521
</Card>

***

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