Skip to content

Commit 8ef99f9

Browse files
google-genai-botcopybara-github
authored andcommitted
fix: Removing deprecated Optional methods
PiperOrigin-RevId: 897675400
1 parent 2b42ed4 commit 8ef99f9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/main/java/com/google/adk/flows/llmflows/ResponseProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public abstract static class ResponseProcessingResult {
5353
public static ResponseProcessingResult create(
5454
LlmResponse updatedResponse, Iterable<Event> events, String transferToAgent) {
5555
return new AutoValue_ResponseProcessor_ResponseProcessingResult(
56-
updatedResponse, events, Optional.of(transferToAgent));
56+
updatedResponse, events, Optional.ofNullable(transferToAgent));
5757
}
5858

5959
public static ResponseProcessingResult create(

0 commit comments

Comments
 (0)