Package com.anthropic.models
Class TextBlock
-
- All Implemented Interfaces:
public final class TextBlock
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classTextBlock.BuilderA builder for TextBlock.
public final classTextBlock.Type
-
Method Summary
Modifier and Type Method Description final Optional<List<TextCitation>>citations()Citations supporting the text block. final Stringtext()final TextBlock.Typetype()final JsonField<List<TextCitation>>_citations()Citations supporting the text block. final JsonField<String>_text()final JsonField<TextBlock.Type>_type()final Map<String, JsonValue>_additionalProperties()final TextBlockParamtoParam()final TextBlockvalidate()final TextBlock.BuildertoBuilder()Booleanequals(Object other)IntegerhashCode()StringtoString()final static TextBlock.Builderbuilder()-
-
Method Detail
-
citations
final Optional<List<TextCitation>> citations()
Citations supporting the text block.
The type of citation returned will depend on the type of document being cited. Citing a PDF results in
page_location, plain text results inchar_location, and content document results incontent_block_location.
-
type
final TextBlock.Type type()
-
_citations
final JsonField<List<TextCitation>> _citations()
Citations supporting the text block.
The type of citation returned will depend on the type of document being cited. Citing a PDF results in
page_location, plain text results inchar_location, and content document results incontent_block_location.
-
_type
final JsonField<TextBlock.Type> _type()
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toParam
final TextBlockParam toParam()
-
toBuilder
final TextBlock.Builder toBuilder()
-
builder
final static TextBlock.Builder builder()
-
-
-
-