All Downloads are FREE. Search and download functionalities are using the official Maven repository.

eu.ciechanowiec.sling.rocket.llm.ChatMessage Maven / Gradle / Ivy

There is a newer version: 13.32.0
Show newest version
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