类 TextContent
java.lang.Object
dev.langchain4j.data.message.TextContent
- 所有已实现的接口:
Content
Represents a text content.
-
构造器概要
构造器 -
方法概要
-
构造器详细资料
-
TextContent
Creates a new text content.- 参数:
text- the text.
-
-
方法详细资料
-
text
Returns the text.- 返回:
- the text.
-
type
从接口复制的说明:ContentReturns 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.- 参数:
text- the text.- 返回:
- the text content.
-