Class BetaManagedAgentsAgentToolConfigParams
-
- All Implemented Interfaces:
public final class BetaManagedAgentsAgentToolConfigParamsConfiguration override for a specific tool within a toolset.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceBetaManagedAgentsAgentToolConfigParams.VisitorAn interface that defines how to map each variant of BetaManagedAgentsAgentToolConfigParams to a value of type T.
public final classBetaManagedAgentsAgentToolConfigParams.Type
-
Method Summary
-
-
Method Detail
-
bash
final Optional<BetaManagedAgentsBashToolConfigParams> bash()
Configuration override for the bash tool.
-
edit
final Optional<BetaManagedAgentsEditToolConfigParams> edit()
Configuration override for the edit tool.
-
read
final Optional<BetaManagedAgentsReadToolConfigParams> read()
Configuration override for the read tool.
-
write
final Optional<BetaManagedAgentsWriteToolConfigParams> write()
Configuration override for the write tool.
-
glob
final Optional<BetaManagedAgentsGlobToolConfigParams> glob()
Configuration override for the glob tool.
-
grep
final Optional<BetaManagedAgentsGrepToolConfigParams> grep()
Configuration override for the grep tool.
-
webFetch
final Optional<BetaManagedAgentsWebFetchToolConfigParams> webFetch()
Configuration override for the web_fetch tool.
-
webSearch
final Optional<BetaManagedAgentsWebSearchToolConfigParams> webSearch()
Configuration override for the web_search tool.
-
type
final BetaManagedAgentsAgentToolConfigParams.Type type()
-
allowedDomains
final Optional<List<String>> allowedDomains()
-
blockedDomains
final Optional<List<String>> blockedDomains()
-
isWebFetch
final Boolean isWebFetch()
-
isWebSearch
final Boolean isWebSearch()
-
asBash
final BetaManagedAgentsBashToolConfigParams asBash()
Configuration override for the bash tool.
-
asEdit
final BetaManagedAgentsEditToolConfigParams asEdit()
Configuration override for the edit tool.
-
asRead
final BetaManagedAgentsReadToolConfigParams asRead()
Configuration override for the read tool.
-
asWrite
final BetaManagedAgentsWriteToolConfigParams asWrite()
Configuration override for the write tool.
-
asGlob
final BetaManagedAgentsGlobToolConfigParams asGlob()
Configuration override for the glob tool.
-
asGrep
final BetaManagedAgentsGrepToolConfigParams asGrep()
Configuration override for the grep tool.
-
asWebFetch
final BetaManagedAgentsWebFetchToolConfigParams asWebFetch()
Configuration override for the web_fetch tool.
-
asWebSearch
final BetaManagedAgentsWebSearchToolConfigParams asWebSearch()
Configuration override for the web_search tool.
-
accept
final <T extends Any> T accept(BetaManagedAgentsAgentToolConfigParams.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 = betaManagedAgentsAgentToolConfigParams.accept(new BetaManagedAgentsAgentToolConfigParams.Visitor<Optional<String>>() { @Override public Optional<String> visitBash(BetaManagedAgentsBashToolConfigParams bash) { return Optional.of(bash.toString()); } // ... @Override public Optional<String> unknown(JsonValue json) { // Or inspect the `json`. return Optional.empty(); } });
-
validate
final BetaManagedAgentsAgentToolConfigParams 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.
-
ofBash
final static BetaManagedAgentsAgentToolConfigParams ofBash(BetaManagedAgentsBashToolConfigParams bash)
Configuration override for the bash tool.
-
ofEdit
final static BetaManagedAgentsAgentToolConfigParams ofEdit(BetaManagedAgentsEditToolConfigParams edit)
Configuration override for the edit tool.
-
ofRead
final static BetaManagedAgentsAgentToolConfigParams ofRead(BetaManagedAgentsReadToolConfigParams read)
Configuration override for the read tool.
-
ofWrite
final static BetaManagedAgentsAgentToolConfigParams ofWrite(BetaManagedAgentsWriteToolConfigParams write)
Configuration override for the write tool.
-
ofGlob
final static BetaManagedAgentsAgentToolConfigParams ofGlob(BetaManagedAgentsGlobToolConfigParams glob)
Configuration override for the glob tool.
-
ofGrep
final static BetaManagedAgentsAgentToolConfigParams ofGrep(BetaManagedAgentsGrepToolConfigParams grep)
Configuration override for the grep tool.
-
ofWebFetch
final static BetaManagedAgentsAgentToolConfigParams ofWebFetch(BetaManagedAgentsWebFetchToolConfigParams webFetch)
Configuration override for the web_fetch tool.
-
ofWebSearch
final static BetaManagedAgentsAgentToolConfigParams ofWebSearch(BetaManagedAgentsWebSearchToolConfigParams webSearch)
Configuration override for the web_search tool.
-
-
-
-