Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -221,7 +221,7 @@ compiled_graph = graph.compile()
|
|
| 221 |
|
| 222 |
# βββββββββββββββββββββββββββ Public API ββββββββββββββββββββββββββββββββ
|
| 223 |
|
| 224 |
-
def answer(question: str,
|
| 225 |
"""Run the agent and return whatever FINAL_ANSWER the graph produces."""
|
| 226 |
init_state = AgentState(question, task_id)
|
| 227 |
init_state.add(SystemMessage(content="You are a helpful assistant."))
|
|
|
|
| 221 |
|
| 222 |
# βββββββββββββββββββββββββββ Public API ββββββββββββββββββββββββββββββββ
|
| 223 |
|
| 224 |
+
def answer(question: str, task_id: Optional[str] = None) -> str:
|
| 225 |
"""Run the agent and return whatever FINAL_ANSWER the graph produces."""
|
| 226 |
init_state = AgentState(question, task_id)
|
| 227 |
init_state.add(SystemMessage(content="You are a helpful assistant."))
|