chore: Format codes , PEP8

This commit is contained in:
DevXiaolan 2023-09-19 15:01:21 +08:00
parent 86f49faefb
commit 04211232f6

View file

@ -1,3 +1,10 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@Time : 2023/9/19 15:02
@Author : DevXiaolan
@File : prepare_interview.py
"""
from metagpt.actions import Action
PROMPT_TEMPLATE = """
@ -7,7 +14,7 @@ PROMPT_TEMPLATE = """
## Format example
---
Q1: question 1 here
Reffrences:
References:
- point 1
- point 2
@ -21,11 +28,13 @@ Attention: Provide as markdown block as the format above, at least 10 questions.
"""
# prepare for a interview
class PrepareInterview(Action):
def __init__(self, name, context=None, llm=None):
super().__init__(name, context, llm)
async def run(self,context):
async def run(self, context):
prompt = PROMPT_TEMPLATE.format(context=context)
question_list = await self._aask_v1(prompt)
return question_list
return question_list