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

# Mistral Small

> Query Mistral Small with WebSearchTools and stream a news summary.

```python mistral_small.py theme={null}
"""Run `uv pip install ddgs` to install dependencies."""

from agno.agent import Agent
from agno.models.mistral import MistralChat
from agno.tools.websearch import WebSearchTools

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

agent = Agent(
    model=MistralChat(id="mistral-small-latest"),
    tools=[WebSearchTools()],
    markdown=True,
)
agent.print_response("Tell me about mistrall small, any news", stream=True)

# ---------------------------------------------------------------------------
# Run Agent
# ---------------------------------------------------------------------------

if __name__ == "__main__":
    pass
```

## Run the Example

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

**1. Install dependencies**

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

**2. Export your Mistral API key**

```bash Mac/Linux theme={null}
export MISTRAL_API_KEY="your_mistral_api_key_here"
```

```bash Windows theme={null}
$Env:MISTRAL_API_KEY="your_mistral_api_key_here"
```

**3. Run the example**

Save the code above as `mistral_small.py`, then run:

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

Full source: [cookbook/90\_models/mistral/mistral\_small.py](https://github.com/agno-agi/agno/blob/v3.0.4/cookbook/90_models/mistral/mistral_small.py)


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