Interface HarnessOpenAiModelConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<HarnessOpenAiModelConfig.Builder,,HarnessOpenAiModelConfig> SdkBuilder<HarnessOpenAiModelConfig.Builder,,HarnessOpenAiModelConfig> SdkPojo
- Enclosing class:
HarnessOpenAiModelConfig
@Mutable
@NotThreadSafe
public static interface HarnessOpenAiModelConfig.Builder
extends SdkPojo, CopyableBuilder<HarnessOpenAiModelConfig.Builder,HarnessOpenAiModelConfig>
-
Method Summary
Modifier and TypeMethodDescriptionadditionalParams(Document additionalParams) Provider-specific parameters passed through to the model provider unchanged.The API format to use when calling the OpenAI provider.apiFormat(HarnessOpenAiApiFormat apiFormat) The API format to use when calling the OpenAI provider.The ARN of your OpenAI API key on AgentCore Identity.The maximum number of tokens to allow in the generated response per model call.The OpenAI model ID.temperature(Float temperature) The temperature to set when calling the model.The topP set when calling the model.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
modelId
The OpenAI model ID.
- Parameters:
modelId- The OpenAI model ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
apiKeyArn
The ARN of your OpenAI API key on AgentCore Identity.
- Parameters:
apiKeyArn- The ARN of your OpenAI API key on AgentCore Identity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxTokens
The maximum number of tokens to allow in the generated response per model call.
- Parameters:
maxTokens- The maximum number of tokens to allow in the generated response per model call.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
temperature
The temperature to set when calling the model.
- Parameters:
temperature- The temperature to set when calling the model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
topP
The topP set when calling the model.
- Parameters:
topP- The topP set when calling the model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
apiFormat
The API format to use when calling the OpenAI provider.
- Parameters:
apiFormat- The API format to use when calling the OpenAI provider.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
apiFormat
The API format to use when calling the OpenAI provider.
- Parameters:
apiFormat- The API format to use when calling the OpenAI provider.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
additionalParams
Provider-specific parameters passed through to the model provider unchanged.
- Parameters:
additionalParams- Provider-specific parameters passed through to the model provider unchanged.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-