mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-03 21:02:38 +02:00
add exp_pool tests
This commit is contained in:
parent
1d8d85e9a5
commit
c78cddd102
9 changed files with 391 additions and 43 deletions
|
|
@ -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}"
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue