When i try to setup an invocationContext with PromptExecutionSettings and withResponseFormat to enum ResponseFormat.JSON_OBJECT the library going in error becouse the builder expect a String.
My expectation is to not have a java.lang.ClassCastExceptio at this point
Screenshots
java.lang.ClassCastException: class com.microsoft.semantickernel.orchestration.ResponseFormat cannot be cast to class java.lang.String (com.microsoft.semantickernel.orchestration.ResponseFormat is in unnamed module of loader 'app'; java.lang.String is in module java.base of loader 'bootstrap')
at com.microsoft.semantickernel.orchestration.PromptExecutionSettings$Builder.build(PromptExecutionSettings.java:579) ~[semantickernel-api-1.0.1.jar:?]
Describe the bug
When i try to setup an invocationContext with PromptExecutionSettings and withResponseFormat to enum ResponseFormat.JSON_OBJECT the library going in error becouse the builder expect a String.
To Reproduce
below is my code:
Expected behavior
My expectation is to not have a java.lang.ClassCastExceptio at this point
Screenshots java.lang.ClassCastException: class com.microsoft.semantickernel.orchestration.ResponseFormat cannot be cast to class java.lang.String (com.microsoft.semantickernel.orchestration.ResponseFormat is in unnamed module of loader 'app'; java.lang.String is in module java.base of loader 'bootstrap') at com.microsoft.semantickernel.orchestration.PromptExecutionSettings$Builder.build(PromptExecutionSettings.java:579) ~[semantickernel-api-1.0.1.jar:?]
Platform