refactor: talk prompt

This commit is contained in:
莘权 马 2023-09-04 22:38:58 +08:00
parent 7cb19c943c
commit 107ddbe308

View file

@ -26,7 +26,7 @@ class TalkAction(Action):
self._rsp = None
@property
def prompt(self):
def prompt_old(self):
prompt = ""
if CONFIG.agent_description:
prompt = (
@ -46,7 +46,7 @@ class TalkAction(Action):
return prompt
@property
def formation_prompt(self):
def prompt(self):
kvs = {
"{role}": CONFIG.agent_description or "",
"{history}": self._history_summary or "",