diff --git a/src/promptflow-core/promptflow/executor/_script_executor.py b/src/promptflow-core/promptflow/executor/_script_executor.py index 04fed87db5e..251d68c1b96 100644 --- a/src/promptflow-core/promptflow/executor/_script_executor.py +++ b/src/promptflow-core/promptflow/executor/_script_executor.py @@ -227,7 +227,7 @@ async def exec_aggregation_async( return await self._exec_aggregation_async(aggregation_inputs) async def _exec_aggregation_async(self, inputs): - output = None + output, metrics = None, {} try: output = await self._aggr_func_async(**{self._aggr_input_name: inputs}) if isinstance(output, dict):