Winnie / bot /skills /delete_memory.py
lewiswu1209's picture
add qa skills
c1e6869
raw
history blame contribute delete
No virus
465 Bytes
class Skill:
def __init__(self:object) -> None:
pass
def set_tokenizer(self:object, tokenizer:object):
self.tokenizer = tokenizer
def process(self:object, input_txt:str, history_list:list, role_card:dict):
output_txt:str = None
if input_txt.upper()=="ERASE MEMORY":
history_list = []
output_txt = "我是谁?我在哪?我在干什么?"
return output_txt, history_list, role_card