This commit is contained in:
Ryan Sweet 2023-07-18 09:14:03 -07:00
commit 31c7b112d3

View File

@ -110,7 +110,7 @@ public class SemanticKernelSkill : CodeActivity<string>
var context = new ContextVariables();
context.Set("input", prompt);
context.Set("wafContext", wafContext);
//context.Set("wafContext", wafContext);
var answer = await kernel.RunAsync(context, function).ConfigureAwait(false);
var result = typeof(T) != typeof(string) ? JsonSerializer.Deserialize<T>(answer.ToString()) : (T)(object)answer.ToString();