Csuarezg commited on
Commit
c020d8d
·
verified ·
1 Parent(s): 9d49dff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -53,6 +53,10 @@ logging.getLogger("ultralytics").setLevel(logging.ERROR)
53
  # --- Constants ---
54
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
55
 
 
 
 
 
56
  # System prompt for the agent
57
  SYSTEM_PROMPT = """You are a precision research assistant for the GAIA benchmark. Your mission is EXTREME ACCURACY.
58
 
@@ -268,9 +272,6 @@ class GAIAAgent:
268
 
269
  def _create_agent_runner(self):
270
  """Create the LangGraph agent runner"""
271
- class AgentState(TypedDict):
272
- messages: Annotated[ListType, add_messages]
273
-
274
  model_with_tools = self.llm.bind_tools(self.tools)
275
 
276
  def agent_node(state):
 
53
  # --- Constants ---
54
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
55
 
56
+ # Agent State Definition
57
+ class AgentState(TypedDict):
58
+ messages: Annotated[ListType, add_messages]
59
+
60
  # System prompt for the agent
61
  SYSTEM_PROMPT = """You are a precision research assistant for the GAIA benchmark. Your mission is EXTREME ACCURACY.
62
 
 
272
 
273
  def _create_agent_runner(self):
274
  """Create the LangGraph agent runner"""
 
 
 
275
  model_with_tools = self.llm.bind_tools(self.tools)
276
 
277
  def agent_node(state):