HarnessGeminiModelConfig
Configuration for a Google Gemini model provider. Requires an API key stored in AgentCore Identity.
Contents
- apiKeyArn
-
The ARN of your Gemini API key on AgentCore Identity.
Type: String
Pattern:
arn:aws:bedrock-agentcore:[a-z0-9-]+:[0-9]{12}:token-vault/[a-zA-Z0-9-.]+/apikeycredentialprovider/[a-zA-Z0-9-.]+Required: Yes
- modelId
-
The Gemini model ID.
Type: String
Required: Yes
- maxTokens
-
The maximum number of tokens to allow in the generated response per model call.
Type: Integer
Valid Range: Minimum value of 1.
Required: No
- temperature
-
The temperature to set when calling the model.
Type: Float
Valid Range: Minimum value of 0.0. Maximum value of 2.0.
Required: No
- topK
-
The topK set when calling the model.
Type: Integer
Valid Range: Minimum value of 0. Maximum value of 500.
Required: No
- topP
-
The topP set when calling the model.
Type: Float
Valid Range: Minimum value of 0.0. Maximum value of 1.0.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: