> ## Documentation Index
> Fetch the complete documentation index at: https://docs.camel-ai.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Camel.agents.search agent

<a id="camel.agents.search_agent" />

<a id="camel.agents.search_agent.SearchAgent" />

## SearchAgent

```python theme={"system"}
class SearchAgent(ChatAgent):
```

An agent that summarizes text based on a query and evaluates the
relevance of an answer.

**Parameters:**

* **model** (BaseModelBackend, optional): The model backend to use for generating responses. (default: :obj:`OpenAIModel` with `GPT_4O_MINI`)

<a id="camel.agents.search_agent.SearchAgent.__init__" />

### **init**

```python theme={"system"}
def __init__(self, model: Optional[BaseModelBackend] = None):
```

<a id="camel.agents.search_agent.SearchAgent.summarize_text" />

### summarize\_text

```python theme={"system"}
def summarize_text(self, text: str, query: str):
```

Summarize the information from the text, base on the query.

**Parameters:**

* **text** (str): Text to summarize.
* **query** (str): What information you want.

**Returns:**

str: Strings with information.

<a id="camel.agents.search_agent.SearchAgent.continue_search" />

### continue\_search

```python theme={"system"}
def continue_search(self, query: str, answer: str):
```

Ask whether to continue search or not based on the provided answer.

**Parameters:**

* **query** (str): The question.
* **answer** (str): The answer to the question.

**Returns:**

bool: `True` if the user want to continue search, `False`
otherwise.
