Class: Anthropic::Models::Beta::Sessions::BetaManagedAgentsFileResource

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/sessions/beta_managed_agents_file_resource.rb,
sig/anthropic/models/beta/sessions/beta_managed_agents_file_resource.rbs

Overview

See Also:

  • Anthropic::Resources::Beta::Sessions::Resources#add

Instance Attribute Summary collapse

Instance Method Summary collapse

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(id:, created_at:, file_id:, mount_path:, updated_at:, type: :file) ⇒ BetaManagedAgentsFileResource

Returns a new instance of BetaManagedAgentsFileResource.

Parameters:

  • id (String)
  • created_at (Time) —

    A timestamp in RFC 3339 format

  • file_id (String)
  • mount_path (String)
  • updated_at (Time) —

    A timestamp in RFC 3339 format

  • type (Symbol, :file) (defaults to: :file)
  • id: (String)
  • created_at: (Time)
  • file_id: (String)
  • mount_path: (String)
  • updated_at: (Time)
  • type: (:file) (defaults to: :file)


# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_file_resource.rb', line 41

Instance Attribute Details

#created_at ⇒ Time

A timestamp in RFC 3339 format

Parameters:

  • value (Time)

Returns:

  • (Time)


18
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_file_resource.rb', line 18

required :created_at, Time

#file_id ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


23
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_file_resource.rb', line 23

required :file_id, String

#id ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


12
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_file_resource.rb', line 12

required :id, String

#mount_path ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


28
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_file_resource.rb', line 28

required :mount_path, String

#type ⇒ Symbol, :file

Parameters:

  • value (:file)

Returns:

  • (Symbol, :file)


33
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_file_resource.rb', line 33

required :type, const: :file

#updated_at ⇒ Time

A timestamp in RFC 3339 format

Parameters:

  • value (Time)

Returns:

  • (Time)


39
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_file_resource.rb', line 39

required :updated_at, Time

Instance Method Details

#to_hash ⇒ { id: String, created_at: Time, file_id: String, mount_path: String, type: :file, updated_at: Time }

Returns:

  • ({ id: String, created_at: Time, file_id: String, mount_path: String, type: :file, updated_at: Time })


37
38
39
40
41
42
43
44
# File 'sig/anthropic/models/beta/sessions/beta_managed_agents_file_resource.rbs', line 37

def to_hash: -> {
  id: String,
  created_at: Time,
  file_id: String,
  mount_path: String,
  type: :file,
  updated_at: Time
}