> ## 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 Short Term • Rust AI Agent SDK

> search_short_term: Search short-term memory

# search\_short\_term

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

> This is a method of the [**MemoryAdapter**](../classes/MemoryAdapter) class in the [**memory**](../modules/memory) module.

Search short-term memory

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
async def search_short_term(&self, query: &str, limit: usize) -> Result<Vec<Message>>
```

## Parameters

<ParamField query="query" type="&str" required={true}>
  No description available.
</ParamField>

<ParamField query="limit" type="usize" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="Result<Vec<Message>>">
  The result of the operation.
</ResponseField>

***

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