Spaces:
Sleeping
Sleeping
fix bugs
Browse files- Agents/agent.py +3 -2
Agents/agent.py
CHANGED
|
@@ -105,8 +105,9 @@ def build_graph(provider: str="groq"):
|
|
| 105 |
'''
|
| 106 |
builder = StateGraph(MessagesState)
|
| 107 |
print(f"running builder ")
|
| 108 |
-
|
| 109 |
-
|
|
|
|
| 110 |
#builder.add_node("retriever",retriever)
|
| 111 |
builder.add_node("assistant",assistant)
|
| 112 |
builder.add_node("tools", ToolNode(tools))
|
|
|
|
| 105 |
'''
|
| 106 |
builder = StateGraph(MessagesState)
|
| 107 |
print(f"running builder ")
|
| 108 |
+
directPath = os.getenv("DirectPath")
|
| 109 |
+
print(f"DirectPath = {directPath} ")
|
| 110 |
+
directPath = bool(directPath)
|
| 111 |
#builder.add_node("retriever",retriever)
|
| 112 |
builder.add_node("assistant",assistant)
|
| 113 |
builder.add_node("tools", ToolNode(tools))
|