For the complete documentation index, see llms.txt. Markdown variants are available by appending .md to any URL or sending an Accept: text/markdown header. An agent skill is available at /.well-known/agent-skills/site-skill.md.
346
Sponsor

Chat with Database

Introspects a database schema, converts questions to SQL, and runs read-only queries.

Output will stream here when you run the agent.

Summary

The Chat with Database Agent answers questions about your data in plain English. It introspects the schema, writes the SQL, runs it read-only, and explains the results. Reach for it to give non-SQL users a safe way to query a database, or to prototype analytics without hand-writing queries.

Installation

$ pnpm dlx shadcn@latest add @agentcn/langgraph/text-to-sql

Composition

├── index.ts
├── instructions.md
├── lib/db.ts
├── tools/execute-sql.ts
├── tools/introspect-database.ts

Customization

  • Edit index.ts to change the model, description, or system prompt.
  • Add route-local tools under tools/; tool input and output types are inferred from TypeScript.
  • Run dawn verify before deploying generated LangGraph artifacts.