Skip to content

Bedrock Agentcore Control  >  Structures  >  HarnessGeminiModelConfig

HarnessGeminiModelConfig

Structure Class

HarnessGeminiModelConfig dataclass

Configuration for a Google Gemini model provider. Requires an API key stored in AgentCore Identity.

Attributes

additional_params class-attribute instance-attribute
additional_params: Document | None = None

Provider-specific parameters passed through to the Gemini model provider unchanged.

api_key_arn instance-attribute
api_key_arn: str

The ARN of your Gemini API key on AgentCore Identity.

max_tokens class-attribute instance-attribute
max_tokens: int | None = None

The maximum number of tokens to allow in the generated response per model call.

model_id instance-attribute
model_id: str

The Gemini model ID.

temperature class-attribute instance-attribute
temperature: float | None = None

The temperature to set when calling the model.

top_k class-attribute instance-attribute
top_k: int | None = None

The topK set when calling the model.

top_p class-attribute instance-attribute
top_p: float | None = None

The topP set when calling the model.