force recomm tools for coding

This commit is contained in:
garylin2099 2024-07-29 21:42:51 +08:00
parent f31c257ea1
commit 17247b5518

View file

@ -38,7 +38,7 @@ class DataAnalyst(RoleZero):
@model_validator(mode="after")
def set_custom_tool(self):
if self.custom_tools and not self.custom_tool_recommender:
self.custom_tool_recommender = BM25ToolRecommender(tools=self.custom_tools)
self.custom_tool_recommender = BM25ToolRecommender(tools=self.custom_tools, force=True)
def _update_tool_execution(self):
self.tool_execution_map.update(