Record Class ModelProvider.Bedrock

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

public static record ModelProvider.Bedrock(String region, String modelId, boolean returnThinking, boolean sendThinking, int maxOutputTokens, int reasoningTokenBudget, Map<String,Object> additionalModelRequestFields, String accessToken, double temperature, double topP, int maxTokens, Duration responseTimeout, int maxRetries) extends Record implements ModelProvider
  • Constructor Details

    • Bedrock

      public Bedrock(String region, String modelId, boolean returnThinking, boolean sendThinking, int maxOutputTokens, int reasoningTokenBudget, Map<String,Object> additionalModelRequestFields, String accessToken, double temperature, double topP, int maxTokens, Duration responseTimeout, int maxRetries)
      Creates an instance of a Bedrock record class.
      Parameters:
      region - the value for the region record component
      modelId - the value for the modelId record component
      returnThinking - the value for the returnThinking record component
      sendThinking - the value for the sendThinking record component
      maxOutputTokens - the value for the maxOutputTokens record component
      reasoningTokenBudget - the value for the reasoningTokenBudget record component
      additionalModelRequestFields - the value for the additionalModelRequestFields record component
      accessToken - the value for the accessToken record component
      temperature - the value for the temperature record component
      topP - the value for the topP record component
      maxTokens - the value for the maxTokens record component
      responseTimeout - the value for the responseTimeout record component
      maxRetries - the value for the maxRetries record component
  • Method Details

    • fromConfig

      public static ModelProvider.Bedrock fromConfig(com.typesafe.config.Config config)
    • withRegion

      public ModelProvider.Bedrock withRegion(String region)
    • withModelId

      public ModelProvider.Bedrock withModelId(String modelId)
    • withReturnThinking

      public ModelProvider.Bedrock withReturnThinking(Boolean returnThinking)
    • withSendThinking

      public ModelProvider.Bedrock withSendThinking(Boolean sendThinking)
    • withMaxOutputTokens

      public ModelProvider.Bedrock withMaxOutputTokens(int maxOutputTokens)
    • withReasoningTokenBudget

      public ModelProvider.Bedrock withReasoningTokenBudget(int reasoningTokenBudget)
    • withAdditionalModelRequestFields

      public ModelProvider.Bedrock withAdditionalModelRequestFields(Map<String,Object> additionalModelRequestFields)
    • withAccessToken

      public ModelProvider.Bedrock withAccessToken(String accessToken)
    • withTemperature

      public ModelProvider.Bedrock withTemperature(double temperature)
    • withTopP

      public ModelProvider.Bedrock withTopP(double topP)
    • withMaxTokens

      public ModelProvider.Bedrock withMaxTokens(int maxTokens)
    • withResponseTimeout

      public ModelProvider.Bedrock withResponseTimeout(Duration responseTimeout)
    • withMaxRetries

      public ModelProvider.Bedrock withMaxRetries(int maxRetries)
    • 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.
    • region

      public String region()
      Returns the value of the region record component.
      Returns:
      the value of the region record component
    • modelId

      public String modelId()
      Returns the value of the modelId record component.
      Returns:
      the value of the modelId record component
    • returnThinking

      public boolean returnThinking()
      Returns the value of the returnThinking record component.
      Returns:
      the value of the returnThinking record component
    • sendThinking

      public boolean sendThinking()
      Returns the value of the sendThinking record component.
      Returns:
      the value of the sendThinking record component
    • maxOutputTokens

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

      public int reasoningTokenBudget()
      Returns the value of the reasoningTokenBudget record component.
      Returns:
      the value of the reasoningTokenBudget record component
    • additionalModelRequestFields

      public Map<String,Object> additionalModelRequestFields()
      Returns the value of the additionalModelRequestFields record component.
      Returns:
      the value of the additionalModelRequestFields record component
    • accessToken

      public String accessToken()
      Returns the value of the accessToken record component.
      Returns:
      the value of the accessToken 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
    • maxTokens

      public int maxTokens()
      Returns the value of the maxTokens record component.
      Returns:
      the value of the maxTokens 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