Message
Represents a message exchanged in a chat with LLM. Messages can be categorized by their type and role, denoting the purpose and source of the message.
Represents both a message from LLM and a message to LLM from user or environment.
Inheritors
Types
Link copied to clipboard
@Serializable
Represents a message generated by the assistant as a response.
Link copied to clipboard
Defines the role of the message in the chat (e.g., system, user, assistant, tool).
Link copied to clipboard
Represents a system-generated message.
Link copied to clipboard
Represents a message sent by the user as a request.