Class BetaRequestToolRemovalBlock.Builder
-
- All Implemented Interfaces:
public final class BetaRequestToolRemovalBlock.BuilderA builder for BetaRequestToolRemovalBlock.
-
-
Method Summary
-
-
Method Detail
-
tool
final BetaRequestToolRemovalBlock.Builder tool(BetaRequestToolRemovalBlock.Tool tool)
-
tool
final BetaRequestToolRemovalBlock.Builder tool(JsonField<BetaRequestToolRemovalBlock.Tool> tool)
Sets Builder.tool to an arbitrary JSON value.
You should usually call Builder.tool with a well-typed Tool value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
tool
final BetaRequestToolRemovalBlock.Builder tool(BetaToolChangeToolReference reference)
Alias for calling tool with
Tool.ofReference(reference).
-
tool
final BetaRequestToolRemovalBlock.Builder tool(BetaResponseToolChangeToolReference reference)
Alias for calling tool with
reference.toParam().
-
tool
final BetaRequestToolRemovalBlock.Builder tool(BetaToolChangeMcpToolReference mcpToolReference)
Alias for calling tool with
Tool.ofMcpToolReference(mcpToolReference).
-
tool
final BetaRequestToolRemovalBlock.Builder tool(BetaResponseToolChangeMcpToolReference mcpToolReference)
Alias for calling tool with
mcpToolReference.toParam().
-
tool
final BetaRequestToolRemovalBlock.Builder tool(BetaToolChangeMcpToolsetReference mcpToolsetReference)
Alias for calling tool with
Tool.ofMcpToolsetReference(mcpToolsetReference).
-
tool
final BetaRequestToolRemovalBlock.Builder tool(BetaResponseToolChangeMcpToolsetReference mcpToolsetReference)
Alias for calling tool with
mcpToolsetReference.toParam().
-
type
final BetaRequestToolRemovalBlock.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("tool_removal")This method is primarily for setting the field to an undocumented or not yet supported value.
-
cacheControl
final BetaRequestToolRemovalBlock.Builder cacheControl(BetaCacheControlEphemeral cacheControl)
Create a cache control breakpoint at this content block.
-
cacheControl
final BetaRequestToolRemovalBlock.Builder cacheControl(Optional<BetaCacheControlEphemeral> cacheControl)
Alias for calling Builder.cacheControl with
cacheControl.orElse(null).
-
cacheControl
final BetaRequestToolRemovalBlock.Builder cacheControl(JsonField<BetaCacheControlEphemeral> cacheControl)
Sets Builder.cacheControl to an arbitrary JSON value.
You should usually call Builder.cacheControl with a well-typed BetaCacheControlEphemeral value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaRequestToolRemovalBlock.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
referenceTool
final BetaRequestToolRemovalBlock.Builder referenceTool(String name)
Alias for calling tool with the following:
BetaToolChangeToolReference.builder() .name(name) .build()
-
mcpToolsetReferenceTool
final BetaRequestToolRemovalBlock.Builder mcpToolsetReferenceTool(String serverName)
Alias for calling tool with the following:
BetaToolChangeMcpToolsetReference.builder() .serverName(serverName) .build()
-
putAdditionalProperty
final BetaRequestToolRemovalBlock.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaRequestToolRemovalBlock.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaRequestToolRemovalBlock.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaRequestToolRemovalBlock.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaRequestToolRemovalBlock build()
Returns an immutable instance of BetaRequestToolRemovalBlock.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.tool()
-
-
-
-