Package dev.langchain4j.data.message
Class TextContent
java.lang.Object
dev.langchain4j.data.message.TextContent
- All Implemented Interfaces:
Content
Represents a text content.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
TextContent
Creates a new text content.- Parameters:
text
- the text.
-
-
Method Details
-
text
Returns the text.- Returns:
- the text.
-
type
Description copied from interface:Content
Returns the type of content.Can be used to cast the content to the correct type.
-
equals
-
hashCode
public int hashCode() -
toString
-
from
Creates a new text content.- Parameters:
text
- the text.- Returns:
- the text content.
-