Class BetaCitationContentBlockLocationParam.Builder
-
- All Implemented Interfaces:
public final class BetaCitationContentBlockLocationParam.BuilderA builder for BetaCitationContentBlockLocationParam.
-
-
Method Summary
-
-
Method Detail
-
citedText
final BetaCitationContentBlockLocationParam.Builder citedText(String citedText)
The full text of the cited block range, concatenated.
Always equals the contents of
content[start_block_index:end_block_index]joined together. The text block is the minimal citable unit; this field is never a substring of a single block. Not counted toward output tokens, and not counted toward input tokens when sent back in subsequent turns.
-
citedText
final BetaCitationContentBlockLocationParam.Builder citedText(JsonField<String> citedText)
Sets Builder.citedText to an arbitrary JSON value.
You should usually call Builder.citedText with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
documentIndex
final BetaCitationContentBlockLocationParam.Builder documentIndex(Long documentIndex)
-
documentIndex
final BetaCitationContentBlockLocationParam.Builder documentIndex(JsonField<Long> documentIndex)
Sets Builder.documentIndex to an arbitrary JSON value.
You should usually call Builder.documentIndex with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
documentTitle
final BetaCitationContentBlockLocationParam.Builder documentTitle(String documentTitle)
-
documentTitle
final BetaCitationContentBlockLocationParam.Builder documentTitle(Optional<String> documentTitle)
Alias for calling Builder.documentTitle with
documentTitle.orElse(null).
-
documentTitle
final BetaCitationContentBlockLocationParam.Builder documentTitle(JsonField<String> documentTitle)
Sets Builder.documentTitle to an arbitrary JSON value.
You should usually call Builder.documentTitle with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
endBlockIndex
final BetaCitationContentBlockLocationParam.Builder endBlockIndex(Long endBlockIndex)
Exclusive 0-based end index of the cited block range in the source's
contentarray.Always greater than
start_block_index; a single-block citation hasend_block_index = start_block_index + 1.
-
endBlockIndex
final BetaCitationContentBlockLocationParam.Builder endBlockIndex(JsonField<Long> endBlockIndex)
Sets Builder.endBlockIndex to an arbitrary JSON value.
You should usually call Builder.endBlockIndex with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
startBlockIndex
final BetaCitationContentBlockLocationParam.Builder startBlockIndex(Long startBlockIndex)
0-based index of the first cited block in the source's
contentarray.
-
startBlockIndex
final BetaCitationContentBlockLocationParam.Builder startBlockIndex(JsonField<Long> startBlockIndex)
Sets Builder.startBlockIndex to an arbitrary JSON value.
You should usually call Builder.startBlockIndex with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaCitationContentBlockLocationParam.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("content_block_location")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaCitationContentBlockLocationParam.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaCitationContentBlockLocationParam.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaCitationContentBlockLocationParam.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaCitationContentBlockLocationParam.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaCitationContentBlockLocationParam.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaCitationContentBlockLocationParam build()
Returns an immutable instance of BetaCitationContentBlockLocationParam.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.citedText() .documentIndex() .documentTitle() .endBlockIndex() .startBlockIndex()
-
-
-
-