Class: Anthropic::Models::Beta::SessionCreateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/anthropic/models/beta/session_create_params.rb

Overview

Defined Under Namespace

Modules: Agent, Resource

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(agent:, environment_id:, metadata: nil, resources: nil, title: nil, vault_ids: nil, betas: nil, request_options: {}) ⇒ void

Some parameter documentations has been truncated, see Anthropic::Models::Beta::SessionCreateParams for more details.

Parameters:



# File 'lib/anthropic/models/beta/session_create_params.rb', line 56

Instance Attribute Details

#agentString, Anthropic::Models::Beta::BetaManagedAgentsAgentParams

Agent identifier. Accepts the agent ID string, which pins the latest version for the session, or an agent object with both id and version specified.



16
# File 'lib/anthropic/models/beta/session_create_params.rb', line 16

required :agent, union: -> { Anthropic::Beta::SessionCreateParams::Agent }

#betasArray<String, Symbol, Anthropic::Models::AnthropicBeta>?

Optional header to specify the beta version(s) you want to use.

Returns:



54
# File 'lib/anthropic/models/beta/session_create_params.rb', line 54

optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }

#environment_idString

ID of the environment defining the container configuration for this session.

Returns:

  • (String)


22
# File 'lib/anthropic/models/beta/session_create_params.rb', line 22

required :environment_id, String

#metadataHash{Symbol=>String}?

Arbitrary key-value metadata attached to the session. Maximum 16 pairs, keys up to 64 chars, values up to 512 chars.

Returns:

  • (Hash{Symbol=>String}, nil)


29
# File 'lib/anthropic/models/beta/session_create_params.rb', line 29

optional :metadata, Anthropic::Internal::Type::HashOf[String]

#resourcesArray<Anthropic::Models::Beta::BetaManagedAgentsGitHubRepositoryResourceParams, Anthropic::Models::Beta::BetaManagedAgentsFileResourceParams>?

Resources (e.g. repositories, files) to mount into the session's container.



35
36
# File 'lib/anthropic/models/beta/session_create_params.rb', line 35

optional :resources,
-> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::Beta::SessionCreateParams::Resource] }

#titleString?

Human-readable session title.

Returns:

  • (String, nil)


42
# File 'lib/anthropic/models/beta/session_create_params.rb', line 42

optional :title, String, nil?: true

#vault_idsArray<String>?

Vault IDs for stored credentials the agent can use during the session.

Returns:

  • (Array<String>, nil)


48
# File 'lib/anthropic/models/beta/session_create_params.rb', line 48

optional :vault_ids, Anthropic::Internal::Type::ArrayOf[String]

Class Method Details

.variantsArray(String, Anthropic::Models::Beta::BetaManagedAgentsAgentParams)



# File 'lib/anthropic/models/beta/session_create_params.rb', line 86