Harrison/prompt prefix (#3496)

Co-authored-by: Ian <ArGregoryIan@gmail.com>
fix_agent_callbacks
Harrison Chase 1 year ago committed by GitHub
parent 408a0183cd
commit 36a039d017
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -20,12 +20,14 @@ class AutoGPTPrompt(BaseChatPromptTemplate, BaseModel):
send_token_limit: int = 4196 send_token_limit: int = 4196
def construct_full_prompt(self, goals: List[str]) -> str: def construct_full_prompt(self, goals: List[str]) -> str:
prompt_start = """Your decisions must always be made independently prompt_start = (
without seeking user assistance. Play to your strengths "Your decisions must always be made independently "
as an LLM and pursue simple strategies with no legal complications. "without seeking user assistance.\n"
If you have completed all your tasks, "Play to your strengths as an LLM and pursue simple "
make sure to use the "finish" command.""" "strategies with no legal complications.\n"
"If you have completed all your tasks, make sure to "
'use the "finish" command.'
)
# Construct full prompt # Construct full prompt
full_prompt = ( full_prompt = (
f"You are {self.ai_name}, {self.ai_role}\n{prompt_start}\n\nGOALS:\n\n" f"You are {self.ai_name}, {self.ai_role}\n{prompt_start}\n\nGOALS:\n\n"

Loading…
Cancel
Save