Class TextContent
- java.lang.Object
-
- com.microsoft.semantickernel.services.KernelContent<String>
-
- com.microsoft.semantickernel.services.textcompletion.TextContent
-
public class TextContent extends KernelContent<String>
Content from a text completion service.
-
-
Constructor Summary
Constructors Constructor Description TextContent(String content, String modelId, FunctionResultMetadata metadata)Initializes a new instance of theTextContentclass with a provided content, model ID, and metadata.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContent()Gets the content returned by the AI service.StringgetValue()Gets the content.-
Methods inherited from class com.microsoft.semantickernel.services.KernelContent
getInnerContent, getMetadata, getModelId
-
-
-
-
Constructor Detail
-
TextContent
public TextContent(String content, String modelId, FunctionResultMetadata metadata)
Initializes a new instance of theTextContentclass with a provided content, model ID, and metadata.- Parameters:
content- The content.modelId- The model ID.metadata- The metadata.
-
-
Method Detail
-
getValue
public String getValue()
Gets the content.- Returns:
- The content.
-
getContent
public String getContent()
Description copied from class:KernelContentGets the content returned by the AI service.- Specified by:
getContentin classKernelContent<String>- Returns:
- The content.
-
-