Spaces:
Sleeping
Sleeping
Update src/agent.py
Browse files- src/agent.py +2 -1
src/agent.py
CHANGED
|
@@ -104,8 +104,9 @@ class BasicAgent():
|
|
| 104 |
print(f"Starting Agent with question text: {question}, {context}")
|
| 105 |
while True:
|
| 106 |
try:
|
|
|
|
| 107 |
# Run the agent
|
| 108 |
-
steps = self.agent.run(
|
| 109 |
|
| 110 |
# If steps is a string, convert it to a single-item list
|
| 111 |
if isinstance(steps, str):
|
|
|
|
| 104 |
print(f"Starting Agent with question text: {question}, {context}")
|
| 105 |
while True:
|
| 106 |
try:
|
| 107 |
+
final_input = f"{question}\n\n{context}"
|
| 108 |
# Run the agent
|
| 109 |
+
steps = self.agent.run(final_input)
|
| 110 |
|
| 111 |
# If steps is a string, convert it to a single-item list
|
| 112 |
if isinstance(steps, str):
|