LLMAssistantContextAggregator: create a task to run on_context_updated

This commit is contained in:
Aleix Conchillo Flaqué
2025-03-24 15:39:35 -07:00
parent 3b3fdd0da1
commit 397bae29f7
3 changed files with 19 additions and 5 deletions

View File

@@ -369,7 +369,7 @@ class LLMService(AIService):
if tuple_to_remove:
self._function_call_tasks.discard(tuple_to_remove)
# The task is finished so this should exit immediately. We need to
# do this because otherwise the task manager would have a dangling
# do this because otherwise the task manager would report a dangling
# task if we don't remove it.
asyncio.run_coroutine_threadsafe(self.wait_for_task(task), self.get_event_loop())