Uses of Record Class
dev.dokimos.core.conversation.Message
Packages that use Message
-
Uses of Message in dev.dokimos.core.conversation
Methods in dev.dokimos.core.conversation that return MessageModifier and TypeMethodDescriptionstatic MessageCreates an assistant message.LLMSimulatedUser.generateMessage(ConversationTrajectory trajectory) SimulatedUser.generateMessage(ConversationTrajectory trajectory) Generates the next user message based on the current conversation state.ConversationTrajectory.lastAssistantMessage()Returns the last assistant message in the conversation, if any.ConversationTrajectory.lastMessage()Returns the last message in the conversation, if any.ConversationTrajectory.lastUserMessage()Returns the last user message in the conversation, if any.static MessageMessage.of(Message.Role role, String content) Creates a message with just role and content.ConversationalApplication.respond(ConversationTrajectory trajectory) Generates a response to the current conversation state.static MessageCreates a system message.static MessageCreates a user message.Methods in dev.dokimos.core.conversation that return types with arguments of type MessageModifier and TypeMethodDescriptionConversationTrajectory.assistantMessages()Returns only the assistant messages from the conversation.ConversationTrajectory.messages()Returns the value of themessagesrecord component.ConversationTrajectory.systemMessages()Returns only the system messages from the conversation.ConversationTrajectory.userMessages()Returns only the user messages from the conversation.Methods in dev.dokimos.core.conversation with parameters of type MessageModifier and TypeMethodDescriptionAdds a message to the trajectory.ConversationTrajectory.withMessage(Message message) Creates a new trajectory with an additional message appended.Method parameters in dev.dokimos.core.conversation with type arguments of type MessageModifier and TypeMethodDescriptionAdds all messages from a list.Constructor parameters in dev.dokimos.core.conversation with type arguments of type Message