Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Method Method 'ReadYaml' in type 'Microsoft.SemanticKernel.PromptExecutionSettingsTypeConverter' is not implemetend #133

Closed
kbeaugrand opened this issue Dec 3, 2024 · 0 comments · Fixed by #134

Comments

@kbeaugrand
Copy link
Owner

Description

When using Assistants, Thread invocation failed with ReadYaml method not implemented.

System.TypeLoadException: Method 'ReadYaml' in type 'Microsoft.SemanticKernel.PromptExecutionSettingsTypeConverter' from assembly 'Microsoft.SemanticKernel.Yaml, Version=1.31.0.0, Culture=neutral, PublicKeyToken=f300afd708cefcd3' does not have an implementation.
   at Microsoft.SemanticKernel.KernelFunctionYaml.ToPromptTemplateConfig(String text)
   at Microsoft.SemanticKernel.KernelFunctionYaml.FromPromptYaml(String text, IPromptTemplateFactory promptTemplateFactory, ILoggerFactory loggerFactory)
   at Microsoft.SemanticKernel.PromptYamlKernelExtensions.CreateFunctionFromPromptYaml(Kernel kernel, String text, IPromptTemplateFactory promptTemplateFactory)
   at Microsoft.SemanticKernel.Planning.FunctionCallingStepwisePlanner.GeneratePlanAsync(String question, Kernel kernel, ILogger logger, CancellationToken cancellationToken)
   at Microsoft.SemanticKernel.Planning.FunctionCallingStepwisePlanner.ExecuteCoreAsync(Kernel kernel, String question, ChatHistory chatHistoryForSteps, CancellationToken 
cancellationToken)
   at Microsoft.SemanticKernel.Planning.PlannerInstrumentation.InvokePlanAsync[TPlan,TPlanInput,TPlanResult](Func`5 InvokePlanAsync, TPlan plan, Kernel kernel, TPlanInput input, ILogger logger, CancellationToken cancellationToken)
   at SemanticKernel.Assistants.Thread.ExecuteStepwisePlannerAsync(String goal)
   at SemanticKernel.Assistants.Thread.ExecutePlannerAsync(String userIntent)
   at SemanticKernel.Assistants.Thread.GetPlannerAnswer(String userMessage)
   at SemanticKernel.Assistants.Thread.InvokeAsync(String userMessage)
   at CGI.Llm.Toolkit.ViewModels.AgentChatViewModel.SendUserMessageAsync()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant