LLMService: don't run function calls if none are given

This commit is contained in:
Aleix Conchillo Flaqué
2025-05-31 14:01:56 -07:00
parent ed84637b55
commit ef3143d558

View File

@@ -220,6 +220,9 @@ class LLMService(AIService):
return function_name in self._functions.keys()
async def run_function_calls(self, function_calls: Sequence[FunctionCallFromLLM]):
if len(function_calls) == 0:
return
await self._call_event_handler("on_function_calls_started", function_calls)
# Push frame both downstream and upstream