Mistral Small
Run a Mistral Small agent with web search tools and streamed output.
Code
from agno.agent import Agent
from agno.models.mistral import MistralChat
from agno.tools.websearch import WebSearchTools
agent = Agent(
model=MistralChat(id="mistral-small-latest"),
tools=[WebSearchTools()],
markdown=True,
)
agent.print_response("Tell me about mistrall small, any news", stream=True)
Usage
Set up your virtual environment
uv venv --python 3.12
source .venv/bin/activateSet your API key
export MISTRAL_API_KEY=xxxInstall dependencies
uv pip install -U mistralai ddgs agnoRun Agent
Save the code above as mistral_small.py, then run:
python mistral_small.py