services(llm): add on_completion_timeout event

This commit is contained in:
Aleix Conchillo Flaqué
2025-02-24 14:23:03 -08:00
parent fc544fa61c
commit 2110b79507
5 changed files with 25 additions and 7 deletions

View File

@@ -142,6 +142,8 @@ class LLMService(AIService):
self._callbacks = {}
self._start_callbacks = {}
self._register_event_handler("on_completion_timeout")
# TODO-CB: callback function type
def register_function(self, function_name: Optional[str], callback, start_callback=None):
# Registering a function with the function_name set to None will run that callback