mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-05 22:02:38 +02:00
add email_login unit test
This commit is contained in:
parent
f31f371d53
commit
4a991b4cd4
3 changed files with 79 additions and 27 deletions
|
|
@ -9,14 +9,15 @@ from metagpt.roles.ci.code_interpreter import CodeInterpreter
|
|||
|
||||
|
||||
async def main():
|
||||
# prompt_response = """I will give you your Outlook email account(englishgpt@outlook.com) and password(the outlook_email_password item in the environment variable). You need to find the latest email in my inbox with the sender's suffix @qq.com and reply to him "Thank you! I have received your email~"""""
|
||||
prompt_summary = """I will give you your Outlook email account(englishgpt@outlook.com) and password(outlook_email_password item in the environment variable).
|
||||
# For email response prompt
|
||||
# prompt = """I will give you your Outlook email account(englishgpt@outlook.com) and password(the outlook_email_password item in the environment variable). You need to find the latest email in my inbox with the sender's suffix @qq.com and reply to him "Thank you! I have received your email~"""""
|
||||
prompt = """I will give you your Outlook email account(englishgpt@outlook.com) and password(outlook_email_password item in the environment variable).
|
||||
Firstly, Please help me present the latest 5 senders and full letter contents.
|
||||
Then, summarize each of the 5 emails into one sentence with Chinese(you can do this by yourself, don't need import other models to do this) and output them in a markdown format."""
|
||||
# ci_response = CodeInterpreter(goal=prompt_response, use_tools=True)
|
||||
ci_summary = CodeInterpreter(goal=prompt_summary, use_tools=True)
|
||||
|
||||
await ci_summary.run(prompt_summary)
|
||||
ci = CodeInterpreter(use_tools=True)
|
||||
|
||||
await ci.run(prompt)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue