mirror of
https://github.com/microsoft/autogen.git
synced 2025-10-17 19:09:36 +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();
|
var context = new ContextVariables();
|
||||||
context.Set("input", prompt);
|
context.Set("input", prompt);
|
||||||
context.Set("wafContext", wafContext);
|
//context.Set("wafContext", wafContext);
|
||||||
|
|
||||||
var answer = await kernel.RunAsync(context, function).ConfigureAwait(false);
|
var answer = await kernel.RunAsync(context, function).ConfigureAwait(false);
|
||||||
var result = typeof(T) != typeof(string) ? JsonSerializer.Deserialize<T>(answer.ToString()) : (T)(object)answer.ToString();
|
var result = typeof(T) != typeof(string) ? JsonSerializer.Deserialize<T>(answer.ToString()) : (T)(object)answer.ToString();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user