Record Class ModelProvider.VertexAi

Object
Record
akka.javasdk.agent.ModelProvider.VertexAi
All Implemented Interfaces:
ModelProvider
Enclosing interface:
ModelProvider

public static record ModelProvider.VertexAi(String modelName, String projectId, String location, String apiKey, String baseUrl, String apiVersion, double temperature, double topP, int thinkingBudget, int maxOutputTokens, Duration connectionTimeout, Duration responseTimeout, int maxRetries, List<akka.http.javadsl.model.HttpHeader> additionalModelRequestHeaders) extends Record implements ModelProvider
Settings for the Google Cloud Vertex AI Large Language Model provider.
  • Constructor Details

    • VertexAi

      public VertexAi(String modelName, String projectId, String location, String apiKey, String baseUrl, String apiVersion, double temperature, double topP, int thinkingBudget, int maxOutputTokens, Duration connectionTimeout, Duration responseTimeout, int maxRetries, List<akka.http.javadsl.model.HttpHeader> additionalModelRequestHeaders)
      Creates an instance of a VertexAi record class.
      Parameters:
      modelName - the value for the modelName record component
      projectId - the value for the projectId record component
      location - the value for the location record component
      apiKey - the value for the apiKey record component
      baseUrl - the value for the baseUrl record component
      apiVersion - the value for the apiVersion record component
      temperature - the value for the temperature record component
      topP - the value for the topP record component
      thinkingBudget - the value for the thinkingBudget record component
      maxOutputTokens - the value for the maxOutputTokens record component
      connectionTimeout - the value for the connectionTimeout record component
      responseTimeout - the value for the responseTimeout record component
      maxRetries - the value for the maxRetries record component
      additionalModelRequestHeaders - the value for the additionalModelRequestHeaders record component
  • Method Details

    • fromConfig

      public static ModelProvider.VertexAi fromConfig(com.typesafe.config.Config config)
    • withModelName

      public ModelProvider.VertexAi withModelName(String modelName)
    • withProjectId

      public ModelProvider.VertexAi withProjectId(String projectId)
    • withLocation

      public ModelProvider.VertexAi withLocation(String location)
    • withApiKey

      public ModelProvider.VertexAi withApiKey(String apiKey)
    • withBaseUrl

      public ModelProvider.VertexAi withBaseUrl(String baseUrl)
    • withApiVersion

      public ModelProvider.VertexAi withApiVersion(String apiVersion)
    • withTemperature

      public ModelProvider.VertexAi withTemperature(double temperature)
    • withTopP

      public ModelProvider.VertexAi withTopP(double topP)
    • withThinkingBudget

      public ModelProvider.VertexAi withThinkingBudget(int thinkingBudget)
    • withMaxOutputTokens

      public ModelProvider.VertexAi withMaxOutputTokens(int maxOutputTokens)
    • withConnectionTimeout

      public ModelProvider.VertexAi withConnectionTimeout(Duration connectionTimeout)
    • withResponseTimeout

      public ModelProvider.VertexAi withResponseTimeout(Duration responseTimeout)
    • withMaxRetries

      public ModelProvider.VertexAi withMaxRetries(int maxRetries)
    • withAdditionalModelRequestHeaders

      public ModelProvider.VertexAi withAdditionalModelRequestHeaders(List<akka.http.javadsl.model.HttpHeader> additionalModelRequestHeaders)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • modelName

      public String modelName()
      Returns the value of the modelName record component.
      Returns:
      the value of the modelName record component
    • projectId

      public String projectId()
      Returns the value of the projectId record component.
      Returns:
      the value of the projectId record component
    • location

      public String location()
      Returns the value of the location record component.
      Returns:
      the value of the location record component
    • apiKey

      public String apiKey()
      Returns the value of the apiKey record component.
      Returns:
      the value of the apiKey record component
    • baseUrl

      public String baseUrl()
      Returns the value of the baseUrl record component.
      Returns:
      the value of the baseUrl record component
    • apiVersion

      public String apiVersion()
      Returns the value of the apiVersion record component.
      Returns:
      the value of the apiVersion record component
    • temperature

      public double temperature()
      Returns the value of the temperature record component.
      Returns:
      the value of the temperature record component
    • topP

      public double topP()
      Returns the value of the topP record component.
      Returns:
      the value of the topP record component
    • thinkingBudget

      public int thinkingBudget()
      Returns the value of the thinkingBudget record component.
      Returns:
      the value of the thinkingBudget record component
    • maxOutputTokens

      public int maxOutputTokens()
      Returns the value of the maxOutputTokens record component.
      Returns:
      the value of the maxOutputTokens record component
    • connectionTimeout

      public Duration connectionTimeout()
      Returns the value of the connectionTimeout record component.
      Returns:
      the value of the connectionTimeout record component
    • responseTimeout

      public Duration responseTimeout()
      Returns the value of the responseTimeout record component.
      Returns:
      the value of the responseTimeout record component
    • maxRetries

      public int maxRetries()
      Returns the value of the maxRetries record component.
      Returns:
      the value of the maxRetries record component
    • additionalModelRequestHeaders

      public List<akka.http.javadsl.model.HttpHeader> additionalModelRequestHeaders()
      Returns the value of the additionalModelRequestHeaders record component.
      Returns:
      the value of the additionalModelRequestHeaders record component