Record Class ClassifierInput.Content
java.lang.Object
java.lang.Record
com.google.adk.classifiers.ClassifierInput.Content
- All Implemented Interfaces:
ClassifierInput
- Enclosing interface:
ClassifierInput
public static record ClassifierInput.Content(com.google.genai.types.Content content)
extends Record
implements ClassifierInput
Content 输入:每个分类器都接受文本数据;如果某个分类器的模型支持处理其他类型的数据(如图像或文件),那么该分类器也能处理这些类型的数据。-
嵌套类概述
Nested classes/interfaces inherited from interface ClassifierInput
ClassifierInput.Content -
构造函数概述
ConstructorsConstructorDescriptionContent(com.google.genai.types.Content content) 创建一个……的实例。Content记录类(Record Class)。 -
方法概述
-
构造函数详细信息
-
Content
public Content(com.google.genai.types.Content content) 创建一个……的实例。Content记录类(Record Class)。- Parameters:
content- the value for thecontentrecord component
-
-
方法详细信息(Method Details)
-
toString
-
hashCode
-
equals
用于判断另一个对象是否“等于”当前对象。当另一个对象属于相同的类,并且所有记录组件都相同时,这两个对象才被认为是相等的。该记录类中的所有组件都会被逐一进行比较。Objects::equals(Object,Object). -
content
public com.google.genai.types.Content content()返回该值的值。content“record component”(记录组件)。- Returns:
- the value of the
contentrecord component
-