add exp_pool tests

This commit is contained in:
seehi 2024-06-05 22:15:09 +08:00
parent 1d8d85e9a5
commit c78cddd102
9 changed files with 391 additions and 43 deletions

View file

@ -7,8 +7,9 @@ from metagpt.exp_pool import exp_cache, exp_manager
from metagpt.logs import logger
@exp_cache
async def produce(req):
@exp_cache(pass_exps_to_func=True)
async def produce(req, exps=None):
logger.info(f"Previous experiences: {exps}")
return f"{req} {uuid.uuid4().hex}"