Spaces:
Runtime error
Runtime error
| from memory import MemoryVectorStore | |
| memory = MemoryVectorStore() | |
| def run_agent(goal): | |
| memory.add(goal) | |
| ideas = memory.search(goal) | |
| # Assume goal is passed into LLM with memory summary | |
| summary = " ".join(ideas) | |
| result = f"[Task]: {goal}\n[Memory]: {summary}\n[Response]: working on it..." | |
| memory.add(result) | |
| return result | |