Class TextContent
java.lang.Object
com.google.genai.gaos.models.interactions.TextContent
- All Implemented Interfaces:
Content,FunctionResultSubcontent,ThoughtSummaryContent
public class TextContent
extends Object
implements FunctionResultSubcontent, Content, ThoughtSummaryContent
TextContent
A text content block.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionTextContent(String text) TextContent(List<Annotation> annotations, String text) -
Method Summary
Modifier and TypeMethodDescriptionCitation information for model-generated content.static TextContent.Builderbuilder()booleaninthashCode()text()Required.toString()type()withAnnotations(List<Annotation> annotations) Citation information for model-generated content.Required.
-
Constructor Details
-
TextContent
-
TextContent
-
-
Method Details
-
annotations
Citation information for model-generated content. -
text
Required. The text content. -
type
- Specified by:
typein interfaceContent- Specified by:
typein interfaceFunctionResultSubcontent- Specified by:
typein interfaceThoughtSummaryContent
-
builder
-
withAnnotations
Citation information for model-generated content. -
withText
Required. The text content. -
equals
-
hashCode
public int hashCode() -
toString
-