Class: Anthropic::Models::Beta::BetaManagedAgentsSessionUpdatedEvent

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/beta_managed_agents_session_updated_event.rb

Defined Under Namespace

Modules: Type

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:, processed_at:, type:, agent: nil, metadata: nil, title: nil) ⇒ Object

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

Emitted when an UpdateSession request changed at least one field. Carries only the fields that changed; absent fields were not part of the update. The new configuration applies from the next turn.

Parameters:

  • id (String)

    Unique identifier for this event.

  • processed_at (Time)

    A timestamp in RFC 3339 format

  • type (Symbol, Anthropic::Models::Beta::BetaManagedAgentsSessionUpdatedEvent::Type)
  • agent (Anthropic::Models::Beta::BetaManagedAgentsSessionAgent, nil) (defaults to: nil)

    Resolved ‘agent` definition for a `session`. Snapshot of the `agent` at `session

  • metadata (Hash{Symbol=>String}) (defaults to: nil)

    The session’s full metadata bag after the update. Present when the update set no

  • title (String, nil) (defaults to: nil)

    The session’s new title. Present only when the update changed it.



# File 'lib/anthropic/models/beta/beta_managed_agents_session_updated_event.rb', line 44

Instance Attribute Details

#agentAnthropic::Models::Beta::BetaManagedAgentsSessionAgent?

Resolved ‘agent` definition for a `session`. Snapshot of the `agent` at `session` creation time.



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

optional :agent, -> { Anthropic::Beta::BetaManagedAgentsSessionAgent }, nil?: true

#idString

Unique identifier for this event.

Returns:

  • (String)


11
# File 'lib/anthropic/models/beta/beta_managed_agents_session_updated_event.rb', line 11

required :id, String

#metadataHash{Symbol=>String}?

The session’s full metadata bag after the update. Present when the update set non-empty metadata; absent when metadata was unchanged or cleared to empty.

Returns:

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


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

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

#processed_atTime

A timestamp in RFC 3339 format

Returns:

  • (Time)


17
# File 'lib/anthropic/models/beta/beta_managed_agents_session_updated_event.rb', line 17

required :processed_at, Time

#titleString?

The session’s new title. Present only when the update changed it.

Returns:

  • (String, nil)


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

optional :title, String, nil?: true

#typeSymbol, Anthropic::Models::Beta::BetaManagedAgentsSessionUpdatedEvent::Type



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

required :type, enum: -> { Anthropic::Beta::BetaManagedAgentsSessionUpdatedEvent::Type }