Class ChatMessage

java.lang.Object
com.polarion.platform.ai.llm.ChatMessage
All Implemented Interfaces:
Serializable

public final class ChatMessage extends Object implements Serializable
Represents a message from a chat with an LLM (Large Language Model).

A chat message has a role (e.g., "user", "assistant", "system") and the content which is the actual text of the message.

Since:
3.25.12
See Also:
  • Constructor Details

    • ChatMessage

      public ChatMessage(@NotNull String role, @NotNull String content)
  • Method Details