upgraded signature of run workflow

This commit is contained in:
Saifeddine ALOUI 2024-01-11 18:11:56 +01:00
parent a5388d5951
commit 01cc3a30b2

View File

@ -1786,7 +1786,7 @@ class APScript(StateMachine):
def generate(self, prompt, max_size, temperature = None, top_k = None, top_p=None, repeat_penalty=None, repeat_last_n=None, callback=None, debug=False ):
return self.personality.generate(prompt, max_size, temperature, top_k, top_p, repeat_penalty, repeat_last_n, callback, debug=debug)
def run_workflow(self, prompt:str, previous_discussion_text:str="", callback: Callable[[str, MSG_TYPE, dict, list], bool]=None, context_details=None):
def run_workflow(self, prompt:str, previous_discussion_text:str="", callback: Callable[[str, MSG_TYPE, dict, list], bool]=None, context_details:dict=None):
"""
This function generates code based on the given parameters.