mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-03 12:52:37 +02:00
experiment pool init
This commit is contained in:
parent
6d98390831
commit
9f817bd59c
1 changed files with 2 additions and 1 deletions
|
|
@ -10,8 +10,9 @@ from metagpt.logs import logger
|
|||
async def main():
|
||||
req = "Simple task."
|
||||
resp = "Simple echo."
|
||||
exp = Experience(req=req, resp=resp, entry_type=EntryType.MANUAL)
|
||||
|
||||
exp_manager.create_exp(Experience(req=req, resp=resp, entry_type=EntryType.MANUAL))
|
||||
exp_manager.create_exp(exp)
|
||||
logger.info(f"New experience created for the request `{req}`.")
|
||||
|
||||
exps = await exp_manager.query_exps(req)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue