Class GeminiModelClient
java.lang.Object
ai.driftkit.common.domain.client.ModelClient
ai.driftkit.clients.gemini.client.GeminiModelClient
- All Implemented Interfaces:
ai.driftkit.common.domain.client.ModelClient.ModelClientInit
public class GeminiModelClient
extends ai.driftkit.common.domain.client.ModelClient
implements ai.driftkit.common.domain.client.ModelClient.ModelClientInit
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSignals that the model degenerated into repetition (seeGeminiModelClient.ContentLoopDetector).Nested classes/interfaces inherited from class ai.driftkit.common.domain.client.ModelClient
ai.driftkit.common.domain.client.ModelClient.Capability, ai.driftkit.common.domain.client.ModelClient.ModelClientInit, ai.driftkit.common.domain.client.ModelClient.Property, ai.driftkit.common.domain.client.ModelClient.ResponseFormatType, ai.driftkit.common.domain.client.ModelClient.Tool, ai.driftkit.common.domain.client.ModelClient.ToolFunction, ai.driftkit.common.domain.client.ModelClient.UnsupportedCapabilityException -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class ai.driftkit.common.domain.client.ModelClient
jsonObjectSupport -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ai.driftkit.common.domain.client.ModelClientcreate(ai.driftkit.config.EtlConfig.VaultConfig config) Set<ai.driftkit.common.domain.client.ModelClient.Capability> ai.driftkit.common.domain.client.ModelTextResponseimageToText(ai.driftkit.common.domain.client.ModelTextRequest prompt) ai.driftkit.common.domain.client.ModelClientinit(ai.driftkit.config.EtlConfig.VaultConfig config) ai.driftkit.common.domain.streaming.StreamingResponse<String> streamTextToText(ai.driftkit.common.domain.client.ModelTextRequest prompt) booleanai.driftkit.common.domain.client.ModelImageResponsetextToImage(ai.driftkit.common.domain.client.ModelImageRequest prompt) ai.driftkit.common.domain.client.ModelTextResponsetextToText(ai.driftkit.common.domain.client.ModelTextRequest prompt) Methods inherited from class ai.driftkit.common.domain.client.ModelClient
canEqual, equals, getFrequencyPenalty, getLogitBias, getLogprobs, getMaxCompletionTokens, getMaxTokens, getModel, getPresencePenalty, getSeed, getStop, getSystemMessages, getTemperature, getTools, getTopLogprobs, getTopP, getWorkflow, hashCode, isJsonObjectSupport, setFrequencyPenalty, setJsonObjectSupport, setLogitBias, setLogprobs, setMaxCompletionTokens, setMaxTokens, setModel, setPresencePenalty, setSeed, setStop, setSystemMessages, setTemperature, setTools, setTopLogprobs, setTopP, setWorkflow, toString
-
Field Details
-
GEMINI_DEFAULT
- See Also:
-
GEMINI_SMART_DEFAULT
- See Also:
-
GEMINI_MINI_DEFAULT
- See Also:
-
GEMINI_IMAGE_DEFAULT
- See Also:
-
GEMINI_PREFIX
- See Also:
-
-
Constructor Details
-
GeminiModelClient
public GeminiModelClient()
-
-
Method Details
-
init
public ai.driftkit.common.domain.client.ModelClient init(ai.driftkit.config.EtlConfig.VaultConfig config) - Specified by:
initin interfaceai.driftkit.common.domain.client.ModelClient.ModelClientInit
-
create
public static ai.driftkit.common.domain.client.ModelClient create(ai.driftkit.config.EtlConfig.VaultConfig config) -
getCapabilities
- Specified by:
getCapabilitiesin classai.driftkit.common.domain.client.ModelClient
-
supportsToolMessages
public boolean supportsToolMessages()- Overrides:
supportsToolMessagesin classai.driftkit.common.domain.client.ModelClient
-
textToText
public ai.driftkit.common.domain.client.ModelTextResponse textToText(ai.driftkit.common.domain.client.ModelTextRequest prompt) - Overrides:
textToTextin classai.driftkit.common.domain.client.ModelClient
-
imageToText
public ai.driftkit.common.domain.client.ModelTextResponse imageToText(ai.driftkit.common.domain.client.ModelTextRequest prompt) throws ai.driftkit.common.domain.client.ModelClient.UnsupportedCapabilityException - Overrides:
imageToTextin classai.driftkit.common.domain.client.ModelClient- Throws:
ai.driftkit.common.domain.client.ModelClient.UnsupportedCapabilityException
-
textToImage
public ai.driftkit.common.domain.client.ModelImageResponse textToImage(ai.driftkit.common.domain.client.ModelImageRequest prompt) - Overrides:
textToImagein classai.driftkit.common.domain.client.ModelClient
-
streamTextToText
public ai.driftkit.common.domain.streaming.StreamingResponse<String> streamTextToText(ai.driftkit.common.domain.client.ModelTextRequest prompt) - Overrides:
streamTextToTextin classai.driftkit.common.domain.client.ModelClient
-