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

# Search Result Item • Rust AI Agent SDK

> SearchResultItem: A single search result item.

# SearchResultItem

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

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

A single search result item.

## Fields

| Name         | Type                   | Description                             |
| ------------ | ---------------------- | --------------------------------------- |
| `id`         | `String`               | Result ID                               |
| `text`       | `String`               | Result text content                     |
| `score`      | `f32`                  | Relevance score                         |
| `metadata`   | `HashMap&lt;String`    | Metadata (always a HashMap, never None) |
| `source`     | `Option&lt;String&gt;` | Source                                  |
| `filename`   | `Option&lt;String&gt;` | Filename                                |
| `created_at` | `Option&lt;u64&gt;`    | Creation timestamp                      |
| `updated_at` | `Option&lt;u64&gt;`    | Update timestamp                        |

## Methods

### `new`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn new(id: impl Into<String>, text: impl Into<String>, score: f32) -> Self
```

Create a new search result item

**Parameters:**

| Name    | Type                      |
| ------- | ------------------------- |
| `id`    | `impl Into&lt;String&gt;` |
| `text`  | `impl Into&lt;String&gt;` |
| `score` | `f32`                     |

## Source

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

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Web Search" icon="search" href="/docs/rust/web-search" />

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