microsoft / semantic-kernel

Integrate cutting-edge LLM technology quickly and easily into your apps
https://aka.ms/semantic-kernel
MIT License
21.72k stars 3.22k forks source link

.Net: [KernelPromptTemplate] Support primitives in values #4015

Open SergeyMenshykh opened 10 months ago

SergeyMenshykh commented 10 months ago

Today, 'KernelPromptTemplate' requires all values, such as 28 in the expression {{p.f a='28'}}, to be wrapped in single or double quotes. Considering that it's being updated to support primitives - https://github.com/microsoft/semantic-kernel/pull/4013, it would be logical to expect the expression to be like this: {{p.f a=28}}, where the value 28 is specified without single or double quotes and eventually passed to the function as is, without unnecessary string-to-int conversion.

markwallace-microsoft commented 1 week ago

Moving to backlog until we get feedback from customers that this change is required