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 f3b50bc3c4
commit 01458895c2
4 changed files with 25 additions and 7 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())