Spaces:
Sleeping
Sleeping
Update src/agent.py
Browse files- src/agent.py +5 -2
src/agent.py
CHANGED
|
@@ -95,8 +95,11 @@ class BasicAgent():
|
|
| 95 |
retry_count = 0
|
| 96 |
|
| 97 |
question = f"Question: {question}"
|
| 98 |
-
|
| 99 |
-
|
|
|
|
|
|
|
|
|
|
| 100 |
while True:
|
| 101 |
try:
|
| 102 |
# Run the agent
|
|
|
|
| 95 |
retry_count = 0
|
| 96 |
|
| 97 |
question = f"Question: {question}"
|
| 98 |
+
if file_content:
|
| 99 |
+
context = f"Story content:\n{file_content}"
|
| 100 |
+
elif file_path:
|
| 101 |
+
context = f"File path: {file_path}"
|
| 102 |
+
print(f"Starting Agent with question text: {question}, {context}")
|
| 103 |
while True:
|
| 104 |
try:
|
| 105 |
# Run the agent
|