Class BetaManagedAgentsWebFetchUrlSourceUserInput
-
- All Implemented Interfaces:
public final class BetaManagedAgentsWebFetchUrlSourceUserInputWhether URLs in the text of user messages may be fetched.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceBetaManagedAgentsWebFetchUrlSourceUserInput.VisitorAn interface that defines how to map each variant of BetaManagedAgentsWebFetchUrlSourceUserInput to a value of type T.
public final classBetaManagedAgentsWebFetchUrlSourceUserInput.Type
-
Method Summary
Modifier and Type Method Description final Optional<BetaManagedAgentsWebFetchUrlSourceAll>all()Every URL from this source may be fetched. final Optional<BetaManagedAgentsWebFetchUrlSourceNone>none()This source contributes no URLs that may be fetched. final Optional<JsonValue>_json()final BetaManagedAgentsWebFetchUrlSourceUserInput.Typetype()final BooleanisAll()final BooleanisNone()final BetaManagedAgentsWebFetchUrlSourceAllasAll()Every URL from this source may be fetched. final BetaManagedAgentsWebFetchUrlSourceNoneasNone()This source contributes no URLs that may be fetched. final <T extends Any> Taccept(BetaManagedAgentsWebFetchUrlSourceUserInput.Visitor<T> visitor)Maps this instance's current variant to a value of type T using the given visitor. final BetaManagedAgentsWebFetchUrlSourceUserInputvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsWebFetchUrlSourceUserInputofAll(BetaManagedAgentsWebFetchUrlSourceAll all)Every URL from this source may be fetched. final static BetaManagedAgentsWebFetchUrlSourceUserInputofNone(BetaManagedAgentsWebFetchUrlSourceNone none)This source contributes no URLs that may be fetched. -
-
Method Detail
-
all
final Optional<BetaManagedAgentsWebFetchUrlSourceAll> all()
Every URL from this source may be fetched. This is the default.
-
none
final Optional<BetaManagedAgentsWebFetchUrlSourceNone> none()
This source contributes no URLs that may be fetched.
-
type
final BetaManagedAgentsWebFetchUrlSourceUserInput.Type type()
-
asAll
final BetaManagedAgentsWebFetchUrlSourceAll asAll()
Every URL from this source may be fetched. This is the default.
-
asNone
final BetaManagedAgentsWebFetchUrlSourceNone asNone()
This source contributes no URLs that may be fetched.
-
accept
final <T extends Any> T accept(BetaManagedAgentsWebFetchUrlSourceUserInput.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 = betaManagedAgentsWebFetchUrlSourceUserInput.accept(new BetaManagedAgentsWebFetchUrlSourceUserInput.Visitor<Optional<String>>() { @Override public Optional<String> visitAll(BetaManagedAgentsWebFetchUrlSourceAll all) { return Optional.of(all.toString()); } // ... @Override public Optional<String> unknown(JsonValue json) { // Or inspect the `json`. return Optional.empty(); } });
-
validate
final BetaManagedAgentsWebFetchUrlSourceUserInput 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.
-
ofAll
final static BetaManagedAgentsWebFetchUrlSourceUserInput ofAll(BetaManagedAgentsWebFetchUrlSourceAll all)
Every URL from this source may be fetched. This is the default.
-
ofNone
final static BetaManagedAgentsWebFetchUrlSourceUserInput ofNone(BetaManagedAgentsWebFetchUrlSourceNone none)
This source contributes no URLs that may be fetched.
-
-
-
-