> ## Documentation Index
> Fetch the complete documentation index at: https://phidatainc-studio-tools-doc.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Baidu Search

> Use Baidu Search with Agno Agents.

Retrieve search results from Baidu with Agno Agents. Baidu Search provides access to Baidu's search index for finding relevant information.

```python theme={null}

from agno.agent import Agent
from agno.tools.baidusearch import BaiduSearchTools

# ---------------------------------------------------------------------------
# Create Agent
# ---------------------------------------------------------------------------

agent = Agent(
    tools=[BaiduSearchTools()],
    description="You are a search agent that helps users find the most relevant information using Baidu.",
    instructions=[
        "Given a topic by the user, respond with the 3 most relevant search results about that topic.",
        "Search for 5 results and select the top 3 unique items.",
        "Search in both English and Chinese.",
    ],
)

# ---------------------------------------------------------------------------
# Run Agent
# ---------------------------------------------------------------------------
if __name__ == "__main__":
    agent.print_response("What are the latest advancements in AI?", markdown=True)
```

## Run the Example

```bash theme={null}
# Clone and setup repo
git clone https://github.com/agno-agi/agno.git
cd agno/cookbook/91_tools

# Create and activate virtual environment
./scripts/demo_setup.sh
source .venvs/demo/bin/activate

python baidusearch_tools.py
```

For details, see [Baidu Search cookbook](https://github.com/agno-agi/agno/blob/main/cookbook/91_tools/baidusearch_tools.py).
