- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for fromValue (0.04 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
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) -
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)