diff --git a/examples/exp_pool/manager.py b/examples/exp_pool/manager.py index ae998214a..5aead08e9 100644 --- a/examples/exp_pool/manager.py +++ b/examples/exp_pool/manager.py @@ -6,7 +6,7 @@ This script creates a new experience, logs its creation, and then queries for ex import asyncio -from metagpt.exp_pool import exp_manager +from metagpt.exp_pool import get_exp_manager from metagpt.exp_pool.schema import EntryType, Experience from metagpt.logs import logger @@ -15,6 +15,7 @@ async def main(): # Define the simple request and response req = "Simple req" resp = "Simple resp" + exp_manager = get_exp_manager() # Add the new experience exp = Experience(req=req, resp=resp, entry_type=EntryType.MANUAL)