ChatMessageTextContent Class   
	- java.lang. Object 
- com.microsoft. semantickernel. services. KernelContentImpl<T> 
- com.microsoft. semantickernel. services. chatcompletion. ChatMessageContent<T> 
- com.microsoft. semantickernel. services. chatcompletion. message. ChatMessageTextContent 
 
- com.
 
- com.
 
- com.
public class ChatMessageTextContent
 extends ChatMessageContent<java.lang.String>
Represents the content of a chat message which contains text
Constructor Summary
| Constructor | Description | 
|---|---|
| ChatMessageTextContent(AuthorRole authorRole, String content, String modelId, Charset encoding, FunctionResultMetadata metadata) | Creates a new instance of the ChatMessageTextContent class. | 
Method Summary
| Modifier and Type | Method and Description | 
|---|---|
| static
									Chat | assistantMessage(String content) Create a message with the author role set to ASSISTANT | 
| static Builder | builder() Create a new builder for the ChatMessageTextContent class. | 
| static
									Chat | systemMessage(String content) Create a message with the author role set to SYSTEM | 
| static
									Chat | userMessage(String content) Create a message with the author role set to USER | 
Methods inherited from KernelContentImpl
Methods inherited from ChatMessageContent
Methods inherited from java.lang.Object
Constructor Details
ChatMessageTextContent
public ChatMessageTextContent(AuthorRole authorRole, String content, String modelId, Charset encoding, FunctionResultMetadata metadata)
Creates a new instance of the ChatMessageTextContent class.
Parameters:
Method Details
assistantMessage
public static ChatMessageTextContent assistantMessage(String content)
Create a message with the author role set to ASSISTANT
Parameters:
Returns:
builder
public static ChatMessageTextContent.Builder builder()
Create a new builder for the ChatMessageTextContent class.
Returns:
systemMessage
public static ChatMessageTextContent systemMessage(String content)
Create a message with the author role set to SYSTEM
Parameters:
Returns:
userMessage
public static ChatMessageTextContent userMessage(String content)
Create a message with the author role set to USER
Parameters:
Returns: