跳到主要内容
版本:v0.7.4

Built-in tools

DB-GPT provides a small set of built-in tools in the Agentic Data API.

These tools are the core execution layer for:

  • loading reusable skills
  • running Python analysis
  • executing shell commands
  • querying structured data
  • rendering HTML reports

Source of truth:

  • packages/dbgpt-app/src/dbgpt_app/openapi/api_v1/agentic_data_api.py

Built-in tools

Skill-driven workflow

  1. load_skill
  2. sql_query or code_interpreter
  3. html_interpreter for final delivery

Structured data workflow

  1. sql_query
  2. code_interpreter
  3. html_interpreter

Shell-assisted workflow

  1. shell_interpreter
  2. code_interpreter
  3. html_interpreter if the result must be rendered

Tool selection guide

ToolUse it forAvoid using it for
load_skillLoading skill instructions and workflow definitionsRunning code or shell commands
code_interpreterPython analysis, calculations, charts, dataframe workShell commands or final HTML rendering
shell_interpreterCLI commands and environment inspectionPython analysis or final report rendering
sql_queryRead-only SQL explorationWrites, schema changes, destructive SQL
html_interpreterFinal HTML page / report renderingComputation or shell execution