Malik198 commited on
Commit
1471eaa
·
verified ·
1 Parent(s): f2b1e55

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -69,7 +69,7 @@ class BasicAgent:
69
  max_steps=6,
70
  additional_authorized_imports=["*"],
71
  name="simple_agent",
72
- description="You are agent that seeks answer to the question"
73
  )
74
 
75
 
@@ -81,14 +81,14 @@ class BasicAgent:
81
  # planning_interval=2, # Enable planning every 3 steps
82
  max_steps=3,
83
  additional_authorized_imports=["*"],
84
- description="You are final agent that validates, that answer to th query is true and retruns final answer",
85
  name="judger_agent",
86
  )
87
 
88
  print("BasicAgent initialized.")
89
  def __call__(self, question: str) -> str:
90
  print(f"Agent received question (first 50 chars): {question[:50]}...")
91
- final_answer = self.agent.run("Maximum tokens must be less than 200 for all opeartions and steps. \n\n " + question)
92
  print(f"Agent returning fixed answer: {final_answer}")
93
  return final_answer
94
 
 
69
  max_steps=6,
70
  additional_authorized_imports=["*"],
71
  name="simple_agent",
72
+ description="You are agent that seeks answer to the question and give it."
73
  )
74
 
75
 
 
81
  # planning_interval=2, # Enable planning every 3 steps
82
  max_steps=3,
83
  additional_authorized_imports=["*"],
84
+ description="You are final agent that validates, that answer to the query is true and retruns final answer.",
85
  name="judger_agent",
86
  )
87
 
88
  print("BasicAgent initialized.")
89
  def __call__(self, question: str) -> str:
90
  print(f"Agent received question (first 50 chars): {question[:50]}...")
91
+ final_answer = self.agent.run(question)
92
  print(f"Agent returning fixed answer: {final_answer}")
93
  return final_answer
94