Planner does not call expected skills to achieve goal
Hey all,
Love Semantic Kernel, it does a great job of organizing the codebase for LLM apps, and distinction/chaining of Semantic and Native skills is a charm
I've tried messing around with the planner to create a small lil star wars themed demo, but the planner itself does not chain or use the correct skills at all. Here is my code
My code:
using Microsoft.SemanticKernel.CoreSkills;
using Microsoft.SemanticKernel.KernelExtensions;
using Microsoft.SemanticKernel.Orchestration;
var kernel = Kernel.Builder.Build();
// For Azure Open AI service endpoint and keys please see
// https://learn.microsoft.com/azure/cognitive-services/openai/quickstart?pivots=rest-api
kernel.Config.AddAzureTextCompletionService(stuff goes here);
// import any other skills or functions ....
var planner = kernel.ImportSkill(new PlannerSkill(kernel));
var chatSkills = kernel.ImportSemanticSkillFromDirectory("Skills", "Chat");
int step = 1;
int maxSteps = 10;
var input = "";
while(true) {
Console.Write("User: ");
input = Console.ReadLine();
step = 1;
maxSteps = 4;
if (input.ToLower() == "exit")
{
break;
}
var result = await kernel.RunAsync(input, planner["CreatePlan"]);
// Pulled from: https://github.com/microsoft/semantic-kernel/blob/32e35d7c28a40d67bd27d81ddbfe028697c872a7/samples/notebooks/dotnet/5-using-the-planner.ipynb
var executionResults = result;
// Execute the plan until it is complete or we reach the maximum number of steps
while (!executionResults.Variables.ToPlan().IsComplete && step < maxSteps) {
var results = await kernel.RunAsync(executionResults.Variables, planner["ExecutePlan"]);
if (results.Variables.ToPlan().IsSuccessful)
{
Console.WriteLine($"Step {step} \n");
Console.WriteLine(results.Variables.ToPlan().PlanString);
if (results.Variables.ToPlan().IsComplete)
{
Console.WriteLine($"Step {step} - COMPLETE!");
Console.WriteLine("C-3PO: " + results.Variables.ToPlan().Result);
break;
}
}
else
{
Console.WriteLine($"Step {step} - Execution failed!");
Console.WriteLine(results.Variables.ToPlan().Result);
break;
}
executionResults = results;
step++;
}
}
Console.WriteLine("Program ended.");
I have two skills I am trying this out with:
- FindStarTrip
- YodaSpeak
From my understanding the planner leverages the function description to decide which skills to use
FindStarTrip description: "Help the user find a star trips between locations"
YodaSpeak description: "Translate a sentence from the user to Yoda-speak"
No matter what the user input is, the Planner only ever calls YodaSpeak
Whats going on here? And if I should be called a different built-in Planner skill or using the Planner in a different way could the docs be updated to reflect that?
Thanks!
I am running the latest version as well :)
Relevant (now closed) issue: https://github.com/microsoft/semantic-kernel/issues/211
I switched over to text-davinci-003, which does improve results in that FindStarTrips when the input is "Find me a trip from Naboo to Mandalore" will ALWAYS call YodaSpeak before FindStarTrips
but if the ask is "Please translate X to YodaSpeak" only YodaSpeak is called
Seems like the error is caused by a missing dependency libffi-dev.try to install libffi-dev like so
On Ubuntu/Debian/Linux Mint:
sudo apt-get install libffi-dev
On Fedora:
sudo dnf install libffi-devel
On CentOS/RHEL:
sudo yum install libffi-devel
After installing the missing dependency, try running the Semantic Kernel again and see if the issues been resolved
@BIZZLETONC Thanks for your help, but that has no relevance to my issue. I am on windows, and I am not using the Python (which itself lacks a planner)
The current planner is designed for GPT4 (and probably we should document that). Are you using GPT3 or 3.5 by any chance? Those models are not powerful enough for this use case.
The current planner is designed for GPT4 (and probably we should document that). Are you using GPT3 or 3.5 by any chance? Those models are not powerful enough for this use case.
Can you show me an example of how to switch the planner to use GPT4 when planner["CreatePlan"] is called, and then change back to davinci for subsequent calls? Or are we meant to use GPT4 all the time. I'm already burning money testing my app and would like to test using mostly the cheaper services.
I'm suspecting this might be the problem. I see input already as key and not get replaced...
/// Add any missing variables from a plan state variables to the context.
/// </summary>
private static void AddVariablesToContext(ContextVariables vars, SKContext context)
{
// Loop through vars and add anything missing to context
foreach (var item in vars)
{
if (!context.Variables.ContainsKey(item.Key))
{
context.Variables.Set(item.Key, item.Value);
}
}
}
Microsoft.SemanticKernel.Core.dll!Microsoft.SemanticKernel.Planning.Plan.AddVariablesToContext(Microsoft.SemanticKernel.Orchestration.ContextVariables vars, Microsoft.SemanticKernel.Orchestration.SKContext context) Line 438 C# Microsoft.SemanticKernel.Core.dll!Microsoft.SemanticKernel.Planning.Plan.InvokeAsync(Microsoft.SemanticKernel.Orchestration.SKContext context, Microsoft.SemanticKernel.AI.TextCompletion.CompleteRequestSettings settings, Microsoft.Extensions.Logging.ILogger log, System.Threading.CancellationToken cancellationToken) Line 336 C# CopilotChatApi.dll!SemanticKernel.Service.Skills.ChatSkill.AcquireExternalInformationAsync(Microsoft.SemanticKernel.Orchestration.SKContext context) Line 237 C# Microsoft.SemanticKernel.Core.dll!Microsoft.SemanticKernel.SkillDefinition.SKFunction.InvokeNativeAsync(Microsoft.SemanticKernel.Orchestration.SKContext context) Line 392 C# Microsoft.SemanticKernel.Core.dll!Microsoft.SemanticKernel.SkillDefinition.SKFunction.InvokeAsync(Microsoft.SemanticKernel.Orchestration.SKContext context, Microsoft.SemanticKernel.AI.TextCompletion.CompleteRequestSettings settings, Microsoft.Extensions.Logging.ILogger log, System.Threading.CancellationToken cancellationToken) Line 190 C# Microsoft.SemanticKernel.Core.dll!Microsoft.SemanticKernel.SkillDefinition.SKFunctionExtensions.InvokeWithCustomInputAsync(Microsoft.SemanticKernel.SkillDefinition.ISKFunction function, Microsoft.SemanticKernel.Orchestration.ContextVariables input, Microsoft.SemanticKernel.Memory.ISemanticTextMemory memory, Microsoft.SemanticKernel.SkillDefinition.IReadOnlySkillCollection skills, Microsoft.Extensions.Logging.ILogger log, System.Threading.CancellationToken cancellationToken) Line 111 C# Microsoft.SemanticKernel.Core.dll!Microsoft.SemanticKernel.TemplateEngine.Blocks.CodeBlock.RenderFunctionCallAsync(Microsoft.SemanticKernel.TemplateEngine.Blocks.FunctionIdBlock fBlock, Microsoft.SemanticKernel.Orchestration.SKContext context) Line 127 C# Microsoft.SemanticKernel.Core.dll!Microsoft.SemanticKernel.TemplateEngine.Blocks.CodeBlock.RenderCodeAsync(Microsoft.SemanticKernel.Orchestration.SKContext context) Line 87 C# Microsoft.SemanticKernel.Core.dll!Microsoft.SemanticKernel.TemplateEngine.PromptTemplateEngine.RenderAsync(System.Collections.Generic.IList<Microsoft.SemanticKernel.TemplateEngine.Blocks.Block> blocks, Microsoft.SemanticKernel.Orchestration.SKContext context) Line 78 C# [Resuming Async Method] System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder
.AsyncStateMachineBox<Microsoft.SemanticKernel.TemplateEngine.PromptTemplateEngine.<RenderAsync>d__5>.ExecutionContextCallback(object s) Line 287 C# System.Private.CoreLib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Line 183 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder .AsyncStateMachineBox<Microsoft.SemanticKernel.TemplateEngine.PromptTemplateEngine.<RenderAsync>d__5>.MoveNext(System.Threading.Thread threadPoolThread) Line 324 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.__Canon>.AsyncStateMachineBox<Microsoft.SemanticKernel.TemplateEngine.PromptTemplateEngine.<RenderAsync>d__5>.MoveNext() Line 302 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.TaskAwaiter.OutputWaitEtwEvents.AnonymousMethod__12_0(System.Action innerContinuation, System.Threading.Tasks.Task innerTask) Line 302 C# System.Private.CoreLib.dll!System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action action, bool allowInlining) Line 743 C# System.Private.CoreLib.dll!System.Threading.Tasks.Task.RunContinuations(object continuationObject) Line 3381 C# System.Private.CoreLib.dll!System.Threading.Tasks.Task<System.__Canon>.TrySetResult(System.__Canon result) Line 401 C# Microsoft.SemanticKernel.Core.dll!Microsoft.SemanticKernel.TemplateEngine.Blocks.CodeBlock.RenderCodeAsync(Microsoft.SemanticKernel.Orchestration.SKContext context) Line 92 C# [Resuming Async Method] System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder .AsyncStateMachineBox<Microsoft.SemanticKernel.TemplateEngine.Blocks.CodeBlock.<RenderCodeAsync>d__5>.ExecutionContextCallback(object s) Line 287 C# System.Private.CoreLib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Line 183 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder .AsyncStateMachineBox<Microsoft.SemanticKernel.TemplateEngine.Blocks.CodeBlock.<RenderCodeAsync>d__5>.MoveNext(System.Threading.Thread threadPoolThread) Line 324 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.__Canon>.AsyncStateMachineBox<Microsoft.SemanticKernel.TemplateEngine.Blocks.CodeBlock.<RenderCodeAsync>d__5>.MoveNext() Line 302 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.TaskAwaiter.OutputWaitEtwEvents.AnonymousMethod__12_0(System.Action innerContinuation, System.Threading.Tasks.Task innerTask) Line 302 C# System.Private.CoreLib.dll!System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action action, bool allowInlining) Line 743 C# System.Private.CoreLib.dll!System.Threading.Tasks.Task.RunContinuations(object continuationObject) Line 3381 C# System.Private.CoreLib.dll!System.Threading.Tasks.Task<System.__Canon>.TrySetResult(System.__Canon result) Line 401 C# Microsoft.SemanticKernel.Core.dll!Microsoft.SemanticKernel.TemplateEngine.Blocks.CodeBlock.RenderFunctionCallAsync(Microsoft.SemanticKernel.TemplateEngine.Blocks.FunctionIdBlock fBlock, Microsoft.SemanticKernel.Orchestration.SKContext context) Line 142 C# [Resuming Async Method] System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder .AsyncStateMachineBox<Microsoft.SemanticKernel.TemplateEngine.Blocks.CodeBlock.<RenderFunctionCallAsync>d__8>.ExecutionContextCallback(object s) Line 287 C# System.Private.CoreLib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Line 183 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder .AsyncStateMachineBox<Microsoft.SemanticKernel.TemplateEngine.Blocks.CodeBlock.<RenderFunctionCallAsync>d__8>.MoveNext(System.Threading.Thread threadPoolThread) Line 324 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.__Canon>.AsyncStateMachineBox<Microsoft.SemanticKernel.TemplateEngine.Blocks.CodeBlock.<RenderFunctionCallAsync>d__8>.MoveNext() Line 302 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.TaskAwaiter.OutputWaitEtwEvents.AnonymousMethod__12_0(System.Action innerContinuation, System.Threading.Tasks.Task innerTask) Line 302 C# System.Private.CoreLib.dll!System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action action, bool allowInlining) Line 743 C# System.Private.CoreLib.dll!System.Threading.Tasks.Task.RunContinuations(object continuationObject) Line 3381 C# System.Private.CoreLib.dll!System.Threading.Tasks.Task<System.__Canon>.TrySetResult(System.__Canon result) Line 401 C# Microsoft.SemanticKernel.Core.dll!Microsoft.SemanticKernel.SkillDefinition.SKFunctionExtensions.InvokeWithCustomInputAsync(Microsoft.SemanticKernel.SkillDefinition.ISKFunction function, Microsoft.SemanticKernel.Orchestration.ContextVariables input, Microsoft.SemanticKernel.Memory.ISemanticTextMemory memory, Microsoft.SemanticKernel.SkillDefinition.IReadOnlySkillCollection skills, Microsoft.Extensions.Logging.ILogger log, System.Threading.CancellationToken cancellationToken) Line 122 C# [Resuming Async Method] System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<Microsoft.SemanticKernel.Orchestration.SKContext>.AsyncStateMachineBox<Microsoft.SemanticKernel.SkillDefinition.SKFunctionExtensions.<InvokeWithCustomInputAsync>d__6>.ExecutionContextCallback(object s) Line 287 C# System.Private.CoreLib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Line 183 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<Microsoft.SemanticKernel.Orchestration.SKContext>.AsyncStateMachineBox<Microsoft.SemanticKernel.SkillDefinition.SKFunctionExtensions.<InvokeWithCustomInputAsync>d__6>.MoveNext(System.Threading.Thread threadPoolThread) Line 324 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.__Canon>.AsyncStateMachineBox<Microsoft.SemanticKernel.SkillDefinition.SKFunctionExtensions.<InvokeWithCustomInputAsync>d__6>.MoveNext() Line 302 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.TaskAwaiter.OutputWaitEtwEvents.AnonymousMethod__12_0(System.Action innerContinuation, System.Threading.Tasks.Task innerTask) Line 302 C# System.Private.CoreLib.dll!System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action action, bool allowInlining) Line 743 C# System.Private.CoreLib.dll!System.Threading.Tasks.Task.RunContinuations(object continuationObject) Line 3381 C# System.Private.CoreLib.dll!System.Threading.Tasks.Task<System.__Canon>.TrySetResult(System.__Canon result) Line 401 C# Microsoft.SemanticKernel.Core.dll!Microsoft.SemanticKernel.SkillDefinition.SKFunction.InvokeNativeAsync(Microsoft.SemanticKernel.Orchestration.SKContext context) Line 488 C# [Resuming Async Method] System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<Microsoft.SemanticKernel.Orchestration.SKContext>.AsyncStateMachineBox<Microsoft.SemanticKernel.SkillDefinition.SKFunction.<InvokeNativeAsync>d__39>.ExecutionContextCallback(object s) Line 287 C# System.Private.CoreLib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Line 183 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<Microsoft.SemanticKernel.Orchestration.SKContext>.AsyncStateMachineBox<Microsoft.SemanticKernel.SkillDefinition.SKFunction.<InvokeNativeAsync>d__39>.MoveNext(System.Threading.Thread threadPoolThread) Line 324 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.__Canon>.AsyncStateMachineBox<Microsoft.SemanticKernel.SkillDefinition.SKFunction.<InvokeNativeAsync>d__39>.MoveNext() Line 302 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.TaskAwaiter.OutputWaitEtwEvents.AnonymousMethod__12_0(System.Action innerContinuation, System.Threading.Tasks.Task innerTask) Line 302 C# System.Private.CoreLib.dll!System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action action, bool allowInlining) Line 743 C# System.Private.CoreLib.dll!System.Threading.Tasks.Task.RunContinuations(object continuationObject) Line 3381 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.__Canon>.SetExistingTaskResult(System.Threading.Tasks.Task<System.__Canon> task, System.__Canon result) Line 446 C# [Completed] CopilotChatApi.dll!SemanticKernel.Service.Skills.DocumentMemorySkill.QueryDocumentsAsync(string query, Microsoft.SemanticKernel.Orchestration.SKContext context) Line 108 C# System.Private.CoreLib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Line 183 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder .AsyncStateMachineBox<SemanticKernel.Service.Skills.DocumentMemorySkill.<QueryDocumentsAsync>d__3>.MoveNext(System.Threading.Thread threadPoolThread) Line 324 C# Microsoft.SemanticKernel.Core.dll!Microsoft.SemanticKernel.Memory.SemanticTextMemory.SearchAsync(string collection, string query, int limit, double minRelevanceScore, bool withEmbeddings, System.Threading.CancellationToken cancellationToken) Line 118 C# [Resuming Async Method] System.Private.CoreLib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Line 183 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.Threading.Tasks.VoidTaskResult>.AsyncStateMachineBox<Microsoft.SemanticKernel.Memory.SemanticTextMemory.<SearchAsync>d__7>.MoveNext(System.Threading.Thread threadPoolThread) Line 324 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.TaskAwaiter.OutputWaitEtwEvents.AnonymousMethod__12_0(System.Action innerContinuation, System.Threading.Tasks.Task innerTask) Line 302 C# System.Private.CoreLib.dll!System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action action, bool allowInlining) Line 743 C# System.Private.CoreLib.dll!System.Threading.Tasks.Task.RunContinuations(object continuationObject) Line 3381 C# System.Private.CoreLib.dll!System.Threading.Tasks.Task<Microsoft.SemanticKernel.AI.Embeddings.Embedding >.TrySetResult(Microsoft.SemanticKernel.AI.Embeddings.Embedding result) Line 401 C# Microsoft.SemanticKernel.Abstractions.dll!Microsoft.SemanticKernel.AI.Embeddings.EmbeddingGenerationExtensions.GenerateEmbeddingAsync<string, float>(Microsoft.SemanticKernel.AI.Embeddings.IEmbeddingGeneration<string, float> generator, string value, System.Threading.CancellationToken cancellationToken) Line 48 C# [Resuming Async Method] System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<Microsoft.SemanticKernel.AI.Embeddings.Embedding >.AsyncStateMachineBox<Microsoft.SemanticKernel.AI.Embeddings.EmbeddingGenerationExtensions.<GenerateEmbeddingAsync>d__0<string, float>>.ExecutionContextCallback(object s) Line 287 C# System.Private.CoreLib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Line 183 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<Microsoft.SemanticKernel.AI.Embeddings.Embedding >.AsyncStateMachineBox<Microsoft.SemanticKernel.AI.Embeddings.EmbeddingGenerationExtensions.<GenerateEmbeddingAsync>d__0<string, float>>.MoveNext(System.Threading.Thread threadPoolThread) Line 324 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<Microsoft.SemanticKernel.AI.Embeddings.Embedding >.AsyncStateMachineBox<Microsoft.SemanticKernel.AI.Embeddings.EmbeddingGenerationExtensions.<GenerateEmbeddingAsync>d__0<System.__Canon, float>>.MoveNext() Line 302 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.TaskAwaiter.OutputWaitEtwEvents.AnonymousMethod__12_0(System.Action innerContinuation, System.Threading.Tasks.Task innerTask) Line 302 C# System.Private.CoreLib.dll!System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action action, bool allowInlining) Line 743 C# System.Private.CoreLib.dll!System.Threading.Tasks.Task.RunContinuations(object continuationObject) Line 3381 C# System.Private.CoreLib.dll!System.Threading.Tasks.Task<System.__Canon>.TrySetResult(System.__Canon result) Line 401 C# Microsoft.SemanticKernel.Connectors.AI.OpenAI.dll!Microsoft.SemanticKernel.Connectors.AI.OpenAI.AzureSdk.ClientBase.InternalGenerateTextEmbeddingsAsync(System.Collections.Generic.IList data, System.Threading.CancellationToken cancellationToken) Unknown [Resuming Async Method] System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.Collections.Generic.IList<Microsoft.SemanticKernel.AI.Embeddings.Embedding >>.AsyncStateMachineBox<Microsoft.SemanticKernel.Connectors.AI.OpenAI.AzureSdk.ClientBase.<InternalGenerateTextEmbeddingsAsync>d__8>.ExecutionContextCallback(object s) Line 287 C# System.Private.CoreLib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Line 183 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.Collections.Generic.IList<Microsoft.SemanticKernel.AI.Embeddings.Embedding >>.AsyncStateMachineBox<Microsoft.SemanticKernel.Connectors.AI.OpenAI.AzureSdk.ClientBase.<InternalGenerateTextEmbeddingsAsync>d__8>.MoveNext(System.Threading.Thread threadPoolThread) Line 324 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.__Canon>.AsyncStateMachineBox<Microsoft.SemanticKernel.Connectors.AI.OpenAI.AzureSdk.ClientBase.<InternalGenerateTextEmbeddingsAsync>d__8>.MoveNext() Line 302 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.TaskAwaiter.OutputWaitEtwEvents.AnonymousMethod__12_0(System.Action innerContinuation, System.Threading.Tasks.Task innerTask) Line 302 C# System.Private.CoreLib.dll!System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action action, bool allowInlining) Line 743 C# System.Private.CoreLib.dll!System.Threading.Tasks.Task.RunContinuations(object continuationObject) Line 3381 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.__Canon>.SetExistingTaskResult(System.Threading.Tasks.Task<System.__Canon> task, System.__Canon result) Line 446 C# [Completed] Microsoft.SemanticKernel.Connectors.AI.OpenAI.dll!Microsoft.SemanticKernel.Connectors.AI.OpenAI.AzureSdk.ClientBase.RunRequestAsync<Azure.Response<Azure.AI.OpenAI.Embeddings>>(System.Func<System.Threading.Tasks.Task<Azure.Response<Azure.AI.OpenAI.Embeddings>>> request) Unknown System.Private.CoreLib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Line 183 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<Azure.Response<Azure.AI.OpenAI.Embeddings>>.AsyncStateMachineBox<Microsoft.SemanticKernel.Connectors.AI.OpenAI.AzureSdk.ClientBase.<RunRequestAsync>d__18<Azure.Response<Azure.AI.OpenAI.Embeddings>>>.MoveNext(System.Threading.Thread threadPoolThread) Line 324 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.TaskAwaiter.OutputWaitEtwEvents.AnonymousMethod__12_0(System.Action innerContinuation, System.Threading.Tasks.Task innerTask) Line 302 C# System.Private.CoreLib.dll!System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action action, bool allowInlining) Line 743 C# System.Private.CoreLib.dll!System.Threading.Tasks.Task.RunContinuations(object continuationObject) Line 3381 C# Azure.AI.OpenAI.dll!Azure.AI.OpenAI.OpenAIClient.GetEmbeddingsAsync(string deploymentOrModelName, Azure.AI.OpenAI.EmbeddingsOptions embeddingsOptions, System.Threading.CancellationToken cancellationToken) Unknown [Resuming Async Method] System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<Azure.Response<Azure.AI.OpenAI.Embeddings>>.AsyncStateMachineBox<Azure.AI.OpenAI.OpenAIClient.<GetEmbeddingsAsync>d__21>.ExecutionContextCallback(object s) Line 287 C# System.Private.CoreLib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Line 183 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<Azure.Response<Azure.AI.OpenAI.Embeddings>>.AsyncStateMachineBox<Azure.AI.OpenAI.OpenAIClient.<GetEmbeddingsAsync>d__21>.MoveNext(System.Threading.Thread threadPoolThread) Line 324 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.__Canon>.AsyncStateMachineBox<Azure.AI.OpenAI.OpenAIClient.<GetEmbeddingsAsync>d__21>.MoveNext() Line 302 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.TaskAwaiter.OutputWaitEtwEvents.AnonymousMethod__12_0(System.Action innerContinuation, System.Threading.Tasks.Task innerTask) Line 302 C# System.Private.CoreLib.dll!System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action action, bool allowInlining) Line 743 C# System.Private.CoreLib.dll!System.Threading.Tasks.Task.RunContinuations(object continuationObject) Line 3381 C# System.Private.CoreLib.dll!System.Threading.Tasks.Task<System.__Canon>.TrySetResult(System.__Canon result) Line 401 C# Azure.AI.OpenAI.dll!Azure.Core.HttpPipelineExtensions.ProcessMessageAsync(Azure.Core.Pipeline.HttpPipeline pipeline, Azure.Core.HttpMessage message, Azure.RequestContext requestContext, System.Threading.CancellationToken cancellationToken) Unknown [Resuming Async Method] System.Private.CoreLib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Line 183 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<Azure.Response>.AsyncStateMachineBox<Azure.Core.HttpPipelineExtensions.<ProcessMessageAsync>d__0>.MoveNext(System.Threading.Thread threadPoolThread) Line 324 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.TaskAwaiter.OutputWaitEtwEvents.AnonymousMethod__12_0(System.Action innerContinuation, System.Threading.Tasks.Task innerTask) Line 302 C# System.Private.CoreLib.dll!System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action action, bool allowInlining) Line 743 C# System.Private.CoreLib.dll!System.Threading.Tasks.Task.RunContinuations(object continuationObject) Line 3381 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.Threading.Tasks.VoidTaskResult>.SetExistingTaskResult(System.Threading.Tasks.Task<System.Threading.Tasks.VoidTaskResult> task, System.Threading.Tasks.VoidTaskResult result) Line 446 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder.SetResult() Line 49 C# [Completed] Azure.Core.dll!Azure.Core.Pipeline.RetryPolicy.ProcessAsync(Azure.Core.HttpMessage message, System.ReadOnlyMemory<Azure.Core.Pipeline.HttpPipelinePolicy> pipeline, bool async) Unknown System.Private.CoreLib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Line 183 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.Threading.Tasks.VoidTaskResult>.AsyncStateMachineBox<Azure.Core.Pipeline.RetryPolicy.<ProcessAsync>d__11>.MoveNext(System.Threading.Thread threadPoolThread) Line 324 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.TaskAwaiter.OutputWaitEtwEvents.AnonymousMethod__12_0(System.Action innerContinuation, System.Threading.Tasks.Task innerTask) Line 302 C# System.Private.CoreLib.dll!System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action action, bool allowInlining) Line 743 C# System.Private.CoreLib.dll!System.Threading.Tasks.Task.RunContinuations(object continuationObject) Line 3381 C# System.Private.CoreLib.dll!System.Threading.Tasks.Task<System.Threading.Tasks.VoidTaskResult>.TrySetResult(System.Threading.Tasks.VoidTaskResult result) Line 401 C# Azure.Core.dll!Azure.Core.Pipeline.RedirectPolicy.ProcessAsync(Azure.Core.HttpMessage message, System.ReadOnlyMemory<Azure.Core.Pipeline.HttpPipelinePolicy> pipeline, bool async) Unknown [Resuming Async Method] System.Private.CoreLib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Line 183 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.Threading.Tasks.VoidTaskResult>.AsyncStateMachineBox<Azure.Core.Pipeline.RedirectPolicy.<ProcessAsync>d__7>.MoveNext(System.Threading.Thread threadPoolThread) Line 324 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.TaskAwaiter.OutputWaitEtwEvents.AnonymousMethod__12_0(System.Action innerContinuation, System.Threading.Tasks.Task innerTask) Line 302 C# System.Private.CoreLib.dll!System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action action, bool allowInlining) Line 743 C# System.Private.CoreLib.dll!System.Threading.Tasks.Task.RunContinuations(object continuationObject) Line 3381 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.Threading.Tasks.VoidTaskResult>.SetExistingTaskResult(System.Threading.Tasks.Task<System.Threading.Tasks.VoidTaskResult> task, System.Threading.Tasks.VoidTaskResult result) Line 446 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder.SetResult() Line 49 C# [Completed] Azure.Core.dll!Azure.Core.Pipeline.BearerTokenAuthenticationPolicy.ProcessAsync(Azure.Core.HttpMessage message, System.ReadOnlyMemory<Azure.Core.Pipeline.HttpPipelinePolicy> pipeline, bool async) Unknown System.Private.CoreLib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Line 183 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.Threading.Tasks.VoidTaskResult>.AsyncStateMachineBox<Azure.Core.Pipeline.BearerTokenAuthenticationPolicy.<ProcessAsync>d__11>.MoveNext(System.Threading.Thread threadPoolThread) Line 324 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.TaskAwaiter.OutputWaitEtwEvents.AnonymousMethod__12_0(System.Action innerContinuation, System.Threading.Tasks.Task innerTask) Line 302 C# System.Private.CoreLib.dll!System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action action, bool allowInlining) Line 743 C# System.Private.CoreLib.dll!System.Threading.Tasks.Task.RunContinuations(object continuationObject) Line 3381 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.Threading.Tasks.VoidTaskResult>.SetExistingTaskResult(System.Threading.Tasks.Task<System.Threading.Tasks.VoidTaskResult> task, System.Threading.Tasks.VoidTaskResult result) Line 446 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder.SetResult() Line 49 C# [Completed] Azure.Core.dll!Azure.Core.Pipeline.ResponseBodyPolicy.ProcessAsync(Azure.Core.HttpMessage message, System.ReadOnlyMemory<Azure.Core.Pipeline.HttpPipelinePolicy> pipeline, bool async) Unknown System.Private.CoreLib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Line 183 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.Threading.Tasks.VoidTaskResult>.AsyncStateMachineBox<Azure.Core.Pipeline.ResponseBodyPolicy.<ProcessAsync>d__5>.MoveNext(System.Threading.Thread threadPoolThread) Line 324 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.TaskAwaiter.OutputWaitEtwEvents.AnonymousMethod__12_0(System.Action innerContinuation, System.Threading.Tasks.Task innerTask) Line 302 C# System.Private.CoreLib.dll!System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action action, bool allowInlining) Line 743 C# System.Private.CoreLib.dll!System.Threading.Tasks.Task.RunContinuations(object continuationObject) Line 3381 C# System.Private.CoreLib.dll!System.Threading.Tasks.Task<System.Threading.Tasks.VoidTaskResult>.TrySetResult(System.Threading.Tasks.VoidTaskResult result) Line 401 C# Azure.Core.dll!Azure.Core.Pipeline.ResponseBodyPolicy.CopyToAsync(System.IO.Stream source, System.IO.Stream destination, System.Threading.CancellationTokenSource cancellationTokenSource) Unknown [Resuming Async Method] System.Private.CoreLib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Line 183 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.Threading.Tasks.VoidTaskResult>.AsyncStateMachineBox<Azure.Core.Pipeline.ResponseBodyPolicy.<CopyToAsync>d__6>.MoveNext(System.Threading.Thread threadPoolThread) Line 324 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.TaskAwaiter.OutputWaitEtwEvents.AnonymousMethod__12_0(System.Action innerContinuation, System.Threading.Tasks.Task innerTask) Line 302 C# System.Private.CoreLib.dll!System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action action, bool allowInlining) Line 743 C# System.Private.CoreLib.dll!System.Threading.Tasks.Task.RunContinuations(object continuationObject) Line 3381 C# System.Private.CoreLib.dll!System.Threading.Tasks.Task .TrySetResult(int result) Line 401 C# System.Net.Http.dll!System.Net.Http.HttpConnection.ContentLengthReadStream.ReadAsync(System.Memory buffer, System.Threading.CancellationToken cancellationToken) Unknown [Resuming Async Method] System.Private.CoreLib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Line 183 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder .AsyncStateMachineBox<System.Net.Http.HttpConnection.ContentLengthReadStream.<ReadAsync>d__3>.MoveNext(System.Threading.Thread threadPoolThread) Line 324 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.TaskAwaiter.OutputWaitEtwEvents.AnonymousMethod__12_0(System.Action innerContinuation, System.Threading.Tasks.Task innerTask) Line 302 C# System.Private.CoreLib.dll!System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action action, bool allowInlining) Line 743 C# System.Private.CoreLib.dll!System.Threading.Tasks.Task.RunContinuations(object continuationObject) Line 3381 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder .SetExistingTaskResult(System.Threading.Tasks.Task task, int result) Line 446 C# [Completed] System.Net.Http.dll!System.Net.Http.HttpConnection.ReadAsync(System.Memory destination) Unknown System.Private.CoreLib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Line 183 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder .AsyncStateMachineBox<System.Net.Http.HttpConnection.<ReadAsync>d__105>.MoveNext(System.Threading.Thread threadPoolThread) Line 324 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.TaskAwaiter.OutputWaitEtwEvents.AnonymousMethod__12_0(System.Action innerContinuation, System.Threading.Tasks.Task innerTask) Line 302 C# System.Private.CoreLib.dll!System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action action, bool allowInlining) Line 743 C# System.Private.CoreLib.dll!System.Threading.Tasks.Task.RunContinuations(object continuationObject) Line 3381 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder .SetExistingTaskResult(System.Threading.Tasks.Task task, int result) Line 446 C# [Completed] System.Net.Security.dll!System.Net.Security.SslStream.ReadAsyncInternal<System.Net.Security.AsyncReadWriteAdapter>(System.Net.Security.AsyncReadWriteAdapter adapter, System.Memory buffer) Unknown System.Private.CoreLib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Line 183 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder .AsyncStateMachineBox<System.Net.Security.SslStream.<ReadAsyncInternal>d__188<System.Net.Security.AsyncReadWriteAdapter>>.MoveNext(System.Threading.Thread threadPoolThread) Line 324 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.TaskAwaiter.OutputWaitEtwEvents.AnonymousMethod__12_0(System.Action innerContinuation, System.Threading.Tasks.Task innerTask) Line 302 C# System.Private.CoreLib.dll!System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action action, bool allowInlining) Line 743 C# System.Private.CoreLib.dll!System.Threading.Tasks.Task.RunContinuations(object continuationObject) Line 3381 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder .SetExistingTaskResult(System.Threading.Tasks.Task task, int result) Line 446 C# [Completed] System.Net.Security.dll!System.Net.Security.SslStream.EnsureFullTlsFrameAsync<System.Net.Security.AsyncReadWriteAdapter>(System.Net.Security.AsyncReadWriteAdapter adapter) Unknown System.Private.CoreLib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Line 183 C# System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder .AsyncStateMachineBox<System.Net.Security.SslStream.<EnsureFullTlsFrameAsync>d__186<System.Net.Security.AsyncReadWriteAdapter>>.MoveNext(System.Threading.Thread threadPoolThread) Line 324 C# System.Net.Sockets.dll!System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.InvokeContinuation(System.Action
We've transitioned away from the old PlannerSkill to a set of planners like ActionPlanner and SequentialPlanner (this was closest to previous implementation). Others on the way. Please open a new issue if you are still experiencing issues @Hevia