eu.ciechanowiec.sling.rocket.llm.ChatMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sling.rocket.commons Show documentation
Show all versions of sling.rocket.commons Show documentation
Common utilities used by Sling Rocket
package eu.ciechanowiec.sling.rocket.llm;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
/**
* Represents a single message in a conversation with an AI-based chatbot.
*/
@SuppressWarnings("ClassReferencesSubclass")
@JsonDeserialize(as = ChatMessageDefault.class)
public interface ChatMessage {
/**
* Returns the {@link Role} of the author of this {@link ChatMessage}.
* @return {@link Role} of the author of this {@link ChatMessage}
*/
Role role();
/**
* Returns the content of this {@link ChatMessage}.
* @return content of this {@link ChatMessage}
*/
String content();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy