Database¶
Database
¶
Natural language interface for databases.
Supports 15+ database types including PostgreSQL, MySQL, SQLite, Snowflake, BigQuery.
PARAMETER | DESCRIPTION |
---|---|
url
|
Database connection URL (e.g., 'postgresql://user:pass@host/db')
TYPE:
|
match_schema
|
Regex pattern to filter schemas. Mutually exclusive with match_tables.
TYPE:
|
match_tables
|
Regex pattern to filter tables. Mutually exclusive with match_schema.
TYPE:
|
ask
¶
Ask natural language questions and get structured responses.
PARAMETER | DESCRIPTION |
---|---|
prompt
|
Natural language question or instruction.
TYPE:
|
model
|
AI model to use (e.g., 'openai:gpt-4', 'anthropic:claude-3-5-sonnet').
TYPE:
|
context
|
Additional business context for better responses.
TYPE:
|
output_type
|
Pydantic model for structured responses.
TYPE:
|
stream
|
Show live AI reasoning in terminal.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
Any
|
Response matching the requested output type. |
tools
¶
Available tool methods for database operations.
RETURNS | DESCRIPTION |
---|---|
list[callable]
|
Methods for table inspection and query execution. |
instructions
¶
Generate system instructions for AI agents.
PARAMETER | DESCRIPTION |
---|---|
context
|
Additional business context to include in instructions.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
str
|
System instructions for AI interaction with this datasource. |