/AWS1/CL_BDKMODELCONFIGURATION¶
Contains the configuration for a model used in an advanced prompt optimization job, including the model ID and inference parameters.
CONSTRUCTOR¶
IMPORTING¶
Required arguments:¶
iv_modelid TYPE /AWS1/BDKADVDPROPTMZMODELID /AWS1/BDKADVDPROPTMZMODELID¶
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.
Optional arguments:¶
io_inferenceconfig TYPE REF TO /AWS1/CL_BDKINFERENCECONF /AWS1/CL_BDKINFERENCECONF¶
The inference configuration for the model, including parameters such as maximum tokens, temperature, and top-p.
it_addlmodelrequestfields TYPE /AWS1/CL_RT_DOCUMENT=>TT_MAP TT_MAP¶
Additional model request fields. Use this to pass model-specific parameters that are not included in the standard inference configuration.
Queryable Attributes¶
modelId¶
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.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_MODELID() |
Getter for MODELID, with configurable default |
ASK_MODELID() |
Getter for MODELID w/ exceptions if field has no value |
HAS_MODELID() |
Determine if MODELID has a value |
inferenceConfig¶
The inference configuration for the model, including parameters such as maximum tokens, temperature, and top-p.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_INFERENCECONFIG() |
Getter for INFERENCECONFIG |
additionalModelRequestFields¶
Additional model request fields. Use this to pass model-specific parameters that are not included in the standard inference configuration.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_ADDLMODELREQUESTFIELDS() |
Getter for ADDITIONALMODELREQUESTFIELDS, with configurable d |
ASK_ADDLMODELREQUESTFIELDS() |
Getter for ADDITIONALMODELREQUESTFIELDS w/ exceptions if fie |
HAS_ADDLMODELREQUESTFIELDS() |
Determine if ADDITIONALMODELREQUESTFIELDS has a value |
Public Local Types In This Class¶
Internal table types, representing arrays and maps of this class, are defined as local types:
TT_MODELCONFIGURATIONS¶
TYPES TT_MODELCONFIGURATIONS TYPE STANDARD TABLE OF REF TO /AWS1/CL_BDKMODELCONFIGURATION WITH DEFAULT KEY
.