mralamdari commited on
Commit
bb91d53
·
verified ·
1 Parent(s): ea36537

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +10 -9
agent.py CHANGED
@@ -195,12 +195,12 @@ class GaiaAgentState(TypedDict):
195
  tool_results: List[Any]
196
  final_answer: str
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 ===
206
 
@@ -440,13 +440,14 @@ class EsiAgent:
440
  # 1. Build & compile your graph
441
  builder = StateGraph(GaiaAgentState)
442
 
443
- builder.add_node("parse", input_parser)
444
  builder.add_node("planner", planner_node)
445
  builder.add_node("execute", tool_executor)
446
  builder.add_node("synthesize", synthesizer)
447
 
448
- builder.add_edge(START, "parse")
449
- builder.add_edge("parse", "planner")
 
450
  builder.add_edge("planner", "execute")
451
  builder.add_edge("execute", "synthesize")
452
  builder.add_edge("synthesize", END)
 
195
  tool_results: List[Any]
196
  final_answer: str
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 ===
206
 
 
440
  # 1. Build & compile your graph
441
  builder = StateGraph(GaiaAgentState)
442
 
443
+ # builder.add_node("parse", input_parser)
444
  builder.add_node("planner", planner_node)
445
  builder.add_node("execute", tool_executor)
446
  builder.add_node("synthesize", synthesizer)
447
 
448
+ # builder.add_edge(START, "parse")
449
+ # builder.add_edge("parse", "planner")
450
+ builder.add_edge(START, "planner")
451
  builder.add_edge("planner", "execute")
452
  builder.add_edge("execute", "synthesize")
453
  builder.add_edge("synthesize", END)