Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
@@ -183,6 +183,8 @@ def build_graph(provider: str = "huggingface", huggingface_model: str = "mistral
|
|
183 |
else:
|
184 |
raise ValueError("Invalid provider. Choose 'google' or 'huggingface'.")
|
185 |
|
|
|
|
|
186 |
# ✅ Bind tools if defined
|
187 |
llm_with_tools = llm.bind_tools(tools) # Make sure `tools` is defined/imported
|
188 |
return llm_with_tools
|
|
|
183 |
else:
|
184 |
raise ValueError("Invalid provider. Choose 'google' or 'huggingface'.")
|
185 |
|
186 |
+
return llm
|
187 |
+
|
188 |
# ✅ Bind tools if defined
|
189 |
llm_with_tools = llm.bind_tools(tools) # Make sure `tools` is defined/imported
|
190 |
return llm_with_tools
|