Class DocumentAskRequest.Builder
- All Implemented Interfaces:
DocumentAskRequest._FinalStage,DocumentAskRequest.PromptStage
- Enclosing class:
DocumentAskRequest
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) allowGlobalRegion(Boolean allowGlobalRegion) Opt this request into global (non-US) region serving for lower cost.allowGlobalRegion(Optional<Boolean> allowGlobalRegion) Opt this request into global (non-US) region serving for lower cost.build()from(DocumentAskRequest other) instructions(String instructions) Optional system prompt that overrides the default.instructions(Optional<String> instructions) Optional system prompt that overrides the default.Maximum number of tokens to generate.Maximum number of tokens to generate.Model alias to use, from the list returned byGET /v1/models.Model alias to use, from the list returned byGET /v1/models.The question or instruction to answer about the document.temperature(Float temperature) Sampling temperature.temperature(Optional<Float> temperature) Sampling temperature.
-
Method Details
-
from
- Specified by:
fromin interfaceDocumentAskRequest.PromptStage
-
prompt
The question or instruction to answer about the document.
The question or instruction to answer about the document.
- Specified by:
promptin interfaceDocumentAskRequest.PromptStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
allowGlobalRegion
Opt this request into global (non-US) region serving for lower cost. Requires a signed global-processing waiver on your account that permits per-request override; otherwise the request is rejected with 403. When omitted, the request follows your account's default residency setting.
- Specified by:
allowGlobalRegionin interfaceDocumentAskRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
allowGlobalRegion
Opt this request into global (non-US) region serving for lower cost. Requires a signed global-processing waiver on your account that permits per-request override; otherwise the request is rejected with 403. When omitted, the request follows your account's default residency setting.
- Specified by:
allowGlobalRegionin interfaceDocumentAskRequest._FinalStage
-
temperature
Sampling temperature. Defaults to 0.2.
- Specified by:
temperaturein interfaceDocumentAskRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
temperature
Sampling temperature. Defaults to 0.2.
- Specified by:
temperaturein interfaceDocumentAskRequest._FinalStage
-
maxTokens
Maximum number of tokens to generate. Defaults to 2048; the maximum is 8192.
- Specified by:
maxTokensin interfaceDocumentAskRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
maxTokens
Maximum number of tokens to generate. Defaults to 2048; the maximum is 8192.
- Specified by:
maxTokensin interfaceDocumentAskRequest._FinalStage
-
model
Model alias to use, from the list returned by
GET /v1/models. Defaults toclaude-haiku-4-5.- Specified by:
modelin interfaceDocumentAskRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
model
Model alias to use, from the list returned by
GET /v1/models. Defaults toclaude-haiku-4-5.- Specified by:
modelin interfaceDocumentAskRequest._FinalStage
-
instructions
Optional system prompt that overrides the default. Defaults to a generic instruction to act as a helpful document analyst.
- Specified by:
instructionsin interfaceDocumentAskRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
instructions
Optional system prompt that overrides the default. Defaults to a generic instruction to act as a helpful document analyst.
- Specified by:
instructionsin interfaceDocumentAskRequest._FinalStage
-
build
- Specified by:
buildin interfaceDocumentAskRequest._FinalStage
-
additionalProperty
- Specified by:
additionalPropertyin interfaceDocumentAskRequest._FinalStage
-
additionalProperties
- Specified by:
additionalPropertiesin interfaceDocumentAskRequest._FinalStage
-