Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -204,7 +204,8 @@ class BasicAgent:
|
|
| 204 |
llm=self.model,
|
| 205 |
agent="zero-shot-react-description", # ReAct agent type
|
| 206 |
verbose=True,
|
| 207 |
-
system_prompt=self.prompt
|
|
|
|
| 208 |
)
|
| 209 |
print("BasicAgent initialized.")
|
| 210 |
|
|
|
|
| 204 |
llm=self.model,
|
| 205 |
agent="zero-shot-react-description", # ReAct agent type
|
| 206 |
verbose=True,
|
| 207 |
+
system_prompt=self.prompt,
|
| 208 |
+
handle_parsing_errors="Check your output and make sure it conforms, use the Action/Action Input syntax"
|
| 209 |
)
|
| 210 |
print("BasicAgent initialized.")
|
| 211 |
|