产品介绍

Built-in plugins and database engines

Choose a plugin supplied with DataAgent while distinguishing SQL dialects, actual connection engines, and plugin-specific limits. Shipping a plugin does not enable it. See install and configure plugins; put parameters in plugins.config.<id> and selections in plugins.enabled.

Choose a plugin for the task

Plugin ID Task and execution entry Model, metadata, and recovery requirements Parameters and examples
nl2sql Compiled SQL workflow; run directly with dataagent.entry: nl2sql or delegate from the root Agent through task plugins.config.nl2sql.model must be a valid alias in models. Supply schema through perceptor.user_schema directly or through the root semantic service; ICL retrieval also depends on that service Parameters and workflows, dedicated-query example, parent/subagent example
nl2sql-react Standard subagent delegated by the root Agent, with exploration, review, and result-selection control Database tools currently support local SQLite only. The subagent, reviewer, and exploration reuse host dataagent.model; SemanticLayer is unnecessary. It cannot be set as dataagent.entry (that field only accepts compiled subagents) Behavior and parameter sources, complete configuration
de-agent Root-Agent data-engineering workflow: recall metadata and generate DDL/INSERT deliverables; automatically depends on nl2sql Model aliases must resolve; metadata workflows require root semantic. The built-in NL2SQL chain only generates SQL; configuration separately controls DataOps and other external execution Configuration and delivery contract, complete example, human feedback
data-qa Ontology-description and human-clarification tools for the main Agent; not a SQL execution engine itself Ontology needs a nonempty database and host semantic client. Feedback needs no database parameter, but pause/resume requires a checkpointer and corresponding protocol. Query routing also requires explicitly enabling nl2sql Configuration and tools, HITL integration

Root-Agent delegation and tool-interaction workflows also require model-service tool-calling support. Plugin READMEs, manifests, and configuration models own complete parameters and defaults; this index does not duplicate their long tables. See product configuration, extension declarations, and merging rules for common fields, declarations, load order, and overrides.

nl2sql-react is not an alias for a parent Agent calling nl2sql. It has separate review_query, update_query_state, finish_query, and root select_result protocols; the root selects between multiple successful results. Do not apply its fields or tool arguments to nl2sql JSON results.

SQL dialect versus execution engine

  • database.dialect selects the SQL dialect for generation prompts and SQLGlot parsing.
  • database.engine selects the implementation that connects, executes queries, or runs EXPLAIN.
  • A parsed dialect or model-generated SQL does not establish direct-driver and end-to-end database support.

For example, GaussVector uses dialect: postgres and engine: gaussvector. The factory has no standalone postgres execution engine. An omitted engine takes the dialect value, so setting only dialect: postgres yields the unsupported postgres engine and cannot connect. The base psycopg2 dependency does not establish verification of every PostgreSQL-compatible product or proprietary syntax.

Current execution adapters

This table follows the branches of build_sql_service. It describes connection implementations; individual plugins can expose only a subset.

database.engine Connection or execution implementation Dependencies and settings Current boundary
sqlite Python standard-library sqlite3 with a read-only connection Business database path; no extra required The factory also accepts alias sqlite3. Metadata reads and explicit deadlines/cancellation are implemented on the SQLite path
mysql pymysql Base runtime dependency; host, port, user, password, and database An installed driver does not verify every MySQL-compatible product
gaussvector psycopg2 Base runtime dependency; commonly dialect: postgres with actual connection settings No standalone postgres factory branch; verify the target GV version and business SQL
hive, spark pyspark.sql.SparkSession with Hive support enabled spark extra, Java, the required Spark/Hive environment, and warehouse directory warehouse_dir Executes through a Spark session, not a generic standalone HiveServer2/JDBC connector
mcp MCP Streamable HTTP SQL tool HTTP(S) path, read_tool, timeout, and explain_prefix; the service supplies database access Separate from host-tool .mcp.yaml; actual SQL capability depends on the MCP service

Other engine names are rejected by the current factory. Do not extend this list based on SQL dialects, database icons, or an installed driver. nl2sql-react remains SQLite-only even though it shares this gateway.

When execution dependencies are needed

NL2SQL checks the engine driver only when an execution node (executor or bird-validator) is selected or validator.db_explain is enabled. SQL-only generation with neither execution nor database EXPLAIN does not require PySpark merely because it uses Hive dialect.

The de-agent defaults select perceptor → generator → validator → reflector, omitting execution nodes and setting db_explain: false. That generation chain needs no Spark extra. Other parameters control DataOps tools and validation; manifest dataops.enabled defaults to true. To verify file generation alone, explicitly set plugins.config.de-agent.dataops.enabled: false. Disabling NL2SQL execution does not disable all external actions.

For actual Spark/Hive queries or EXPLAIN, install the spark extra using optional-dependency instructions, for example in the source environment:

uv sync --extra spark

Configure Java, service discovery, warehouse paths, and actual data access in the target environment; the extra only installs Python dependencies. MCP SQL tools and SemanticLayer also serve different purposes: SQL execution versus metadata. See NL2SQL MCP and SemanticLayer integration.

Verify the selected path

Start with a small business database and known results. Verify settings and actual CSV, then inspect logs, error fields, and truncation flags. For DDL/INSERT generation, inspect deliverables and metadata evidence. Verify real DataOps execution scope separately. Code and offline contract tests establish implementation boundaries; target databases, models, and services still need integration verification.

Implementation evidence: service factory, driver preflight, NL2SQL contract tests, nl2sql-react database configuration, and de-agent manifest.