-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Java: Fix linting issues #4800
Java: Fix linting issues #4800
Conversation
...java/com/microsoft/semantickernel/aiservices/openai/chatcompletion/OpenAIChatCompletion.java
Outdated
Show resolved
Hide resolved
@@ -105,6 +105,6 @@ Is it weekend time (weekend/not weekend)? | |||
// Show the result | |||
System.out.println("--- Prompt Function result"); | |||
var result = kernel.invokeAsync(kindOfDay, null, String.class).block(); | |||
System.out.println(result.getResultVariable()); | |||
System.out.println(result.getResultVariable().getValue()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought there was a "getValue()" on FunctionResult that is a shorthand for this.
<edit>
I see you do this in Example09. Best to be consistent. It doesn't matter to me which way.</edit>
...c/main/java/com/microsoft/semantickernel/samples/syntaxexamples/Example09_FunctionTypes.java
Show resolved
Hide resolved
...c/main/java/com/microsoft/semantickernel/samples/syntaxexamples/Example09_FunctionTypes.java
Outdated
Show resolved
Hide resolved
...c/main/java/com/microsoft/semantickernel/samples/syntaxexamples/Example09_FunctionTypes.java
Show resolved
Hide resolved
return of(t); | ||
} | ||
|
||
public static <T> ContextVariable<T> untypedOf( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this return ContextVariable<?>
...c/main/java/com/microsoft/semantickernel/orchestration/contextvariables/ContextVariable.java
Show resolved
Hide resolved
Fix linting issues
Fix linting issues
Motivation and Context
Description
Contribution Checklist