get_tool_definitions

in src/zgoog_agent_examples/zcl_weather_agent.clas.abap [0:0]


  METHOD get_tool_definitions.
    r_result = VALUE #(
        ( name           = 'Z_TOOL_GET_CURRENT_LOCATION'      " Tool-1
          description    = 'Get the current geographical location of the user'
          implementation = 'Z_TOOL_GET_CURRENT_LOCATION'
          parameters     = VALUE tt_tool_parameters( ) )
        ( name           = 'Z_TOOL_GET_GEOCODE'               " Tool-2
          description    = 'Get geocodes in the form of latitude and longitude coordinates for a specified location'
          implementation = 'Z_TOOL_GET_GEOCODE' " For reference
          parameters     = VALUE tt_tool_parameters(
                                     type        = 'string'
                                     is_required = abap_true
                                     ( name = 'LOCATION'  description = 'Location details to identify Geocode' ) ) )
        ( name           = 'Z_TOOL_GET_AIR_QUALITY'            " Tool-3
          description    = 'Gets air quality information for a given location specified by latitude and longitude'
          implementation = 'Z_TOOL_GET_AIR_QUALITY' " For reference
          parameters     = VALUE tt_tool_parameters( type        = 'string'
                                                     is_required = abap_true
                                                     ( name = 'LOCATION'  description = 'Location details' )
                                                     ( name = 'LATITUDE'  description = 'Latitude of the location' )
                                                     ( name = 'LONGITUDE' description = 'Longitude of the location' ) ) ) ).