feat(ai): add vector DB assistant tools

This commit is contained in:
lexmin0412 authored and GitHub committed 2026-06-29 11:46:41 +08:00
1 parent 3c7c1924ba
commit bc409cffc0
7 files changed
+559 -17

No files matched your search

+5 -1
View File
@@ -129,7 +129,11 @@ pub async fn run_agent_loop(
)
.await;
}
let tools = if is_agent_mode { agent_tools::all_tools(agent_ctx.db_type) } else { agent_tools::read_only_tools() };
let tools = if is_agent_mode {
agent_tools::all_tools(agent_ctx.db_type)
} else {
agent_tools::read_only_tools(agent_ctx.db_type)
};
let task_contract = task_contract.cloned();
let mut conversation_messages: Vec<AiMessage> = messages.to_vec();
let mut final_text = String::new();