Skip to content

/AWS1/IF_HLL=>UPDATEPROFILEWITHAGENT()

About UpdateProfileWithAgent

Updates a data transformation profile using chat-based interaction with an agent. Supports multi-turn conversations for iteratively customizing profiles.

Method Signature

METHODS /AWS1/IF_HLL~UPDATEPROFILEWITHAGENT
  IMPORTING
    !IV_PROFILEID TYPE /AWS1/HLLPROFILEIDSTRING OPTIONAL
    !IV_SOURCEFORMAT TYPE /AWS1/HLLSOURCEFORMAT OPTIONAL
    !IO_INPUTMESSAGE TYPE REF TO /AWS1/CL_HLLAGENTINPUTMESSAGE OPTIONAL
    !IV_CONVERSATIONID TYPE /AWS1/HLLCONVERSATIONIDSTRING OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_hllupdpflwithagentrsp
  RAISING
    /AWS1/CX_HLLACCESSDENIEDEX
    /AWS1/CX_HLLAGENTMSGOUTOFCTXEX
    /AWS1/CX_HLLCONVRSTNNOTFOUNDEX
    /AWS1/CX_HLLINTERNALSERVEREX
    /AWS1/CX_HLLNOTIMPLTDOPEX
    /AWS1/CX_HLLRESOURCENOTFOUNDEX
    /AWS1/CX_HLLTHROTTLINGEX
    /AWS1/CX_HLLUNAUTHEXCEPTION
    /AWS1/CX_HLLUNSPPRTDMIMETYPEEX
    /AWS1/CX_HLLVALIDATIONEX
    /AWS1/CX_HLLCLIENTEXC
    /AWS1/CX_HLLSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_profileid TYPE /AWS1/HLLPROFILEIDSTRING /AWS1/HLLPROFILEIDSTRING

The unique identifier of the profile to update via the agent.

iv_sourceformat TYPE /AWS1/HLLSOURCEFORMAT /AWS1/HLLSOURCEFORMAT

The source data format for the transformation.

io_inputmessage TYPE REF TO /AWS1/CL_HLLAGENTINPUTMESSAGE /AWS1/CL_HLLAGENTINPUTMESSAGE

The message to send to the agent.

Optional arguments:

iv_conversationid TYPE /AWS1/HLLCONVERSATIONIDSTRING /AWS1/HLLCONVERSATIONIDSTRING

The conversation identifier for multi-turn interactions. Omit to start a new conversation.

RETURNING

oo_output TYPE REF TO /aws1/cl_hllupdpflwithagentrsp /AWS1/CL_HLLUPDPFLWITHAGENTRSP

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->updateprofilewithagent(
  io_inputmessage = new /aws1/cl_hllagentinputmessage(
    iv_body = |string|
    iv_type = |string|
  )
  iv_conversationid = |string|
  iv_profileid = |string|
  iv_sourceformat = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_agentoutputmessage = lo_result->get_agentresponse( ).
  IF lo_agentoutputmessage IS NOT INITIAL.
    lv_agentmessagestring = lo_agentoutputmessage->get_body( ).
    lv_agentoutputmessagetype = lo_agentoutputmessage->get_type( ).
    LOOP AT lo_agentoutputmessage->get_optionslist( ) into lo_row.
      lo_row_1 = lo_row.
      IF lo_row_1 IS NOT INITIAL.
        lv_datatransformationchato = lo_row_1->get_value( ).
      ENDIF.
    ENDLOOP.
  ENDIF.
  lv_conversationidstring = lo_result->get_conversationid( ).
ENDIF.