Class ModelCapabilities.Builder
-
- All Implemented Interfaces:
public final class ModelCapabilities.BuilderA builder for ModelCapabilities.
-
-
Method Summary
-
-
Method Detail
-
batch
final ModelCapabilities.Builder batch(CapabilitySupport batch)
Whether the model supports the Batch API.
-
batch
final ModelCapabilities.Builder batch(JsonField<CapabilitySupport> batch)
Sets Builder.batch to an arbitrary JSON value.
You should usually call Builder.batch with a well-typed CapabilitySupport value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
citations
final ModelCapabilities.Builder citations(CapabilitySupport citations)
Whether the model supports citation generation.
-
citations
final ModelCapabilities.Builder citations(JsonField<CapabilitySupport> citations)
Sets Builder.citations to an arbitrary JSON value.
You should usually call Builder.citations with a well-typed CapabilitySupport value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
codeExecution
final ModelCapabilities.Builder codeExecution(CapabilitySupport codeExecution)
Whether the model supports code execution tools.
-
codeExecution
final ModelCapabilities.Builder codeExecution(JsonField<CapabilitySupport> codeExecution)
Sets Builder.codeExecution to an arbitrary JSON value.
You should usually call Builder.codeExecution with a well-typed CapabilitySupport value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
contextManagement
final ModelCapabilities.Builder contextManagement(ContextManagementCapability contextManagement)
Context management support and available strategies.
-
contextManagement
final ModelCapabilities.Builder contextManagement(JsonField<ContextManagementCapability> contextManagement)
Sets Builder.contextManagement to an arbitrary JSON value.
You should usually call Builder.contextManagement with a well-typed ContextManagementCapability value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
effort
final ModelCapabilities.Builder effort(EffortCapability effort)
Effort (reasoning_effort) support and available levels.
-
effort
final ModelCapabilities.Builder effort(JsonField<EffortCapability> effort)
Sets Builder.effort to an arbitrary JSON value.
You should usually call Builder.effort with a well-typed EffortCapability value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
imageInput
final ModelCapabilities.Builder imageInput(CapabilitySupport imageInput)
Whether the model accepts image content blocks.
-
imageInput
final ModelCapabilities.Builder imageInput(JsonField<CapabilitySupport> imageInput)
Sets Builder.imageInput to an arbitrary JSON value.
You should usually call Builder.imageInput with a well-typed CapabilitySupport value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
pdfInput
final ModelCapabilities.Builder pdfInput(CapabilitySupport pdfInput)
Whether the model accepts PDF content blocks.
-
pdfInput
final ModelCapabilities.Builder pdfInput(JsonField<CapabilitySupport> pdfInput)
Sets Builder.pdfInput to an arbitrary JSON value.
You should usually call Builder.pdfInput with a well-typed CapabilitySupport value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
structuredOutputs
final ModelCapabilities.Builder structuredOutputs(CapabilitySupport structuredOutputs)
Whether the model supports structured output / JSON mode / strict tool schemas.
-
structuredOutputs
final ModelCapabilities.Builder structuredOutputs(JsonField<CapabilitySupport> structuredOutputs)
Sets Builder.structuredOutputs to an arbitrary JSON value.
You should usually call Builder.structuredOutputs with a well-typed CapabilitySupport value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
thinking
final ModelCapabilities.Builder thinking(ThinkingCapability thinking)
Thinking capability and supported type configurations.
-
thinking
final ModelCapabilities.Builder thinking(JsonField<ThinkingCapability> thinking)
Sets Builder.thinking to an arbitrary JSON value.
You should usually call Builder.thinking with a well-typed ThinkingCapability value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ModelCapabilities.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ModelCapabilities.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ModelCapabilities.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ModelCapabilities.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ModelCapabilities.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ModelCapabilities build()
Returns an immutable instance of ModelCapabilities.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.batch() .citations() .codeExecution() .contextManagement() .effort() .imageInput() .pdfInput() .structuredOutputs() .thinking()
-
-
-
-