refactor(gemini-live): use inherited LLMService._function_is_async

The same registry-lookup helper was hoisted to LLMService in #4447, so
drop the local duplicate. Behavior unchanged.
This commit is contained in:
Paul Kompfner
2026-05-08 16:27:37 -04:00
parent 53922819ed
commit e21180b962

View File

@@ -383,18 +383,6 @@ class GeminiLiveLLMService(LLMService[GeminiLLMAdapter]):
"""
return not self._is_gemini_3
def _function_is_async(self, name: str) -> bool:
"""Whether the named function was registered with cancel_on_interruption=False.
Mirrors the lookup pattern in ``LLMService.run_function_calls``:
a name-specific registry entry takes precedence; if there isn't
one, fall back to the ``None``-keyed catch-all entry.
"""
item = self._functions.get(name)
if item is None:
item = self._functions.get(None)
return item is not None and not item.cancel_on_interruption
def __init__(
self,
*,