enhanced summary

This commit is contained in:
Saifeddine ALOUI 2025-02-10 01:31:39 +01:00
parent 47a60e8844
commit 21a8aa96d6

View File

@ -3812,7 +3812,7 @@ class APScript(StateMachine):
]),
max_generation_size=max_generation_size, callback=self.sink)
return translated
def sequential_summarize(self, text: Any, summary_context: str = "", format: str = "bullet points", tone: str = "neutral", ctx_size: int = 4096, callback = None):
def sequential_summarize(self, text: str, summary_context: str = "", task="Create final summary using this memory.", format: str = "bullet points", tone: str = "neutral", ctx_size: int = 4096, callback = None):
"""
Summarizes a long text sequentially by processing chunks and maintaining a memory.