/AWS1/CL_BDRCONVERSERESPONSE¶
ConverseResponse
CONSTRUCTOR¶
IMPORTING¶
Required arguments:¶
io_output TYPE REF TO /AWS1/CL_BDRCONVERSEOUTPUT /AWS1/CL_BDRCONVERSEOUTPUT¶
The result from the call to
Converse.
iv_stopreason TYPE /AWS1/BDRSTOPREASON /AWS1/BDRSTOPREASON¶
The reason why the model stopped generating output.
io_usage TYPE REF TO /AWS1/CL_BDRTOKENUSAGE /AWS1/CL_BDRTOKENUSAGE¶
The total number of tokens used in the call to
Converse. The total includes the tokens input to the model and the tokens generated by the model.
io_metrics TYPE REF TO /AWS1/CL_BDRCONVERSEMETRICS /AWS1/CL_BDRCONVERSEMETRICS¶
Metrics for the call to
Converse.
Optional arguments:¶
io_addlmodelresponsefields TYPE REF TO /AWS1/CL_RT_DOCUMENT /AWS1/CL_RT_DOCUMENT¶
Additional fields in the response that are unique to the model.
io_trace TYPE REF TO /AWS1/CL_BDRCONVERSETRACE /AWS1/CL_BDRCONVERSETRACE¶
A trace object that contains information about the Guardrail behavior.
io_performanceconfig TYPE REF TO /AWS1/CL_BDRPERFORMANCECONF /AWS1/CL_BDRPERFORMANCECONF¶
Model performance settings for the request.
io_servicetier TYPE REF TO /AWS1/CL_BDRSERVICETIER /AWS1/CL_BDRSERVICETIER¶
Specifies the processing tier configuration used for serving the request.
Queryable Attributes¶
output¶
The result from the call to
Converse.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_OUTPUT() |
Getter for OUTPUT |
stopReason¶
The reason why the model stopped generating output.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_STOPREASON() |
Getter for STOPREASON, with configurable default |
ASK_STOPREASON() |
Getter for STOPREASON w/ exceptions if field has no value |
HAS_STOPREASON() |
Determine if STOPREASON has a value |
usage¶
The total number of tokens used in the call to
Converse. The total includes the tokens input to the model and the tokens generated by the model.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_USAGE() |
Getter for USAGE |
metrics¶
Metrics for the call to
Converse.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_METRICS() |
Getter for METRICS |
additionalModelResponseFields¶
Additional fields in the response that are unique to the model.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_ADDLMODELRESPONSEFIELDS() |
Getter for ADDLMODELRESPONSEFIELDS, with configurable defaul |
ASK_ADDLMODELRESPONSEFIELDS() |
Getter for ADDLMODELRESPONSEFIELDS w/ exceptions if field ha |
HAS_ADDLMODELRESPONSEFIELDS() |
Determine if ADDLMODELRESPONSEFIELDS has a value |
trace¶
A trace object that contains information about the Guardrail behavior.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_TRACE() |
Getter for TRACE |
performanceConfig¶
Model performance settings for the request.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_PERFORMANCECONFIG() |
Getter for PERFORMANCECONFIG |
serviceTier¶
Specifies the processing tier configuration used for serving the request.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_SERVICETIER() |
Getter for SERVICETIER |