Module: Anthropic::Models::Beta::Sessions::ResourceRetrieveResponse
- Extended by:
- Internal::Type::Union
- Defined in:
- lib/anthropic/models/beta/sessions/resource_retrieve_response.rb,
sig/anthropic/models/beta/sessions/resource_retrieve_response.rbs
Overview
The requested session resource.
Defined Under Namespace
Modules: Type
Class Method Summary collapse
-
.new(type:, **args) ⇒ Anthropic::Models::Beta::Sessions::BetaManagedAgentsGitHubRepositoryResource, ...
Creates a new instance of the variant class whose
typematches the given value, passing the remaining arguments to its constructor. - .values ⇒ Array<Symbol>
- .variants ⇒ Array(Anthropic::Models::Beta::Sessions::BetaManagedAgentsGitHubRepositoryResource, Anthropic::Models::Beta::Sessions::BetaManagedAgentsFileResource, Anthropic::Models::Beta::Sessions::BetaManagedAgentsMemoryStoreResource)
Methods included from Internal::Type::Union
==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Class Method Details
.new(type:, id:, created_at:, mount_path:, updated_at:, url:, checkout:) ⇒ Anthropic::Beta::Sessions::BetaManagedAgentsGitHubRepositoryResource .new(type:, id:, created_at:, file_id:, mount_path:, updated_at:) ⇒ Anthropic::Beta::Sessions::BetaManagedAgentsFileResource .new(type:, memory_store_id:, access:, description:, instructions:, mount_path:, name:) ⇒ Anthropic::Beta::Sessions::BetaManagedAgentsMemoryStoreResource .new(type:, id:, created_at:, mount_path:, updated_at:, url:, checkout:, file_id:, memory_store_id:, access:, description:, instructions:, name:) ⇒ Anthropic::Models::Beta::Sessions::resource_retrieve_response
Creates a new instance of the variant class whose type matches the given
value, passing the remaining arguments to its constructor.
Some parameter documentations has been truncated, see Anthropic::Models::Beta::Sessions::ResourceRetrieveResponse for more details.
72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'lib/anthropic/models/beta/sessions/resource_retrieve_response.rb', line 72 def self.new(type:, **args) case type.to_sym when :github_repository Anthropic::Beta::Sessions::BetaManagedAgentsGitHubRepositoryResource.new(**args) when :file Anthropic::Beta::Sessions::BetaManagedAgentsFileResource.new(**args) when :memory_store Anthropic::Beta::Sessions::BetaManagedAgentsMemoryStoreResource.new(**args) else raise ArgumentError, "unknown type: #{type}" end end |
.values ⇒ Array<Symbol>
|
|
# File 'lib/anthropic/models/beta/sessions/resource_retrieve_response.rb', line 29
|
.variants ⇒ Array(Anthropic::Models::Beta::Sessions::BetaManagedAgentsGitHubRepositoryResource, Anthropic::Models::Beta::Sessions::BetaManagedAgentsFileResource, Anthropic::Models::Beta::Sessions::BetaManagedAgentsMemoryStoreResource)
|
|
# File 'lib/anthropic/models/beta/sessions/resource_retrieve_response.rb', line 33
|