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: Handlebars planner fails to create plan #3

Open
Barshan-Mandal opened this issue Aug 20, 2024 · 0 comments
Open

Bug: Handlebars planner fails to create plan #3

Barshan-Mandal opened this issue Aug 20, 2024 · 0 comments

Comments

@Barshan-Mandal
Copy link

Barshan-Mandal commented Aug 20, 2024

var plan = await planner.CreatePlanAsync(kernel, "get the current date and time"); throws the error below:

System.Text.Json.JsonException HResult=0x80131500 Message=The JSON value could not be converted to System.String. Path: $ | LineNumber: 0 | BytePositionInLine: 1. Source=System.Text.Json StackTrace: at System.Text.Json.ThrowHelper.ReThrowWithPath(ReadStack& state, Utf8JsonReader& reader, Exception ex) at System.Text.Json.Serialization.JsonConverter1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
at System.Text.Json.JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan1 utf8Json, JsonTypeInfo1 jsonTypeInfo, Nullable1 actualByteCount) at System.Text.Json.JsonSerializer.Deserialize[TValue](JsonElement element, JsonSerializerOptions options) at Microsoft.SemanticKernel.Planning.Handlebars.KernelParameterMetadataExtensions.ParseJsonSchema(KernelParameterMetadata parameter) at Microsoft.SemanticKernel.Planning.Handlebars.HandlebarsPlanner.SetComplexTypeDefinition(KernelParameterMetadata parameter, HashSet1 complexParameterTypes, Dictionary2 complexParameterSchemas) at Microsoft.SemanticKernel.Planning.Handlebars.HandlebarsPlanner.GetAvailableFunctionsManual(IEnumerable1 availableFunctions, HashSet1& complexParameterTypes, Dictionary2& complexParameterSchemas)
at Microsoft.SemanticKernel.Planning.Handlebars.HandlebarsPlanner.d__5.MoveNext()
at Microsoft.SemanticKernel.Planning.PlannerInstrumentation.d__4`2.MoveNext()
at phi3vision_aiconsole.Program.d__1.MoveNext() in O:\Windows For Programming\Projects\Visual Studio\Console\Ai\phi3vision_aiconsole\Program.cs:line 87
at phi3vision_aiconsole.Program.

d__0.MoveNext() in O:\Windows For Programming\Projects\Visual Studio\Console\Ai\phi3vision_aiconsole\Program.cs:line 36

This exception was originally thrown at this call stack:
[External Code]

Inner Exception 1:
InvalidOperationException: Cannot get the value of a token type 'StartArray' as a string.
`

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

No branches or pull requests

1 participant