diff --git a/python/semantic_kernel/prompt_template/prompt_template_config.py b/python/semantic_kernel/prompt_template/prompt_template_config.py index 051138220799..aaec7739541e 100644 --- a/python/semantic_kernel/prompt_template/prompt_template_config.py +++ b/python/semantic_kernel/prompt_template/prompt_template_config.py @@ -83,7 +83,7 @@ def get_kernel_parameter_metadata(self) -> Sequence[KernelParameterMetadata]: name=variable.name, description=variable.description, default_value=variable.default, - type=variable.json_schema, # TODO (moonbox3): update to handle complex JSON schemas + type_=variable.json_schema, # TODO (moonbox3): update to handle complex JSON schemas # type: ignore is_required=variable.is_required, ) for variable in self.input_variables diff --git a/python/tests/unit/prompt_template/test_prompt_templates.py b/python/tests/unit/prompt_template/test_prompt_templates.py index 7a0247d2d131..80e345f2431c 100644 --- a/python/tests/unit/prompt_template/test_prompt_templates.py +++ b/python/tests/unit/prompt_template/test_prompt_templates.py @@ -326,3 +326,4 @@ def test_from_yaml_with_function_choice_behavior(): def test_multiple_param_in_prompt(): func = KernelFunctionFromPrompt("test", prompt="{{$param}}{{$param}}") assert len(func.parameters) == 1 + assert func.metadata.parameters[0].schema_data == {"type": "object"}