Database Query Tool
Domain: Tools & Function Calling
π― Motivation
A tool that lets the agent query databases (SQL, NoSQL) to retrieve, insert, or update data.
π Concrete Example
Agent calls: query_database(sql=βSELECT name, grade FROM students WHERE grade > 80β) -> returns: [(Alice, 95), (Bob, 85)]. It can answer data questions precisely.
π Analogy
A librarian searching the catalog - you ask βDo you have books about space?β They search the database and tell you what is available. Database query tools let agents search digital data catalogs.