Spaces:
Sleeping
Sleeping
Upload agent.py
Browse files
agent.py
CHANGED
|
@@ -40,7 +40,7 @@ def get_agent():
|
|
| 40 |
tools=[fetch_page_text, fetch_page_scripts, run_python_code, transcribe_audio, understand_image, call_api, execute_python, read_pdf, read_zip, search_history],
|
| 41 |
markdown=True,
|
| 42 |
debug_mode=True,
|
| 43 |
-
db=SqliteDb(db_file="/tmp/agent_memory.db"
|
| 44 |
add_history_to_context=True
|
| 45 |
)
|
| 46 |
return agent
|
|
|
|
| 40 |
tools=[fetch_page_text, fetch_page_scripts, run_python_code, transcribe_audio, understand_image, call_api, execute_python, read_pdf, read_zip, search_history],
|
| 41 |
markdown=True,
|
| 42 |
debug_mode=True,
|
| 43 |
+
db=SqliteDb(db_file=os.getenv("AGENT_DB_FILE", "/tmp/agent_memory.db")),
|
| 44 |
add_history_to_context=True
|
| 45 |
)
|
| 46 |
return agent
|