- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for fromValue (0.04 seconds)
-
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) -
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)