Class GeminiStreamHandler
java.lang.Object
sk.iway.iwcm.components.ai.providers.gemini.GeminiStreamHandler
Handler for streaming responses from Gemini API
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal com.fasterxml.jackson.databind.JsonNode
final void
handleBufferedReader
(BufferedReader reader, BufferedWriter writer) boolean
boolean
-
Constructor Details
-
GeminiStreamHandler
-
-
Method Details
-
getUsageChunk
public final com.fasterxml.jackson.databind.JsonNode getUsageChunk() -
handleBufferedReader
public final void handleBufferedReader(BufferedReader reader, BufferedWriter writer) throws IOException - Throws:
IOException
-
isWaitingForText
public boolean isWaitingForText() -
isWaitingForUsage
public boolean isWaitingForUsage() -
getTotalTokenCount
-
getCandidatesTokenCount
-
getThoughtsTokenCount
-
getPromptTokenCount
-
getIncludeHandler
-