Package com.anthropic.models
Class BetaTextBlock
-
- All Implemented Interfaces:
public final class BetaTextBlock
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaTextBlock.BuilderA builder for BetaTextBlock.
public final classBetaTextBlock.Type
-
Method Summary
Modifier and Type Method Description final Optional<List<BetaTextCitation>>citations()Citations supporting the text block. final Stringtext()final BetaTextBlock.Typetype()final JsonField<List<BetaTextCitation>>_citations()Citations supporting the text block. final JsonField<String>_text()final JsonField<BetaTextBlock.Type>_type()final Map<String, JsonValue>_additionalProperties()final BetaTextBlockParamtoParam()final BetaTextBlockvalidate()final BetaTextBlock.BuildertoBuilder()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaTextBlock.Builderbuilder()-
-
Method Detail
-
citations
final Optional<List<BetaTextCitation>> 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 BetaTextBlock.Type type()
-
_citations
final JsonField<List<BetaTextCitation>> _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<BetaTextBlock.Type> _type()
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toParam
final BetaTextBlockParam toParam()
-
validate
final BetaTextBlock validate()
-
toBuilder
final BetaTextBlock.Builder toBuilder()
-
builder
final static BetaTextBlock.Builder builder()
-
-
-
-