Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

feat(ai): agent loop Phase 2 — SQL execution tools, risk classification, and streaming tool calls

skylerabacac3c07e7
diff --cc crates/dbx-web/src/routes/ai.rs
index 8e9ca00210,52a5517a2f..58655593a5
--- a/crates/dbx-web/src/routes/ai.rs
+++ b/crates/dbx-web/src/routes/ai.rs
@@@ -7,9 -7,12 +7,12 @@@ use futures::stream::Stream
use serde::Deserialize;
use dbx_core::agent_events::AgentEvent;
+ use dbx_core::agent_events::AgentEvent;
+ use dbx_core::agent_loop::{run_agent_loop, AgentLoopContext};
use dbx_core::agent_loop::{run_agent_loop, AgentLoopContext};
-use dbx_core::ai::{AiCompletionRequest, AiConfig, AiConversation, AiModelInfo, AiStreamChunk};
+use dbx_core::ai::{AiCompletionRequest, AiConfig, AiConversation, AiModelInfo, AiStreamChunk, AiTestConnectionResult};
use dbx_core::models::connection::DatabaseType;
+ use dbx_core::models::connection::DatabaseType;
use crate::error::AppError;
use crate::state::WebState;