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: 26586 $ $Date: 2024-08-26 21:06:04 -0300 (Mon, 26 Aug 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