Update agent.py initialize out

To fix the local variable 'out' reference before assigment in running the Agent + LongTerm Memory error:
```
2024-07-11T02:00:55.457112+0000 Couting tokens of retrieved document
2024-07-11T02:00:55.459163+0000 Retrieved document token count 1
2024-07-11T02:00:55.460820+0000 Error querying long term memory: local variable 'out' referenced before assignment
2024-07-11T02:00:55.461227+0000 Attempt 1: Error generating response: local variable 'out' referenced before assignment
```
pull/532/head
evelynmitchell 10 months ago committed by GitHub
parent 6861e1d9f0
commit 7411d223e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -957,6 +957,7 @@ class Agent(BaseStructure):
Returns:
str: The agent history prompt
"""
out = ""
try:
logger.info(f"Querying long term memory database for {query}")
ltr = self.long_term_memory.query(query, *args, **kwargs)

Loading…
Cancel
Save