Sborole commited on
Commit
1e33d7f
·
verified ·
1 Parent(s): d98818e

Update src/agent.py

Browse files
Files changed (1) hide show
  1. 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
- context = f"Story content:\n{file_content}"
99
- print(f"Starting Agent with question text: {question}, {file_content}")
 
 
 
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