Package akka.javasdk.agent
Record Class ModelProvider.AzureOpenAi
- All Implemented Interfaces:
ModelProvider
- Enclosing interface:
ModelProvider
public static record ModelProvider.AzureOpenAi(String endpoint, String deploymentName, String apiKey, double temperature, double topP, int maxTokens, int maxCompletionTokens, double frequencyPenalty, double presencePenalty, long seed, List<String> stop, String reasoningEffort, String serviceVersion, Duration connectionTimeout, Duration responseTimeout, int maxRetries, List<akka.http.javadsl.model.HttpHeader> additionalModelRequestHeaders)
extends Record
implements ModelProvider
Settings for the Azure OpenAI Large Language Model provider.
-
Nested Class Summary
Nested classes/interfaces inherited from interface akka.javasdk.agent.ModelProvider
ModelProvider.Anthropic, ModelProvider.AzureOpenAi, ModelProvider.Bedrock, ModelProvider.BedrockPromptCachePlacement, ModelProvider.Custom, ModelProvider.FromConfig, ModelProvider.GoogleAIGemini, ModelProvider.HuggingFace, ModelProvider.LocalAI, ModelProvider.MistralAi, ModelProvider.Ollama, ModelProvider.OpenAi, ModelProvider.VertexAi -
Constructor Summary
ConstructorsConstructorDescriptionAzureOpenAi(String endpoint, String deploymentName, String apiKey, double temperature, double topP, int maxTokens, int maxCompletionTokens, double frequencyPenalty, double presencePenalty, long seed, List<String> stop, String reasoningEffort, String serviceVersion, Duration connectionTimeout, Duration responseTimeout, int maxRetries, List<akka.http.javadsl.model.HttpHeader> additionalModelRequestHeaders) Creates an instance of aAzureOpenAirecord 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 theconnectionTimeoutrecord component.Returns the value of thedeploymentNamerecord component.endpoint()Returns the value of theendpointrecord component.final booleanIndicates whether some other object is "equal to" this one.doubleReturns the value of thefrequencyPenaltyrecord component.static ModelProvider.AzureOpenAifromConfig(com.typesafe.config.Config config) final inthashCode()Returns a hash code value for this object.intReturns the value of themaxCompletionTokensrecord component.intReturns the value of themaxRetriesrecord component.intReturns the value of themaxTokensrecord component.doubleReturns the value of thepresencePenaltyrecord component.Returns the value of thereasoningEffortrecord component.Returns the value of theresponseTimeoutrecord component.longseed()Returns the value of theseedrecord component.Returns the value of theserviceVersionrecord component.stop()Returns the value of thestoprecord component.doubleReturns the value of thetemperaturerecord 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) withConnectionTimeout(Duration connectionTimeout) withDeploymentName(String deploymentName) withEndpoint(String endpoint) withFrequencyPenalty(double frequencyPenalty) withMaxCompletionTokens(int maxCompletionTokens) withMaxRetries(int maxRetries) withMaxTokens(int maxTokens) withPresencePenalty(double presencePenalty) withReasoningEffort(String reasoningEffort) withResponseTimeout(Duration responseTimeout) withSeed(long seed) withServiceVersion(String serviceVersion) withTemperature(double temperature) withTopP(double topP)
-
Constructor Details
-
AzureOpenAi
public AzureOpenAi(String endpoint, String deploymentName, String apiKey, double temperature, double topP, int maxTokens, int maxCompletionTokens, double frequencyPenalty, double presencePenalty, long seed, List<String> stop, String reasoningEffort, String serviceVersion, Duration connectionTimeout, Duration responseTimeout, int maxRetries, List<akka.http.javadsl.model.HttpHeader> additionalModelRequestHeaders) Creates an instance of aAzureOpenAirecord class.- Parameters:
endpoint- the value for theendpointrecord componentdeploymentName- the value for thedeploymentNamerecord componentapiKey- the value for theapiKeyrecord componenttemperature- the value for thetemperaturerecord componenttopP- the value for thetopPrecord componentmaxTokens- the value for themaxTokensrecord componentmaxCompletionTokens- the value for themaxCompletionTokensrecord componentfrequencyPenalty- the value for thefrequencyPenaltyrecord componentpresencePenalty- the value for thepresencePenaltyrecord componentseed- the value for theseedrecord componentstop- the value for thestoprecord componentreasoningEffort- the value for thereasoningEffortrecord componentserviceVersion- the value for theserviceVersionrecord componentconnectionTimeout- the value for theconnectionTimeoutrecord componentresponseTimeout- the value for theresponseTimeoutrecord componentmaxRetries- the value for themaxRetriesrecord componentadditionalModelRequestHeaders- the value for theadditionalModelRequestHeadersrecord component
-
-
Method Details
-
fromConfig
-
withEndpoint
-
withDeploymentName
-
withApiKey
-
withTemperature
-
withTopP
-
withMaxTokens
-
withMaxCompletionTokens
-
withFrequencyPenalty
-
withPresencePenalty
-
withSeed
-
withStop
-
withReasoningEffort
-
withServiceVersion
-
withConnectionTimeout
-
withResponseTimeout
-
withMaxRetries
-
withAdditionalModelRequestHeaders
public ModelProvider.AzureOpenAi 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 '=='. -
endpoint
Returns the value of theendpointrecord component.- Returns:
- the value of the
endpointrecord component
-
deploymentName
Returns the value of thedeploymentNamerecord component.- Returns:
- the value of the
deploymentNamerecord component
-
apiKey
Returns the value of theapiKeyrecord component.- Returns:
- the value of the
apiKeyrecord 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
-
maxTokens
public int maxTokens()Returns the value of themaxTokensrecord component.- Returns:
- the value of the
maxTokensrecord component
-
maxCompletionTokens
public int maxCompletionTokens()Returns the value of themaxCompletionTokensrecord component.- Returns:
- the value of the
maxCompletionTokensrecord component
-
frequencyPenalty
public double frequencyPenalty()Returns the value of thefrequencyPenaltyrecord component.- Returns:
- the value of the
frequencyPenaltyrecord component
-
presencePenalty
public double presencePenalty()Returns the value of thepresencePenaltyrecord component.- Returns:
- the value of the
presencePenaltyrecord component
-
seed
public long seed()Returns the value of theseedrecord component.- Returns:
- the value of the
seedrecord component
-
stop
Returns the value of thestoprecord component.- Returns:
- the value of the
stoprecord component
-
reasoningEffort
Returns the value of thereasoningEffortrecord component.- Returns:
- the value of the
reasoningEffortrecord component
-
serviceVersion
Returns the value of theserviceVersionrecord component.- Returns:
- the value of the
serviceVersionrecord 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
-