mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-02 14:45:17 +02:00
replace exp_manager by get_exp_manager
This commit is contained in:
parent
2968c181c1
commit
a801a5cc32
4 changed files with 14 additions and 7 deletions
|
|
@ -5,7 +5,7 @@ This script demonstrates how to automatically store experiences using @exp_cache
|
|||
import asyncio
|
||||
import uuid
|
||||
|
||||
from metagpt.exp_pool import exp_cache, exp_manager
|
||||
from metagpt.exp_pool import exp_cache, get_exp_manager
|
||||
from metagpt.logs import logger
|
||||
|
||||
|
||||
|
|
@ -20,7 +20,7 @@ async def main():
|
|||
resp = await produce(req=req)
|
||||
logger.info(f"The response of `produce({req})` is: {resp}")
|
||||
|
||||
exps = await exp_manager.query_exps(req)
|
||||
exps = await get_exp_manager().query_exps(req)
|
||||
logger.info(f"Find experiences: {exps}")
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue