Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -197,9 +197,9 @@ class GaiaAgentState(TypedDict):
|
|
| 197 |
|
| 198 |
def input_parser(state: GaiaAgentState) -> dict:
|
| 199 |
return {
|
| 200 |
-
"question": state
|
| 201 |
-
"files": state.
|
| 202 |
-
"level": state.
|
| 203 |
}
|
| 204 |
|
| 205 |
# === 2. TOOL STUBS ===
|
|
|
|
| 197 |
|
| 198 |
def input_parser(state: GaiaAgentState) -> dict:
|
| 199 |
return {
|
| 200 |
+
"question": state["question"],
|
| 201 |
+
"files": state.get("files", []),
|
| 202 |
+
"level": state.get("level", 1)
|
| 203 |
}
|
| 204 |
|
| 205 |
# === 2. TOOL STUBS ===
|