Uses of Class
org.codelibs.fess.entity.ChatMessage
Packages that use ChatMessage
-
Uses of ChatMessage in org.codelibs.fess.chat
Methods in org.codelibs.fess.chat that return ChatMessageMethods in org.codelibs.fess.chat with parameters of type ChatMessageModifier and TypeMethodDescriptionbooleanChatSessionManager.addMessage(String sessionId, ChatMessage message) Adds a message to a session.protected voidChatClient.addSourcesToMessage(ChatMessage assistantMessage, List<Map<String, Object>> sourceList, String contextPath, String queryId, long requestedTime) Creates ChatSource objects from search results and adds them to the assistant message.protected StringChatClient.buildAssistantHistoryContent(ChatMessage msg, String mode, int assistantMaxChars, int summaryMaxChars) Builds the assistant message content for history based on the specified mode.protected StringChatClient.buildSourceTitlesAndUrlsContent(ChatMessage msg) Builds a summary string from source document titles and URLs.protected StringChatClient.buildSourceTitlesContent(ChatMessage msg, int summaryMaxChars) Builds a summary string from source document titles.protected StringChatClient.buildTruncatedContent(ChatMessage msg, int maxChars) Builds a truncated version of the assistant message content.protected StringChatClient.renderAnswerHistoryTurn(String userQuery, ChatMessage assistantMsg, int titlesMaxCount) Renders a single (user, assistant) turn for the Answer Generation prompt history.protected StringChatClient.renderIntentHistoryTurn(ChatMessage assistantMsg, int titlesMaxCount) Renders a single assistant turn for the Intent Detection prompt history.Constructors in org.codelibs.fess.chat with parameters of type ChatMessageModifierConstructorDescriptionChatResult(String sessionId, ChatMessage message, List<Map<String, Object>> sources) Creates a new chat result. -
Uses of ChatMessage in org.codelibs.fess.entity
Methods in org.codelibs.fess.entity that return ChatMessageModifier and TypeMethodDescriptionstatic ChatMessageChatMessage.assistantMessage(String content) Creates an assistant message with the specified content.static ChatMessageChatMessage.userMessage(String content) Creates a user message with the specified content.Methods in org.codelibs.fess.entity that return types with arguments of type ChatMessageModifier and TypeMethodDescriptionChatSession.getMessages()Returns a copy of the message list in this session.Methods in org.codelibs.fess.entity with parameters of type ChatMessageModifier and TypeMethodDescriptionvoidChatSession.addMessage(ChatMessage message) Adds a message to this session and updates the last accessed timestamp.Method parameters in org.codelibs.fess.entity with type arguments of type ChatMessageModifier and TypeMethodDescriptionvoidChatSession.setMessages(List<ChatMessage> messages) Sets the message list for this session.