from agno.agent import Agentfrom agno.tools.bravesearch import BraveSearchToolsagent = Agent( tools=[BraveSearchTools()], description="You are a news agent that helps users find the latest news.", instructions=[ "Given a topic by the user, respond with 4 latest news items about that topic." ], show_tool_calls=True,)agent.print_response("AI Agents", markdown=True)
Searches Brave for a specified query. Parameters include query for the search term, max_results for the maximum number of results (default is 5),country for the geographic region (default is “US”) of the search results and language for the language of the search results (default is “en”). Returns the search results as a JSON formatted string.