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 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

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     

    Fields inherited from class ai.driftkit.common.domain.client.ModelClient

    jsonObjectSupport
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static ai.driftkit.common.domain.client.ModelClient
    create(ai.driftkit.config.EtlConfig.VaultConfig config)
     
    Set<ai.driftkit.common.domain.client.ModelClient.Capability>
     
    ai.driftkit.common.domain.client.ModelTextResponse
    imageToText(ai.driftkit.common.domain.client.ModelTextRequest prompt)
     
    ai.driftkit.common.domain.client.ModelClient
    init(ai.driftkit.config.EtlConfig.VaultConfig config)
     
    ai.driftkit.common.domain.streaming.StreamingResponse<String>
    streamTextToText(ai.driftkit.common.domain.client.ModelTextRequest prompt)
     
    ai.driftkit.common.domain.client.ModelImageResponse
    textToImage(ai.driftkit.common.domain.client.ModelImageRequest prompt)
     
    ai.driftkit.common.domain.client.ModelTextResponse
    textToText(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

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • GeminiModelClient

      public GeminiModelClient()
  • Method Details

    • init

      public ai.driftkit.common.domain.client.ModelClient init(ai.driftkit.config.EtlConfig.VaultConfig config)
      Specified by:
      init in interface ai.driftkit.common.domain.client.ModelClient.ModelClientInit
    • create

      public static ai.driftkit.common.domain.client.ModelClient create(ai.driftkit.config.EtlConfig.VaultConfig config)
    • getCapabilities

      public Set<ai.driftkit.common.domain.client.ModelClient.Capability> getCapabilities()
      Specified by:
      getCapabilities in class ai.driftkit.common.domain.client.ModelClient
    • textToText

      public ai.driftkit.common.domain.client.ModelTextResponse textToText(ai.driftkit.common.domain.client.ModelTextRequest prompt)
      Overrides:
      textToText in class ai.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:
      imageToText in class ai.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:
      textToImage in class ai.driftkit.common.domain.client.ModelClient
    • streamTextToText

      public ai.driftkit.common.domain.streaming.StreamingResponse<String> streamTextToText(ai.driftkit.common.domain.client.ModelTextRequest prompt)
      Overrides:
      streamTextToText in class ai.driftkit.common.domain.client.ModelClient