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

> search: Search for relevant content.

# search

Method

> This is a method of the [**KnowledgeStoreProtocol**](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/KnowledgeStoreProtocol.md) class in the [**protocols**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/protocols.md) module.

Search for relevant content.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def search(query: str) -> SearchResult
```

## Parameters

**query** `str` *required*

Search query string

### Returns

**Returns** `SearchResult`

SearchResult with normalized items (metadata always dict)

## Used By

* [`get_version`](../functions/get_version)
* [`process_task_context`](../functions/process_task_context)
* [`evaluate_condition`](../functions/evaluate_condition)
* [`Knowledge.search`](../functions/Knowledge-search)
* [`safe_mem0_search`](../functions/safe_mem0_search)

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/knowledge/protocols.py#L31)
>
> `praisonaiagents/knowledge/protocols.py` at line 31


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.