Package com.anthropic.models.messages
Class Tool.InputSchema.Builder
-
- All Implemented Interfaces:
public final class Tool.InputSchema.BuilderA builder for InputSchema.
-
-
Method Summary
-
-
Method Detail
-
type
final Tool.InputSchema.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("object")This method is primarily for setting the field to an undocumented or not yet supported value.
-
properties
final Tool.InputSchema.Builder properties(JsonValue properties)
-
required
final Tool.InputSchema.Builder required(List<String> required)
-
required
final Tool.InputSchema.Builder required(Optional<List<String>> required)
Alias for calling Builder.required with
required.orElse(null).
-
required
final Tool.InputSchema.Builder required(JsonField<List<String>> required)
Sets Builder.required to an arbitrary JSON value.
You should usually call Builder.required with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addRequired
final Tool.InputSchema.Builder addRequired(String required)
Adds a single String to Builder.required.
-
additionalProperties
final Tool.InputSchema.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final Tool.InputSchema.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final Tool.InputSchema.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final Tool.InputSchema.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final Tool.InputSchema.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final Tool.InputSchema build()
Returns an immutable instance of InputSchema.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-