semantic-kernel icon indicating copy to clipboard operation
semantic-kernel copied to clipboard

kernel.CreateSemanticFunction functionName is marked optional, but is not optional

Open bkrabach opened this issue 2 years ago • 1 comments

Describe the bug If using the overload for kernel.CreateSemanticFunction that takes a PromptTemplateConfig, the functionName is marked optional, but if you execute the code it will throw an exception that functionName is not optional.

If you use the overload that takes just a promptTemplate (everything else optional), then you omit the functionName and when executing it will work, despite not having a functionName defined.

@shawncal

bkrabach avatar Apr 28 '23 15:04 bkrabach

#849 should fix this too

dluc avatar May 08 '23 04:05 dluc

Closing given #849 - please reopen if needed!

craigomatic avatar Jun 03 '23 00:06 craigomatic