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

# Agent with Tools

> Give an AwsBedrock agent web search with WebSearchTools.

## Code

```python tool_use.py theme={null}
from agno.agent import Agent
from agno.models.aws import AwsBedrock
from agno.tools.websearch import WebSearchTools

agent = Agent(
    model=AwsBedrock(id="us.anthropic.claude-haiku-4-5-20251001-v1:0"),
    tools=[WebSearchTools()],
    markdown=True,
)
agent.print_response("Whats happening in France?", stream=True)
```

## Usage

<Snippet file="create-venv-step.mdx" />

**1. Set your AWS Credentials**

```bash theme={null}
export AWS_ACCESS_KEY_ID=***
export AWS_SECRET_ACCESS_KEY=***
export AWS_REGION=***
```

**2. Install dependencies**

```bash theme={null}
uv pip install -U boto3 ddgs agno
```

**3. Run Agent**

```bash theme={null}
python tool_use.py
```


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