Class VirtualAssistantResource


  • @Path("/lumis/service/virtualassistant/{serviceInstanceId: [A-F0-9]{32}}")
    public class VirtualAssistantResource
    extends java.lang.Object
    REST resource used by the virtual assistant service.
    Since:
    16.1.0
    Version:
    $Revision: 26197 $ $Date: 2024-02-02 15:09:39 -0300 (Fri, 02 Feb 2024) $
    • Constructor Detail

      • VirtualAssistantResource

        public VirtualAssistantResource()
    • Method Detail

      • getConfig

        @GET
        @Path("config")
        @Produces("application/json")
        public java.lang.String getConfig()
                                   throws PortalException
        Returns configurations for the virtual assistant.
        Returns:
        a JSON object with the configurations, or an object with an error string field if the virtual assistant is not available.
        Throws:
        PortalException
        Since:
        16.1.0
      • getSearchQuery

        public SearchQuery getSearchQuery​(java.lang.String userQuery,
                                          java.util.Collection<java.lang.String> knowledgeServiceInstanceIds,
                                          int maxRows)
                                   throws PortalException
        Returns the search query using the given parameters.
        Parameters:
        userQuery - the user query.
        knowledgeServiceInstanceIds - the identifiers of the service instances to search for knowledge.
        maxRows - the maximum number of rows to search for.
        Returns:
        the created search query.
        Throws:
        PortalException
        Since:
        16.1.0