mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-21 14:05:17 +02:00
chore: Format codes , PEP8
This commit is contained in:
parent
86f49faefb
commit
04211232f6
1 changed files with 12 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue