Documentation Index
Fetch the complete documentation index at: https://spacesail.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
This example shows how to use ReasoningTools with a Vercel model.
Code
cookbook/reasoning/tools/vercel_reasoning_tools.py
from agno.agent import Agent
from agno.models.vercel import v0
from agno.tools.duckduckgo import DuckDuckGoTools
from agno.tools.reasoning import ReasoningTools
reasoning_agent = Agent(
model=v0(id="v0-1.0-md"),
tools=[
ReasoningTools(add_instructions=True, add_few_shot=True),
DuckDuckGoTools(),
],
instructions=[
"Use tables to display data",
"Only output the report, no other text",
],
markdown=True,
)
reasoning_agent.print_response(
"Write a report on TSLA",
stream=True,
show_full_reasoning=True,
stream_events=True,
)
Usage
Create a virtual environment
Open the Terminal and create a python virtual environment.python3 -m venv .venv
source .venv/bin/activate
Install libraries
pip install -U openai agno ddgs
Run Example
python cookbook/reasoning/tools/vercel_reasoning_tools.py