Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for fromValue (0.06 seconds)

  1. src/main/java/org/codelibs/fess/llm/ChatIntent.java

         * Parses a string value to ChatIntent enum.
         *
         * @param value the string value to parse
         * @return the corresponding ChatIntent, defaults to UNCLEAR if not found
         */
        public static ChatIntent fromValue(final String value) {
            if (value == null) {
                return UNCLEAR;
            }
            for (final ChatIntent intent : values()) {
                if (intent.value.equalsIgnoreCase(value.trim())) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 01 08:11:18 GMT 2026
    - 1.8K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/llm/ChatIntentTest.java

            assertEquals(ChatIntent.SEARCH, ChatIntent.fromValue("search"));
            assertEquals(ChatIntent.SEARCH, ChatIntent.fromValue("SEARCH"));
            assertEquals(ChatIntent.SEARCH, ChatIntent.fromValue("Search"));
        }
    
        @Test
        public void test_fromValue_summary() {
            assertEquals(ChatIntent.SUMMARY, ChatIntent.fromValue("summary"));
            assertEquals(ChatIntent.SUMMARY, ChatIntent.fromValue("SUMMARY"));
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 01 08:11:18 GMT 2026
    - 3.8K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/llm/AbstractLlmClient.java

            try {
                final String intentStr = extractJsonString(response, "intent");
                final ChatIntent intent = ChatIntent.fromValue(intentStr);
                final String query = extractJsonString(response, "query");
                final String reasoning = extractJsonString(response, "reasoning");
    
                if (intent == ChatIntent.SEARCH) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 72K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/sso/saml/SamlAuthenticator.java

                    return;
                }
                params.put("onelogin.saml2." + key.substring(SAML_PREFIX.length()), e.getValue());
            });
            return new SettingsBuilder().fromValues(params).build();
        }
    
        @Override
        public LoginCredential getLoginCredential() {
            return LaRequestUtil.getOptionalRequest().map(request -> {
                if (logger.isDebugEnabled()) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Jan 02 03:13:33 GMT 2026
    - 20.2K bytes
    - Click Count (3)
Back to Top