{
+ const [searchText, setSearchText] = useState('');
+ const visibleFlows = filterBuiltinToolFlows(BUILTIN_TOOL_FLOWS, searchText);
+ const visibleTools = filterBuiltinTools(BUILTIN_AI_TOOL_INFO, searchText);
+
+ return (
+
+
+ AI 助手在处理数据库相关问题时,可以自动调用以下内置工具获取真实数据,全程无需人工干预。
+
+
+
+ 当前显示 {visibleFlows.length}/{BUILTIN_TOOL_FLOWS.length} 条推荐流程,{visibleTools.length}/{BUILTIN_AI_TOOL_INFO.length} 个内置工具。
+
+ {visibleFlows.length > 0 && (
+
+ {visibleFlows.map((flow) => (
+
+
{flow.title}
+
{flow.steps}
+
{flow.description}
+
+ ))}
+
+ )}
+ {visibleTools.length === 0 && (
+
-
{flow.title}
-
{flow.steps}
-
{flow.description}
+ 没有匹配的内置工具。可以改搜更宽泛的关键词,例如 mcp、日志、连接、事务、快捷键、schema。
- ))}
-
- {BUILTIN_AI_TOOL_INFO.map((tool) => {
+ )}
+ {visibleTools.map((tool) => {
const parameterDetails = describeBuiltinToolParameters(tool);
return (
= ({
>
{item.name}
+
+ 类型:{item.typeLabel}
+
= ({
可选值:{item.enumValues.join(' / ')}
)}
+ {item.defaultValue && (
+
+ 默认:{item.defaultValue}
+
+ )}
{item.description && (
{item.description}
)}
+ {item.exampleValue && (
+
+ 示例:{item.exampleValue}
+
+ )}
))}