Class V1DraftParams
-
- All Implemented Interfaces:
-
dev.case.api.core.Params
public final class V1DraftParams implements Params
Generate a legal document with structured inputs. Powered by an agent that handles research, formatting, citation verification, and vault upload. Returns a run ID for polling.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classV1DraftParams.BuilderA builder for V1DraftParams.
public final classV1DraftParams.Bodypublic final classV1DraftParams.LengthTarget document length
public final classV1DraftParams.OutputTypeOutput file format
-
Method Summary
Modifier and Type Method Description final Stringinstructions()What to draft — the core task. final StringvaultId()Vault ID where the final document will be uploaded final Optional<Boolean>citations()Research and include legal citations final Optional<String>format()Court or jurisdiction formatting hint. final Optional<V1DraftParams.Length>length()Target document length final Optional<String>model()LLM model override. final Optional<List<String>>objectIds()Vault object IDs to use as source/reference documents final Optional<String>outputName()Filename for the output document. final Optional<V1DraftParams.OutputType>outputType()Output file format final Optional<Boolean>verified()Verify all citations in a loop — re-run verification and repair bad citations until they pass final JsonField<String>_instructions()Returns the raw JSON value of instructions. final JsonField<String>_vaultId()Returns the raw JSON value of vaultId. final JsonField<Boolean>_citations()Returns the raw JSON value of citations. final JsonField<String>_format()Returns the raw JSON value of format. final JsonField<V1DraftParams.Length>_length()Returns the raw JSON value of length. final JsonField<String>_model()Returns the raw JSON value of model. final JsonField<List<String>>_objectIds()Returns the raw JSON value of objectIds. final JsonField<String>_outputName()Returns the raw JSON value of outputName. final JsonField<V1DraftParams.OutputType>_outputType()Returns the raw JSON value of outputType. final JsonField<Boolean>_verified()Returns the raw JSON value of verified. final Map<String, JsonValue>_additionalBodyProperties()final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final V1DraftParams.BuildertoBuilder()final V1DraftParams.Body_body()Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. Booleanequals(Object other)IntegerhashCode()StringtoString()final static V1DraftParams.Builderbuilder()Returns a mutable builder for constructing an instance of V1DraftParams. -
-
Method Detail
-
instructions
final String instructions()
What to draft — the core task. E.g., "Motion to compel defendant to produce discovery responses"
-
format
final Optional<String> format()
Court or jurisdiction formatting hint. Triggers a legal-skills search. E.g., "California Superior Court", "SDNY", "federal pleading"
-
length
final Optional<V1DraftParams.Length> length()
Target document length
-
objectIds
final Optional<List<String>> objectIds()
Vault object IDs to use as source/reference documents
-
outputName
final Optional<String> outputName()
Filename for the output document. Auto-generated if omitted.
-
outputType
final Optional<V1DraftParams.OutputType> outputType()
Output file format
-
verified
final Optional<Boolean> verified()
Verify all citations in a loop — re-run verification and repair bad citations until they pass
-
_instructions
final JsonField<String> _instructions()
Returns the raw JSON value of instructions.
Unlike instructions, this method doesn't throw if the JSON field has an unexpected type.
-
_vaultId
final JsonField<String> _vaultId()
Returns the raw JSON value of vaultId.
Unlike vaultId, this method doesn't throw if the JSON field has an unexpected type.
-
_citations
final JsonField<Boolean> _citations()
Returns the raw JSON value of citations.
Unlike citations, this method doesn't throw if the JSON field has an unexpected type.
-
_format
final JsonField<String> _format()
Returns the raw JSON value of format.
Unlike format, this method doesn't throw if the JSON field has an unexpected type.
-
_length
final JsonField<V1DraftParams.Length> _length()
Returns the raw JSON value of length.
Unlike length, this method doesn't throw if the JSON field has an unexpected type.
-
_model
final JsonField<String> _model()
Returns the raw JSON value of model.
Unlike model, this method doesn't throw if the JSON field has an unexpected type.
-
_objectIds
final JsonField<List<String>> _objectIds()
Returns the raw JSON value of objectIds.
Unlike objectIds, this method doesn't throw if the JSON field has an unexpected type.
-
_outputName
final JsonField<String> _outputName()
Returns the raw JSON value of outputName.
Unlike outputName, this method doesn't throw if the JSON field has an unexpected type.
-
_outputType
final JsonField<V1DraftParams.OutputType> _outputType()
Returns the raw JSON value of outputType.
Unlike outputType, this method doesn't throw if the JSON field has an unexpected type.
-
_verified
final JsonField<Boolean> _verified()
Returns the raw JSON value of verified.
Unlike verified, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
Additional headers to send with the request.
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
Additional query param to send with the request.
-
toBuilder
final V1DraftParams.Builder toBuilder()
-
_body
final V1DraftParams.Body _body()
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
builder
final static V1DraftParams.Builder builder()
Returns a mutable builder for constructing an instance of V1DraftParams.
The following fields are required:
.instructions() .vaultId()
-
-
-
-