Class TextContent
- java.lang.Object
-
- com.microsoft.semantickernel.services.KernelContentImpl<String>
-
- com.microsoft.semantickernel.services.textcompletion.TextContent
-
- All Implemented Interfaces:
KernelContent<String>
public class TextContent extends KernelContentImpl<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.KernelContentImpl
getInnerContent, getMetadata
-
-
-
-
Constructor Detail
-
TextContent
public TextContent(String content, @Nullable String modelId, @Nullable 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 interface:KernelContentGets the content returned by the AI service.- Returns:
- The content.
-
-