Package akka.javasdk.agent
Record Class 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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface akka.javasdk.agent.ModelProvider
ModelProvider.Anthropic, ModelProvider.Bedrock, ModelProvider.Custom, ModelProvider.FromConfig, ModelProvider.GoogleAIGemini, ModelProvider.HuggingFace, ModelProvider.LocalAI, ModelProvider.Ollama, ModelProvider.OpenAi, ModelProvider.VertexAi -
Constructor Summary
ConstructorsConstructorDescriptionVertexAi(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 aVertexAirecord class. -
Method Summary
Modifier and TypeMethodDescriptionList<akka.http.javadsl.model.HttpHeader> Returns the value of theadditionalModelRequestHeadersrecord component.apiKey()Returns the value of theapiKeyrecord component.Returns the value of theapiVersionrecord component.baseUrl()Returns the value of thebaseUrlrecord component.Returns the value of theconnectionTimeoutrecord component.final booleanIndicates whether some other object is "equal to" this one.static ModelProvider.VertexAifromConfig(com.typesafe.config.Config config) final inthashCode()Returns a hash code value for this object.location()Returns the value of thelocationrecord component.intReturns the value of themaxOutputTokensrecord component.intReturns the value of themaxRetriesrecord component.Returns the value of themodelNamerecord component.Returns the value of theprojectIdrecord component.Returns the value of theresponseTimeoutrecord component.doubleReturns the value of thetemperaturerecord component.intReturns the value of thethinkingBudgetrecord component.doubletopP()Returns the value of thetopPrecord component.final StringtoString()Returns a string representation of this record class.withAdditionalModelRequestHeaders(List<akka.http.javadsl.model.HttpHeader> additionalModelRequestHeaders) withApiKey(String apiKey) withApiVersion(String apiVersion) withBaseUrl(String baseUrl) withConnectionTimeout(Duration connectionTimeout) withLocation(String location) withMaxOutputTokens(int maxOutputTokens) withMaxRetries(int maxRetries) withModelName(String modelName) withProjectId(String projectId) withResponseTimeout(Duration responseTimeout) withTemperature(double temperature) withThinkingBudget(int thinkingBudget) withTopP(double topP)
-
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 aVertexAirecord class.- Parameters:
modelName- the value for themodelNamerecord componentprojectId- the value for theprojectIdrecord componentlocation- the value for thelocationrecord componentapiKey- the value for theapiKeyrecord componentbaseUrl- the value for thebaseUrlrecord componentapiVersion- the value for theapiVersionrecord componenttemperature- the value for thetemperaturerecord componenttopP- the value for thetopPrecord componentthinkingBudget- the value for thethinkingBudgetrecord componentmaxOutputTokens- the value for themaxOutputTokensrecord componentconnectionTimeout- the value for theconnectionTimeoutrecord componentresponseTimeout- the value for theresponseTimeoutrecord componentmaxRetries- the value for themaxRetriesrecord componentadditionalModelRequestHeaders- the value for theadditionalModelRequestHeadersrecord component
-
-
Method Details
-
fromConfig
-
withModelName
-
withProjectId
-
withLocation
-
withApiKey
-
withBaseUrl
-
withApiVersion
-
withTemperature
-
withTopP
-
withThinkingBudget
-
withMaxOutputTokens
-
withConnectionTimeout
-
withResponseTimeout
-
withMaxRetries
-
withAdditionalModelRequestHeaders
public ModelProvider.VertexAi withAdditionalModelRequestHeaders(List<akka.http.javadsl.model.HttpHeader> additionalModelRequestHeaders) -
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
modelName
Returns the value of themodelNamerecord component.- Returns:
- the value of the
modelNamerecord component
-
projectId
Returns the value of theprojectIdrecord component.- Returns:
- the value of the
projectIdrecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
apiKey
Returns the value of theapiKeyrecord component.- Returns:
- the value of the
apiKeyrecord component
-
baseUrl
Returns the value of thebaseUrlrecord component.- Returns:
- the value of the
baseUrlrecord component
-
apiVersion
Returns the value of theapiVersionrecord component.- Returns:
- the value of the
apiVersionrecord component
-
temperature
public double temperature()Returns the value of thetemperaturerecord component.- Returns:
- the value of the
temperaturerecord component
-
topP
public double topP()Returns the value of thetopPrecord component.- Returns:
- the value of the
topPrecord component
-
thinkingBudget
public int thinkingBudget()Returns the value of thethinkingBudgetrecord component.- Returns:
- the value of the
thinkingBudgetrecord component
-
maxOutputTokens
public int maxOutputTokens()Returns the value of themaxOutputTokensrecord component.- Returns:
- the value of the
maxOutputTokensrecord component
-
connectionTimeout
Returns the value of theconnectionTimeoutrecord component.- Returns:
- the value of the
connectionTimeoutrecord component
-
responseTimeout
Returns the value of theresponseTimeoutrecord component.- Returns:
- the value of the
responseTimeoutrecord component
-
maxRetries
public int maxRetries()Returns the value of themaxRetriesrecord component.- Returns:
- the value of the
maxRetriesrecord component
-
additionalModelRequestHeaders
Returns the value of theadditionalModelRequestHeadersrecord component.- Returns:
- the value of the
additionalModelRequestHeadersrecord component
-