Class GeminiConversation
java.lang.Object
com.pnfsoftware.jeb.client.mcp.llm.GeminiConversation
- All Implemented Interfaces:
ILlmConversation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected long
protected okhttp3.OkHttpClient
initialized by the builderprotected String
protected int
last request's count of input tokens (including cache-hits!)protected int
last request's count of input tokens that came from the cacheprotected int
last request's count of output tokens, including cache-hitsprotected LlmSettings
initialized by the builderprotected int
protected int
protected int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
close()
protected String
send
(List<LlmConversationBuilder.Content> contentList)
-
Field Details
-
settings
initialized by the builder -
httpClient
protected okhttp3.OkHttpClient httpClientinitialized by the builder -
totalTokensInCacheHit
protected int totalTokensInCacheHit -
totalTokensIn
protected int totalTokensIn -
totalTokensOut
protected int totalTokensOut -
lastTokensInCacheHit
protected int lastTokensInCacheHitlast request's count of input tokens that came from the cache -
lastTokensIn
protected int lastTokensInlast request's count of input tokens (including cache-hits!) -
lastTokensOut
protected int lastTokensOutlast request's count of output tokens, including cache-hits -
lastStopReason
-
aggrRespTimeMs
protected long aggrRespTimeMs -
aggrMessages
-
-
Constructor Details
-
GeminiConversation
public GeminiConversation()
-
-
Method Details
-
listModels
- Throws:
Exception
-
send
public List<LlmConversationBuilder.Content> send(List<LlmConversationBuilder.Content> contentList) throws Exception - Throws:
Exception
-
close
public void close()- Specified by:
close
in interfaceILlmConversation
-
resolveApiKey
-
getInformation
- Specified by:
getInformation
in interfaceILlmConversation
-
send
- Specified by:
send
in interfaceILlmConversation
- Throws:
Exception
-
getMessages
- Specified by:
getMessages
in interfaceILlmConversation
-
clearMessages
public void clearMessages()- Specified by:
clearMessages
in interfaceILlmConversation
-