mirror of
https://github.com/microsoft/autogen.git
synced 2025-10-14 17:39:00 +00:00
Merge branch 'main' of https://github.com/microsoft/sk-dev-team
This commit is contained in:
commit
31c7b112d3
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user