Buckets:

download
raw
756 Bytes
"""
Sql Tools
=============================
Demonstrates sql tools.
"""
from agno.agent import Agent
from agno.tools.sql import SQLTools
# ---------------------------------------------------------------------------
# Create Agent
# ---------------------------------------------------------------------------
db_url = "postgresql+psycopg://ai:ai@localhost:5532/ai"
agent = Agent(tools=[SQLTools(db_url=db_url)])
# ---------------------------------------------------------------------------
# Run Agent
# ---------------------------------------------------------------------------
if __name__ == "__main__":
agent.print_response(
"List the tables in the database. Tell me about contents of one of the tables",
markdown=True,
)

Xet Storage Details

Size:
756 Bytes
·
Xet hash:
2222583a6c71c2e06d02f54221620bb3abf0e452a36c4bc0f19d291b8268f20f

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