Represents a message in a chat conversation
Constructors
Creates a new ChatMessage
Parameters:
- role: The role of the message sender
- content: The content of the message
SourceInstance methods
content
The content of the message
SourceThe content of the message
Sourcerole
The role of the message sender (e.g., "system", "user", "assistant")
SourceThe role of the message sender (e.g., "system", "user", "assistant")
Sourceto_unsafe
Converts to the C structure
Source