diff --git a/python/semantic_kernel/functions/kernel_function_decorator.py b/python/semantic_kernel/functions/kernel_function_decorator.py index 4d103a1a9093..79a83fc4f18f 100644 --- a/python/semantic_kernel/functions/kernel_function_decorator.py +++ b/python/semantic_kernel/functions/kernel_function_decorator.py @@ -152,7 +152,7 @@ def _parse_parameter(name: str, param: Any, default: Any) -> dict[str, Any]: ret["description"] = meta elif isinstance(meta, dict): # only override from the metadata if it is not already set - if "description" not in ret and (description := meta.pop("description", None)): + if "description" not in ret and (description := meta.get("description")): ret["description"] = description ret.update(meta) else: