Partager via


TextContent Class

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 TextContent class with a provided content, model ID, and metadata.

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

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

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:

content - The content.
modelId - The model ID.
metadata - The metadata.

Method Details

getContent

public String getContent()

getValue

public String getValue()

Gets the content.

Returns:

The content.

Applies to