/AWS1/IF_BDK=>UPDAUTOMATEDRSNINGPLYTSTCASE()
¶
About UpdateAutomatedReasoningPolicyTestCase¶
Updates an existing Automated Reasoning policy test. You can modify the content, query, expected result, and confidence threshold.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_policyarn
TYPE /AWS1/BDKAUTOMATEDRSNINGPLYARN
/AWS1/BDKAUTOMATEDRSNINGPLYARN
¶
The Amazon Resource Name (ARN) of the Automated Reasoning policy that contains the test.
iv_testcaseid
TYPE /AWS1/BDKAUTOMATEDRSNINGPLYT02
/AWS1/BDKAUTOMATEDRSNINGPLYT02
¶
The unique identifier of the test to update.
iv_guardcontent
TYPE /AWS1/BDKAUTOMATEDRSNINGPLYT00
/AWS1/BDKAUTOMATEDRSNINGPLYT00
¶
The updated content to be validated by the Automated Reasoning policy.
iv_lastupdatedat
TYPE /AWS1/BDKTIMESTAMP
/AWS1/BDKTIMESTAMP
¶
The timestamp when the test was last updated. This is used as a concurrency token to prevent conflicting modifications.
iv_expectedaggdfndgsresult
TYPE /AWS1/BDKAUTOMATEDRSNINGCHEC00
/AWS1/BDKAUTOMATEDRSNINGCHEC00
¶
The updated expected result of the Automated Reasoning check.
Optional arguments:¶
iv_querycontent
TYPE /AWS1/BDKAUTOMATEDRSNINGPLYT01
/AWS1/BDKAUTOMATEDRSNINGPLYT01
¶
The updated input query or prompt that generated the content.
iv_confidencethreshold
TYPE /AWS1/RT_DOUBLE_AS_STRING
/AWS1/RT_DOUBLE_AS_STRING
¶
The updated minimum confidence level for logic validation. If null is provided, the threshold will be removed.
iv_clientrequesttoken
TYPE /AWS1/BDKIDEMPOTENCYTOKEN
/AWS1/BDKIDEMPOTENCYTOKEN
¶
A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_bdkupautomatedrsnin03
/AWS1/CL_BDKUPAUTOMATEDRSNIN03
¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->/aws1/if_bdk~updautomatedrsningplytstcase(
iv_clientrequesttoken = |string|
iv_confidencethreshold = |0.1|
iv_expectedaggdfndgsresult = |string|
iv_guardcontent = |string|
iv_lastupdatedat = '20150101000000.0000000'
iv_policyarn = |string|
iv_querycontent = |string|
iv_testcaseid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_automatedreasoningpolic = lo_result->get_policyarn( ).
lv_automatedreasoningpolic_1 = lo_result->get_testcaseid( ).
ENDIF.