Skip to content

ModelConfiguration

Source code in docs_src/capo_bedrock/types/model_configuration.py
class ModelConfiguration(TypedDict, closed=True):
    model_id: "capo_bedrock.types.advanced_prompt_optimization_model_identifier.AdvancedPromptOptimizationModelIdentifier"
    """<p>The model to use for optimization. The value depends on the resource that you use:</p> <ul> <li> <p>If you use a base model, specify the model ID or its ARN. For a list of model IDs, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-cards.html">Models at a glance</a> in the Amazon Bedrock User Guide.</p> </li> <li> <p>If you use a cross-Region (system-defined) inference profile, specify the inference profile ID or its ARN. For a list of inference profile IDs, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference-support.html">Supported Regions and models for inference profiles</a> in the Amazon Bedrock User Guide.</p> </li> <li> <p>If you use an application inference profile, specify its full ARN, including the account ID and Region.</p> </li> </ul>"""
    inference_config: NotRequired[
        "capo_bedrock.types.inference_configuration.InferenceConfiguration"
    ]
    """<p>The inference configuration for the model, including parameters such as maximum tokens, temperature, and top-p.</p>"""
    additional_model_request_fields: NotRequired[
        "capo_bedrock.types.additional_model_request_fields.AdditionalModelRequestFields"
    ]
    """<p>Additional model request fields. Use this to pass model-specific parameters that are not included in the standard inference configuration.</p>"""

additional_model_request_fields instance-attribute

additional_model_request_fields: NotRequired[AdditionalModelRequestFields]

Additional model request fields. Use this to pass model-specific parameters that are not included in the standard inference configuration.

inference_config instance-attribute

inference_config: NotRequired[InferenceConfiguration]

The inference configuration for the model, including parameters such as maximum tokens, temperature, and top-p.

model_id instance-attribute

The model to use for optimization. The value depends on the resource that you use:

  • If you use a base model, specify the model ID or its ARN. For a list of model IDs, see Models at a glance in the Amazon Bedrock User Guide.

  • If you use a cross-Region (system-defined) inference profile, specify the inference profile ID or its ARN. For a list of inference profile IDs, see Supported Regions and models for inference profiles in the Amazon Bedrock User Guide.

  • If you use an application inference profile, specify its full ARN, including the account ID and Region.