Buckets:

download
raw
1.02 kB
"""
Baidusearch Tools
=============================
Demonstrates baidusearch tools.
"""
from agno.agent import Agent
from 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)

Xet Storage Details

Size:
1.02 kB
·
Xet hash:
cec0aa62f0cd45b2c2d5efaa0ed5ac01c91de41e7434b12a93e14224c0934768

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.