HarnessOpenAiModelConfig¶
Structure Class¶
HarnessOpenAiModelConfig
dataclass
¶
Configuration for an OpenAI model provider. Requires an API key stored in AgentCore Identity.
Attributes¶
additional_params
class-attribute
instance-attribute
¶
Provider-specific parameters passed through to the model provider unchanged.
api_format
class-attribute
instance-attribute
¶
api_format: HarnessOpenAiApiFormat | None = None
The API format to use when calling the OpenAI provider.
api_key_arn
instance-attribute
¶
api_key_arn: str
The ARN of your OpenAI 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.