Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -687,6 +687,17 @@ class SuperSmartAgent:
|
|
| 687 |
|
| 688 |
return None # Added missing return statement
|
| 689 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 690 |
|
| 691 |
# Entry point remains the same
|
| 692 |
builder.set_entry_point("check_reversed")
|
|
|
|
| 687 |
|
| 688 |
return None # Added missing return statement
|
| 689 |
|
| 690 |
+
class AgentState(TypedDict, total=False):
|
| 691 |
+
question: str
|
| 692 |
+
is_reversed: bool
|
| 693 |
+
is_python: bool
|
| 694 |
+
is_riddle: bool
|
| 695 |
+
is_wiki: bool # Added for Wikipedia suitability check
|
| 696 |
+
needs_reasoning: bool # Added for reasoning check
|
| 697 |
+
response: str
|
| 698 |
+
use_tool: str # Keep this if it's being used elsewhere
|
| 699 |
+
|
| 700 |
+
builder = StateGraph(AgentState)
|
| 701 |
|
| 702 |
# Entry point remains the same
|
| 703 |
builder.set_entry_point("check_reversed")
|