Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
from agno.agent import Agent from agno.tools.bravesearch import BraveSearchTools agent = Agent( tools=[BraveSearchTools()], description="你是一个新闻助手,帮助用户查找最新新闻。", instructions=[ "根据用户提供的主题,回应该主题的 4 条最新新闻。" ], show_tool_calls=True, ) agent.print_response("AI Agents", markdown=True)
创建虚拟环境
Terminal
python3 -m venv .venv source .venv/bin/activate
设置你的 API 凭证
export BRAVE_API_KEY=xxx
安装库
pip install -U brave-search openai agno
运行 Agent
python cookbook/tools/bravesearch_tools.py