Thanos commited on
Commit
dcf4bc4
·
1 Parent(s): d9af1db

Remove deprecated code

Browse files
Files changed (1) hide show
  1. src/agent.py +4 -24
src/agent.py CHANGED
@@ -34,25 +34,6 @@ def should_continue(state: AgentState) -> str:
34
  return "continue_solve"
35
 
36
 
37
- def should_retry(state: AgentState) -> str:
38
- """Determines whether to retry solving the initial query or
39
- end the process.
40
-
41
- Args:
42
- state (AgentState): The current state of the agent, containing
43
- subqueries, results, current step index, and
44
- message history.
45
-
46
- Returns:
47
- str: A string indicating the next step:
48
- - "solve": Retry solving the initial query.
49
- - END: End the process.
50
- """
51
- if state.get("final_answer"):
52
- return END
53
- return "solve"
54
-
55
-
56
  class AgentGAIA:
57
  """Agent GAIA for multi-step query resolution."""
58
 
@@ -110,11 +91,10 @@ if __name__ == "__main__":
110
  agent = AgentGAIA()
111
 
112
  # Example query
113
- # query = (
114
- # "What is the GDP growth difference between France and Germany after "
115
- # "their 2020 policy changes?"
116
- # )
117
- query = "In the video https://www.youtube.com/watch?v=L1vXCYZAYYM, what is the highest number of bird species to be on camera simultaneously?"
118
 
119
  async def main():
120
  answer = await agent(query)
 
34
  return "continue_solve"
35
 
36
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  class AgentGAIA:
38
  """Agent GAIA for multi-step query resolution."""
39
 
 
91
  agent = AgentGAIA()
92
 
93
  # Example query
94
+ query = (
95
+ "What is the GDP growth difference between France and Germany after "
96
+ "their 2020 policy changes?"
97
+ )
 
98
 
99
  async def main():
100
  answer = await agent(query)