Class BetaManagedAgentsSessionResourceConfig
-
- All Implemented Interfaces:
public final class BetaManagedAgentsSessionResourceConfigA configured session resource. Echoes the input minus write-only credentials.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceBetaManagedAgentsSessionResourceConfig.VisitorAn interface that defines how to map each variant of BetaManagedAgentsSessionResourceConfig to a value of type T.
-
Method Summary
Modifier and Type Method Description final Optional<BetaManagedAgentsGitHubRepositoryResourceConfig>githubRepository()A GitHub repository mounted into each session's container. final Optional<BetaManagedAgentsFileResourceConfig>file()A file mounted into each session's container. final Optional<BetaManagedAgentsMemoryStoreResourceConfig>memoryStore()A memory store attached to each session created from this deployment. final BooleanisGitHubRepository()final BooleanisFile()final BooleanisMemoryStore()final BetaManagedAgentsGitHubRepositoryResourceConfigasGitHubRepository()A GitHub repository mounted into each session's container. final BetaManagedAgentsFileResourceConfigasFile()A file mounted into each session's container. final BetaManagedAgentsMemoryStoreResourceConfigasMemoryStore()A memory store attached to each session created from this deployment. final Optional<JsonValue>_json()final <T extends Any> Taccept(BetaManagedAgentsSessionResourceConfig.Visitor<T> visitor)Maps this instance's current variant to a value of type T using the given visitor. final BetaManagedAgentsSessionResourceConfigvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsSessionResourceConfigofGitHubRepository(BetaManagedAgentsGitHubRepositoryResourceConfig githubRepository)A GitHub repository mounted into each session's container. final static BetaManagedAgentsSessionResourceConfigofFile(BetaManagedAgentsFileResourceConfig file)A file mounted into each session's container. final static BetaManagedAgentsSessionResourceConfigofMemoryStore(BetaManagedAgentsMemoryStoreResourceConfig memoryStore)A memory store attached to each session created from this deployment. -
-
Method Detail
-
githubRepository
final Optional<BetaManagedAgentsGitHubRepositoryResourceConfig> githubRepository()
A GitHub repository mounted into each session's container. The authorization token is write-only and never returned.
-
file
final Optional<BetaManagedAgentsFileResourceConfig> file()
A file mounted into each session's container.
-
memoryStore
final Optional<BetaManagedAgentsMemoryStoreResourceConfig> memoryStore()
A memory store attached to each session created from this deployment.
-
isGitHubRepository
final Boolean isGitHubRepository()
-
isMemoryStore
final Boolean isMemoryStore()
-
asGitHubRepository
final BetaManagedAgentsGitHubRepositoryResourceConfig asGitHubRepository()
A GitHub repository mounted into each session's container. The authorization token is write-only and never returned.
-
asFile
final BetaManagedAgentsFileResourceConfig asFile()
A file mounted into each session's container.
-
asMemoryStore
final BetaManagedAgentsMemoryStoreResourceConfig asMemoryStore()
A memory store attached to each session created from this deployment.
-
accept
final <T extends Any> T accept(BetaManagedAgentsSessionResourceConfig.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 = betaManagedAgentsSessionResourceConfig.accept(new BetaManagedAgentsSessionResourceConfig.Visitor<Optional<String>>() { @Override public Optional<String> visitGitHubRepository(BetaManagedAgentsGitHubRepositoryResourceConfig githubRepository) { return Optional.of(githubRepository.toString()); } // ... @Override public Optional<String> unknown(JsonValue json) { // Or inspect the `json`. return Optional.empty(); } });
-
validate
final BetaManagedAgentsSessionResourceConfig 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.
-
ofGitHubRepository
final static BetaManagedAgentsSessionResourceConfig ofGitHubRepository(BetaManagedAgentsGitHubRepositoryResourceConfig githubRepository)
A GitHub repository mounted into each session's container. The authorization token is write-only and never returned.
-
ofFile
final static BetaManagedAgentsSessionResourceConfig ofFile(BetaManagedAgentsFileResourceConfig file)
A file mounted into each session's container.
-
ofMemoryStore
final static BetaManagedAgentsSessionResourceConfig ofMemoryStore(BetaManagedAgentsMemoryStoreResourceConfig memoryStore)
A memory store attached to each session created from this deployment.
-
-
-
-