Skip to content

/AWS1/CL_BDCHARNBDRKMODELCFG

Configuration for an Amazon Bedrock model provider.

CONSTRUCTOR

IMPORTING

Required arguments:

iv_modelid TYPE /AWS1/BDCMODELID /AWS1/BDCMODELID

The Bedrock model ID.

Optional arguments:

iv_maxtokens TYPE /AWS1/BDCMAXTOKENS /AWS1/BDCMAXTOKENS

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

iv_temperature TYPE /AWS1/RT_FLOAT_AS_STRING /AWS1/RT_FLOAT_AS_STRING

The temperature to set when calling the model.

iv_topp TYPE /AWS1/RT_FLOAT_AS_STRING /AWS1/RT_FLOAT_AS_STRING

The topP set when calling the model.

iv_apiformat TYPE /AWS1/BDCHARNESSBDRKAPIFORMAT /AWS1/BDCHARNESSBDRKAPIFORMAT

The API format to use when calling the Bedrock provider.

io_additionalparams TYPE REF TO /AWS1/CL_RT_DOCUMENT /AWS1/CL_RT_DOCUMENT

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


Queryable Attributes

modelId

The Bedrock model ID.

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

maxTokens

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

Accessible with the following methods

Method Description
GET_MAXTOKENS() Getter for MAXTOKENS, with configurable default
ASK_MAXTOKENS() Getter for MAXTOKENS w/ exceptions if field has no value
HAS_MAXTOKENS() Determine if MAXTOKENS has a value

temperature

The temperature to set when calling the model.

Accessible with the following methods

Method Description
GET_TEMPERATURE() Getter for TEMPERATURE, with configurable default
ASK_TEMPERATURE() Getter for TEMPERATURE w/ exceptions if field has no value
STR_TEMPERATURE() String format for TEMPERATURE, with configurable default
HAS_TEMPERATURE() Determine if TEMPERATURE has a value

topP

The topP set when calling the model.

Accessible with the following methods

Method Description
GET_TOPP() Getter for TOPP, with configurable default
ASK_TOPP() Getter for TOPP w/ exceptions if field has no value
STR_TOPP() String format for TOPP, with configurable default
HAS_TOPP() Determine if TOPP has a value

apiFormat

The API format to use when calling the Bedrock provider.

Accessible with the following methods

Method Description
GET_APIFORMAT() Getter for APIFORMAT, with configurable default
ASK_APIFORMAT() Getter for APIFORMAT w/ exceptions if field has no value
HAS_APIFORMAT() Determine if APIFORMAT has a value

additionalParams

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

Accessible with the following methods

Method Description
GET_ADDITIONALPARAMS() Getter for ADDITIONALPARAMS, with configurable default
ASK_ADDITIONALPARAMS() Getter for ADDITIONALPARAMS w/ exceptions if field has no va
HAS_ADDITIONALPARAMS() Determine if ADDITIONALPARAMS has a value