Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
@@ -1139,7 +1139,7 @@ def build_graph(vector_store, provider: str, model_config: dict) -> StateGraph:
|
|
1139 |
|
1140 |
|
1141 |
# call build_graph AFTER it’s defined
|
1142 |
-
graph = build_graph()
|
1143 |
agent = graph
|
1144 |
|
1145 |
# Now you can use the agent like this:
|
|
|
1139 |
|
1140 |
|
1141 |
# call build_graph AFTER it’s defined
|
1142 |
+
graph = build_graph(vector_store, provider, model_config)
|
1143 |
agent = graph
|
1144 |
|
1145 |
# Now you can use the agent like this:
|