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." ], )agent.print_response("AI Agents", markdown=True)
Searches Brave for a specified query. Parameters include query (str) for the search term, max_results (int, default=5) for the maximum number of results, country (str, default=“US”) for the country code for search results, and search_lang (str, default=“en”) for the language of the search results. Returns a JSON formatted string containing the search results.