跳转到内容
#0074
SqliteAgent

AI agent queries the database with no driver

You hand an agent two URLs and a goal: "the orders database is here, the inventory database is here, figure out which products to restock."

The agent doesn't import sqlite3. It doesn't pip install anything. It doesn't ask for a connection string. It POSTs JSON to a URL and reads the response. The first call asks for the schema. The second writes a SELECT. The third interprets the rows. The fourth writes the UPDATE.

You'd normally have built a tool: query_orders_db(sql), query_inventory_db(sql), with parameter validation, sanitization, error handling, retry logic. Instead you wrote one sentence. Every Hoody endpoint speaks HTTP, and HTTP is the lingua franca every LLM was trained on.

The agent doesn't know what SQLite is. It knows how to POST.