26 String
response = currentResponsePart.getResponse();
27 String thinking = currentResponsePart.getThinking();
30 boolean hasThinking = thinking !=
null && !thinking.isEmpty();
32 if (!hasResponse && hasThinking && thinkingStreamHandler !=
null) {
37 thinkingStreamHandler.accept(thinking);
38 }
else if (hasResponse && responseStreamHandler !=
null) {
43 responseStreamHandler.accept(
response);