Class GeminiConversation
java.lang.Object
com.pnfsoftware.jeb.client.mcp.llm.GeminiConversation
- All Implemented Interfaces:
ILlmConversation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected longprotected okhttp3.OkHttpClientinitialized by the builderprotected Stringprotected intlast request's count of input tokens (including cache-hits!)protected intlast request's count of input tokens that came from the cacheprotected intlast request's count of output tokens, including cache-hitsprotected LlmSettingsinitialized by the builderprotected intprotected intprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclose()protected Stringsend(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:
closein interfaceILlmConversation
-
resolveApiKey
-
getInformation
- Specified by:
getInformationin interfaceILlmConversation
-
send
- Specified by:
sendin interfaceILlmConversation- Throws:
Exception
-
getMessages
- Specified by:
getMessagesin interfaceILlmConversation
-
clearMessages
public void clearMessages()- Specified by:
clearMessagesin interfaceILlmConversation
-