Class BetaManagedAgentsWebFetchUrlSourceUserInputParams
-
- All Implemented Interfaces:
public final class BetaManagedAgentsWebFetchUrlSourceUserInputParamsWhether URLs in the text of user messages may be fetched. Accepts the string "all" or "none", or the object {"type": "all"} or {"type": "none"}. Responses use the object form.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceBetaManagedAgentsWebFetchUrlSourceUserInputParams.VisitorAn interface that defines how to map each variant of BetaManagedAgentsWebFetchUrlSourceUserInputParams to a value of type T.
-
Method Summary
Modifier and Type Method Description final Optional<BetaManagedAgentsWebFetchUrlSourceShorthand>shorthand()String form of a url_sources value that has no field other than its type: "all" means {"type": "all"} and "none" means {"type": "none"}. final Optional<BetaManagedAgentsWebFetchUrlSourceUserInput>betaManagedAgentsWebFetchUrlSourceUserInput()Whether URLs in the text of user messages may be fetched. final Optional<JsonValue>_json()final BooleanisShorthand()final BooleanisBetaManagedAgentsWebFetchUrlSourceUserInput()final BetaManagedAgentsWebFetchUrlSourceShorthandasShorthand()String form of a url_sources value that has no field other than its type: "all" means {"type": "all"} and "none" means {"type": "none"}. final BetaManagedAgentsWebFetchUrlSourceUserInputasBetaManagedAgentsWebFetchUrlSourceUserInput()Whether URLs in the text of user messages may be fetched. final <T extends Any> Taccept(BetaManagedAgentsWebFetchUrlSourceUserInputParams.Visitor<T> visitor)Maps this instance's current variant to a value of type T using the given visitor. final BetaManagedAgentsWebFetchUrlSourceUserInputParamsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsWebFetchUrlSourceUserInputParamsofShorthand(BetaManagedAgentsWebFetchUrlSourceShorthand shorthand)String form of a url_sources value that has no field other than its type: "all" means {"type": "all"} and "none" means {"type": "none"}. final static BetaManagedAgentsWebFetchUrlSourceUserInputParamsofBetaManagedAgentsWebFetchUrlSourceUserInput(BetaManagedAgentsWebFetchUrlSourceUserInput betaManagedAgentsWebFetchUrlSourceUserInput)Whether URLs in the text of user messages may be fetched. -
-
Method Detail
-
shorthand
final Optional<BetaManagedAgentsWebFetchUrlSourceShorthand> shorthand()
String form of a url_sources value that has no field other than its type: "all" means {"type": "all"} and "none" means {"type": "none"}.
-
betaManagedAgentsWebFetchUrlSourceUserInput
final Optional<BetaManagedAgentsWebFetchUrlSourceUserInput> betaManagedAgentsWebFetchUrlSourceUserInput()
Whether URLs in the text of user messages may be fetched.
-
isShorthand
final Boolean isShorthand()
-
isBetaManagedAgentsWebFetchUrlSourceUserInput
final Boolean isBetaManagedAgentsWebFetchUrlSourceUserInput()
-
asShorthand
final BetaManagedAgentsWebFetchUrlSourceShorthand asShorthand()
String form of a url_sources value that has no field other than its type: "all" means {"type": "all"} and "none" means {"type": "none"}.
-
asBetaManagedAgentsWebFetchUrlSourceUserInput
final BetaManagedAgentsWebFetchUrlSourceUserInput asBetaManagedAgentsWebFetchUrlSourceUserInput()
Whether URLs in the text of user messages may be fetched.
-
accept
final <T extends Any> T accept(BetaManagedAgentsWebFetchUrlSourceUserInputParams.Visitor<T> visitor)
Maps this instance's current variant to a value of type T using the given visitor.
Note that this method is not forwards compatible with new variants from the API, unless visitor overrides Visitor.unknown. To handle variants not known to this version of the SDK gracefully, consider overriding Visitor.unknown:
import com.anthropic.core.JsonValue; import java.util.Optional; Optional<String> result = betaManagedAgentsWebFetchUrlSourceUserInputParams.accept(new BetaManagedAgentsWebFetchUrlSourceUserInputParams.Visitor<Optional<String>>() { @Override public Optional<String> visitShorthand(BetaManagedAgentsWebFetchUrlSourceShorthand shorthand) { return Optional.of(shorthand.toString()); } // ... @Override public Optional<String> unknown(JsonValue json) { // Or inspect the `json`. return Optional.empty(); } });
-
validate
final BetaManagedAgentsWebFetchUrlSourceUserInputParams validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
ofShorthand
final static BetaManagedAgentsWebFetchUrlSourceUserInputParams ofShorthand(BetaManagedAgentsWebFetchUrlSourceShorthand shorthand)
String form of a url_sources value that has no field other than its type: "all" means {"type": "all"} and "none" means {"type": "none"}.
-
ofBetaManagedAgentsWebFetchUrlSourceUserInput
final static BetaManagedAgentsWebFetchUrlSourceUserInputParams ofBetaManagedAgentsWebFetchUrlSourceUserInput(BetaManagedAgentsWebFetchUrlSourceUserInput betaManagedAgentsWebFetchUrlSourceUserInput)
Whether URLs in the text of user messages may be fetched.
-
-
-
-