/AWS1/IF_QQC=>UPDATEASSISTANTAIAGENT()¶
About UpdateAssistantAIAgent¶
Updates the AI Agent that is set for use by default on an Amazon Q in Connect Assistant.
Method Signature¶
METHODS /AWS1/IF_QQC~UPDATEASSISTANTAIAGENT
IMPORTING
!IV_ASSISTANTID TYPE /AWS1/QQCUUIDORARN OPTIONAL
!IV_AIAGENTTYPE TYPE /AWS1/QQCAIAGENTTYPE OPTIONAL
!IO_CONFIGURATION TYPE REF TO /AWS1/CL_QQCAIAGENTCONFDATA OPTIONAL
!IV_ORCHESTRATORUSECASE TYPE /AWS1/QQCNONEMPTYSTRING OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_qqcupassistantaiage01
RAISING
/AWS1/CX_QQCACCESSDENIEDEX
/AWS1/CX_QQCRESOURCENOTFOUNDEX
/AWS1/CX_QQCTHROTTLINGEX
/AWS1/CX_QQCVALIDATIONEX
/AWS1/CX_QQCCLIENTEXC
/AWS1/CX_QQCSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_assistantid TYPE /AWS1/QQCUUIDORARN /AWS1/QQCUUIDORARN¶
The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
iv_aiagenttype TYPE /AWS1/QQCAIAGENTTYPE /AWS1/QQCAIAGENTTYPE¶
The type of the AI Agent being updated for use by default on the Amazon Q in Connect Assistant.
io_configuration TYPE REF TO /AWS1/CL_QQCAIAGENTCONFDATA /AWS1/CL_QQCAIAGENTCONFDATA¶
The configuration of the AI Agent being updated for use by default on the Amazon Q in Connect Assistant.
Optional arguments:¶
iv_orchestratorusecase TYPE /AWS1/QQCNONEMPTYSTRING /AWS1/QQCNONEMPTYSTRING¶
The orchestrator use case for the AI Agent being added.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_qqcupassistantaiage01 /AWS1/CL_QQCUPASSISTANTAIAGE01¶
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->updateassistantaiagent(
io_configuration = new /aws1/cl_qqcaiagentconfdata( |string| )
iv_aiagenttype = |string|
iv_assistantid = |string|
iv_orchestratorusecase = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_assistantdata = lo_result->get_assistant( ).
IF lo_assistantdata IS NOT INITIAL.
lv_uuid = lo_assistantdata->get_assistantid( ).
lv_arn = lo_assistantdata->get_assistantarn( ).
lv_name = lo_assistantdata->get_name( ).
lv_assistanttype = lo_assistantdata->get_type( ).
lv_assistantstatus = lo_assistantdata->get_status( ).
lv_description = lo_assistantdata->get_description( ).
LOOP AT lo_assistantdata->get_tags( ) into ls_row.
lv_key = ls_row-key.
lo_value = ls_row-value.
IF lo_value IS NOT INITIAL.
lv_tagvalue = lo_value->get_value( ).
ENDIF.
ENDLOOP.
lo_serversideencryptioncon = lo_assistantdata->get_serversideencryptionconf( ).
IF lo_serversideencryptioncon IS NOT INITIAL.
lv_nonemptystring = lo_serversideencryptioncon->get_kmskeyid( ).
ENDIF.
lo_assistantintegrationcon = lo_assistantdata->get_integrationconfiguration( ).
IF lo_assistantintegrationcon IS NOT INITIAL.
lv_genericarn = lo_assistantintegrationcon->get_topicintegrationarn( ).
ENDIF.
lo_assistantcapabilityconf = lo_assistantdata->get_capabilityconfiguration( ).
IF lo_assistantcapabilityconf IS NOT INITIAL.
lv_assistantcapabilitytype = lo_assistantcapabilityconf->get_type( ).
ENDIF.
LOOP AT lo_assistantdata->get_aiagentconfiguration( ) into ls_row_1.
lv_key_1 = ls_row_1-key.
lo_value_1 = ls_row_1-value.
IF lo_value_1 IS NOT INITIAL.
lv_uuidwithqualifier = lo_value_1->get_aiagentid( ).
ENDIF.
ENDLOOP.
LOOP AT lo_assistantdata->get_orchestratorconflist( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_uuidorarnoreitherwithqu = lo_row_3->get_aiagentid( ).
lv_nonemptystring = lo_row_3->get_orchestratorusecase( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.