Class V1DraftParams.Body.Builder
-
- All Implemented Interfaces:
public final class V1DraftParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
instructions
final V1DraftParams.Body.Builder instructions(String instructions)
What to draft — the core task. E.g., "Motion to compel defendant to produce discovery responses"
-
instructions
final V1DraftParams.Body.Builder instructions(JsonField<String> instructions)
Sets Builder.instructions to an arbitrary JSON value.
You should usually call Builder.instructions with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
vaultId
final V1DraftParams.Body.Builder vaultId(String vaultId)
Vault ID where the final document will be uploaded
-
vaultId
final V1DraftParams.Body.Builder vaultId(JsonField<String> vaultId)
Sets Builder.vaultId to an arbitrary JSON value.
You should usually call Builder.vaultId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
citations
final V1DraftParams.Body.Builder citations(Boolean citations)
Research and include legal citations
-
citations
final V1DraftParams.Body.Builder citations(JsonField<Boolean> citations)
Sets Builder.citations to an arbitrary JSON value.
You should usually call Builder.citations with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
format
final V1DraftParams.Body.Builder format(String format)
Court or jurisdiction formatting hint. Triggers a legal-skills search. E.g., "California Superior Court", "SDNY", "federal pleading"
-
format
final V1DraftParams.Body.Builder format(Optional<String> format)
Alias for calling Builder.format with
format.orElse(null).
-
format
final V1DraftParams.Body.Builder format(JsonField<String> format)
Sets Builder.format to an arbitrary JSON value.
You should usually call Builder.format with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
length
final V1DraftParams.Body.Builder length(V1DraftParams.Length length)
Target document length
-
length
final V1DraftParams.Body.Builder length(Optional<V1DraftParams.Length> length)
Alias for calling Builder.length with
length.orElse(null).
-
length
final V1DraftParams.Body.Builder length(JsonField<V1DraftParams.Length> length)
Sets Builder.length to an arbitrary JSON value.
You should usually call Builder.length with a well-typed Length value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
model
final V1DraftParams.Body.Builder model(String model)
LLM model override. Defaults to anthropic/claude-sonnet-4.6
-
model
final V1DraftParams.Body.Builder model(Optional<String> model)
Alias for calling Builder.model with
model.orElse(null).
-
model
final V1DraftParams.Body.Builder model(JsonField<String> model)
Sets Builder.model to an arbitrary JSON value.
You should usually call Builder.model with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
objectIds
final V1DraftParams.Body.Builder objectIds(List<String> objectIds)
Vault object IDs to use as source/reference documents
-
objectIds
final V1DraftParams.Body.Builder objectIds(Optional<List<String>> objectIds)
Alias for calling Builder.objectIds with
objectIds.orElse(null).
-
objectIds
final V1DraftParams.Body.Builder objectIds(JsonField<List<String>> objectIds)
Sets Builder.objectIds to an arbitrary JSON value.
You should usually call Builder.objectIds with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addObjectId
final V1DraftParams.Body.Builder addObjectId(String objectId)
-
outputName
final V1DraftParams.Body.Builder outputName(String outputName)
Filename for the output document. Auto-generated if omitted.
-
outputName
final V1DraftParams.Body.Builder outputName(Optional<String> outputName)
Alias for calling Builder.outputName with
outputName.orElse(null).
-
outputName
final V1DraftParams.Body.Builder outputName(JsonField<String> outputName)
Sets Builder.outputName to an arbitrary JSON value.
You should usually call Builder.outputName with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
outputType
final V1DraftParams.Body.Builder outputType(V1DraftParams.OutputType outputType)
Output file format
-
outputType
final V1DraftParams.Body.Builder outputType(JsonField<V1DraftParams.OutputType> outputType)
Sets Builder.outputType to an arbitrary JSON value.
You should usually call Builder.outputType with a well-typed OutputType value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
verified
final V1DraftParams.Body.Builder verified(Boolean verified)
Verify all citations in a loop — re-run verification and repair bad citations until they pass
-
verified
final V1DraftParams.Body.Builder verified(JsonField<Boolean> verified)
Sets Builder.verified to an arbitrary JSON value.
You should usually call Builder.verified with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final V1DraftParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final V1DraftParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final V1DraftParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final V1DraftParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final V1DraftParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final V1DraftParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.instructions() .vaultId()
-
-
-
-