TextContent Class
- java.
lang. Object - com.
microsoft. semantickernel. services. KernelContentImpl<T> - com.
microsoft. semantickernel. services. textcompletion. TextContent
- com.
- com.
public class TextContent
extends KernelContentImpl<java.lang.String>
Content from a text completion service.
Constructor Summary
| Constructor | Description |
|---|---|
| TextContent(String content, String modelId, FunctionResultMetadata metadata) |
Initializes a new instance of the |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.lang.String | getContent() |
| java.lang.String |
getValue()
Gets the content. |
Methods inherited from KernelContentImpl
Methods inherited from java.lang.Object
Constructor Details
TextContent
public TextContent(String content, String modelId, FunctionResultMetadata metadata)
Initializes a new instance of the TextContent class with a provided content, model ID, and metadata.
Parameters:
Method Details
getContent
public String getContent()
getValue
public String getValue()
Gets the content.
Returns: