Add interruption to stream query #52

Merged
k.marinus merged 1 commits from feat/longer-pauses-possible into main 2026-01-30 17:01:12 +00:00
Showing only changes of commit 3579aee114 - Show all commits

View File

@@ -179,6 +179,9 @@ class LLMAgent(BaseAgent):
full_message = ""
current_chunk = ""
async for token in self._stream_query_llm(messages):
if self._interrupted:
return
full_message += token
current_chunk += token