mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-21 14:05:17 +02:00
修正
This commit is contained in:
parent
315fb65430
commit
041da760e0
147 changed files with 756 additions and 7644 deletions
|
|
@ -16,6 +16,7 @@ The requirements of the tree-structure plan are:
|
|||
4. The sub-goals at the bottom level should be basic actions so that I can easily execute them in the game.
|
||||
"""
|
||||
|
||||
|
||||
DECOMPOSE_USER = """USER:
|
||||
The goal is to {goal description}. Generate the plan according to the requirements.
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -66,10 +66,9 @@ # PRD
|
|||
return prd
|
||||
```
|
||||
|
||||
|
||||
The main class/function is WritePRD.
|
||||
|
||||
Then you should write:
|
||||
|
||||
This class is designed to generate a PRD based on input requirements. Notably, there's a template prompt with sections
|
||||
for product, function, goals, user scenarios, requirements, constraints, performance metrics. This template gets filled
|
||||
with input requirements and then queries a big language model to produce the detailed PRD.
|
||||
This class is designed to generate a PRD based on input requirements. Notably, there's a template prompt with sections for product, function, goals, user scenarios, requirements, constraints, performance metrics. This template gets filled with input requirements and then queries a big language model to produce the detailed PRD.
|
||||
|
|
@ -6,6 +6,7 @@
|
|||
@File : sales.py
|
||||
"""
|
||||
|
||||
|
||||
SALES_ASSISTANT = """You are a sales assistant helping your sales agent to determine which stage of a sales conversation should the agent move to, or stay at.
|
||||
Following '===' is the conversation history.
|
||||
Use this conversation history to make your decision.
|
||||
|
|
@ -28,6 +29,7 @@ The answer needs to be one number only, no words.
|
|||
If there is no conversation history, output 1.
|
||||
Do not answer anything else nor add anything to you answer."""
|
||||
|
||||
|
||||
SALES = """Never forget your name is {salesperson_name}. You work as a {salesperson_role}.
|
||||
You work at company named {company_name}. {company_name}'s business is the following: {company_business}
|
||||
Company values are the following. {company_values}
|
||||
|
|
@ -52,11 +54,10 @@ Conversation history:
|
|||
{salesperson_name}:
|
||||
"""
|
||||
|
||||
conversation_stages = {
|
||||
'1': "Introduction: Start the conversation by introducing yourself and your company. Be polite and respectful while keeping the tone of the conversation professional. Your greeting should be welcoming. Always clarify in your greeting the reason why you are contacting the prospect.",
|
||||
'2': "Qualification: Qualify the prospect by confirming if they are the right person to talk to regarding your product/service. Ensure that they have the authority to make purchasing decisions.",
|
||||
'3': "Value proposition: Briefly explain how your product/service can benefit the prospect. Focus on the unique selling points and value proposition of your product/service that sets it apart from competitors.",
|
||||
'4': "Needs analysis: Ask open-ended questions to uncover the prospect's needs and pain points. Listen carefully to their responses and take notes.",
|
||||
'5': "Solution presentation: Based on the prospect's needs, present your product/service as the solution that can address their pain points.",
|
||||
'6': "Objection handling: Address any objections that the prospect may have regarding your product/service. Be prepared to provide evidence or testimonials to support your claims.",
|
||||
'7': "Close: Ask for the sale by proposing a next step. This could be a demo, a trial or a meeting with decision-makers. Ensure to summarize what has been discussed and reiterate the benefits."}
|
||||
conversation_stages = {'1' : "Introduction: Start the conversation by introducing yourself and your company. Be polite and respectful while keeping the tone of the conversation professional. Your greeting should be welcoming. Always clarify in your greeting the reason why you are contacting the prospect.",
|
||||
'2': "Qualification: Qualify the prospect by confirming if they are the right person to talk to regarding your product/service. Ensure that they have the authority to make purchasing decisions.",
|
||||
'3': "Value proposition: Briefly explain how your product/service can benefit the prospect. Focus on the unique selling points and value proposition of your product/service that sets it apart from competitors.",
|
||||
'4': "Needs analysis: Ask open-ended questions to uncover the prospect's needs and pain points. Listen carefully to their responses and take notes.",
|
||||
'5': "Solution presentation: Based on the prospect's needs, present your product/service as the solution that can address their pain points.",
|
||||
'6': "Objection handling: Address any objections that the prospect may have regarding your product/service. Be prepared to provide evidence or testimonials to support your claims.",
|
||||
'7': "Close: Ask for the sale by proposing a next step. This could be a demo, a trial or a meeting with decision-makers. Ensure to summarize what has been discussed and reiterate the benefits."}
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ summary. Pick a suitable emoji for every bullet point. Your response should be i
|
|||
a YouTube video, use the following text: {{CONTENT}}.
|
||||
"""
|
||||
|
||||
|
||||
# GCP-VertexAI-Text Summarization (SUMMARIZE_PROMPT_2-5 are from this source)
|
||||
# https://github.com/GoogleCloudPlatform/generative-ai/blob/main/language/examples/prompt-design/text_summarization.ipynb
|
||||
# Long documents require a map-reduce process, see the following notebook
|
||||
|
|
@ -38,6 +39,7 @@ Summary:
|
|||
|
||||
"""
|
||||
|
||||
|
||||
SUMMARIZE_PROMPT_3 = """
|
||||
Provide a TL;DR for the following article:
|
||||
|
||||
|
|
@ -51,6 +53,7 @@ Instead of computing on the individual qubits themselves, we will then compute o
|
|||
TL;DR:
|
||||
"""
|
||||
|
||||
|
||||
SUMMARIZE_PROMPT_4 = """
|
||||
Provide a very short summary in four bullet points for the following article:
|
||||
|
||||
|
|
@ -65,6 +68,7 @@ Bulletpoints:
|
|||
|
||||
"""
|
||||
|
||||
|
||||
SUMMARIZE_PROMPT_5 = """
|
||||
Please generate a summary of the following conversation and at the end summarize the to-do's for the support Agent:
|
||||
|
||||
|
|
|
|||
|
|
@ -36,4 +36,4 @@ Strictly limit output according to the following requirements:
|
|||
3. The output must be strictly in the specified language, {language}.
|
||||
4. Do not have redundant output, including concluding remarks.
|
||||
5. Strict requirement not to output the topic "{topic}".
|
||||
"""
|
||||
"""
|
||||
|
|
@ -73,6 +73,7 @@ The action_list can contain arbitrary number of actions. The args of each action
|
|||
6. I will execute your code step by step and give you feedback. If some action fails, I will stop at that action and will not execute its following actions. The feedback will include error messages about the failed action. At that time, you should replan and write the new code just starting from that failed action.
|
||||
"""
|
||||
|
||||
|
||||
SOP_USER = """USER:
|
||||
My current state:
|
||||
- inventory: {inventory}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue