File size: 465 Bytes
f3c6b77
 
 
 
 
c1e6869
 
 
f3c6b77
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

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