Class BetaAdvisorToolResultBlock.Builder
-
- All Implemented Interfaces:
public final class BetaAdvisorToolResultBlock.BuilderA builder for BetaAdvisorToolResultBlock.
-
-
Method Summary
-
-
Method Detail
-
content
final BetaAdvisorToolResultBlock.Builder content(BetaAdvisorToolResultBlock.Content content)
-
content
final BetaAdvisorToolResultBlock.Builder content(JsonField<BetaAdvisorToolResultBlock.Content> content)
Sets Builder.content to an arbitrary JSON value.
You should usually call Builder.content with a well-typed Content value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
content
final BetaAdvisorToolResultBlock.Builder content(BetaAdvisorToolResultError betaAdvisorToolResultError)
Alias for calling content with
Content.ofBetaAdvisorToolResultError(betaAdvisorToolResultError).
-
content
final BetaAdvisorToolResultBlock.Builder content(BetaAdvisorResultBlock betaAdvisorResultBlock)
Alias for calling content with
Content.ofBetaAdvisorResultBlock(betaAdvisorResultBlock).
-
content
final BetaAdvisorToolResultBlock.Builder content(BetaAdvisorRedactedResultBlock betaAdvisorRedactedResultBlock)
Alias for calling content with
Content.ofBetaAdvisorRedactedResultBlock(betaAdvisorRedactedResultBlock).
-
toolUseId
final BetaAdvisorToolResultBlock.Builder toolUseId(String toolUseId)
-
toolUseId
final BetaAdvisorToolResultBlock.Builder toolUseId(JsonField<String> toolUseId)
Sets Builder.toolUseId to an arbitrary JSON value.
You should usually call Builder.toolUseId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaAdvisorToolResultBlock.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("advisor_tool_result")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaAdvisorToolResultBlock.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaAdvisorToolResultBlock.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaAdvisorToolResultBlock.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaAdvisorToolResultBlock.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaAdvisorToolResultBlock.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaAdvisorToolResultBlock build()
Returns an immutable instance of BetaAdvisorToolResultBlock.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.content() .toolUseId()
-
-
-
-