Retrieve search results from Baidu with Agno Agents. Baidu Search provides access to Baidu’s search index for finding relevant information.
Copy
Ask AI
from agno.agent import Agentfrom agno.tools.baidusearch import BaiduSearchTools# ---------------------------------------------------------------------------# Create Agent# ---------------------------------------------------------------------------agent = Agent( tools=[BaiduSearchTools()], description="You are a search agent that helps users find the most relevant information using Baidu.", instructions=[ "Given a topic by the user, respond with the 3 most relevant search results about that topic.", "Search for 5 results and select the top 3 unique items.", "Search in both English and Chinese.", ],)# ---------------------------------------------------------------------------# Run Agent# ---------------------------------------------------------------------------if __name__ == "__main__": agent.print_response("What are the latest advancements in AI?", markdown=True)