> ## Documentation Index
> Fetch the complete documentation index at: https://agno-v2-docs-scavio-google-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

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

  <Step title="Install dependencies">
    ```bash theme={null}
    uv pip install -U agno ddgs mistralai
    ```
  </Step>

  <Step title="Export your Mistral API key">
    <CodeGroup>
      ```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"
      ```
    </CodeGroup>
  </Step>

  <Step title="Run the example">
    Save the code above as `mistral_small.py`, then run:

    ```bash theme={null}
    python mistral_small.py
    ```
  </Step>
</Steps>

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