feat(core): Wire tool toggles to AI provider tool declaration payload

This commit is contained in:
2026-02-23 11:30:36 -05:00
parent 1677d25298
commit 92aa33c6d3
3 changed files with 89 additions and 46 deletions

1
gui.py
View File

@@ -1203,6 +1203,7 @@ class App:
if global_sp: combined_sp.append(global_sp.strip())
if project_sp: combined_sp.append(project_sp.strip())
ai_client.set_custom_system_prompt("\n\n".join(combined_sp))
ai_client.set_agent_tools(self.project.get("agent", {}).get("tools", {}))
temp = dpg.get_value("ai_temperature") if dpg.does_item_exist("ai_temperature") else 0.0
max_tok = dpg.get_value("ai_max_tokens") if dpg.does_item_exist("ai_max_tokens") else 8192
trunc = dpg.get_value("ai_history_trunc") if dpg.does_item_exist("ai_history_trunc") else 8000