Class: Anthropic::Models::Beta::Sessions::BetaManagedAgentsAgentThreadContextCompactedEvent

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

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.thread_context_compacted") ⇒ BetaManagedAgentsAgentThreadContextCompactedEvent

Indicates that context compaction (summarization) occurred during the session.

Parameters:

  • id (String) —

    Unique identifier for this event.

  • processed_at (Time) —

    Timestamp when compaction was processed.

  • type (Symbol, :"agent.thread_context_compacted") (defaults to: :"agent.thread_context_compacted")
  • id: (String)
  • processed_at: (Time)
  • type: (:"agent.thread_context_compacted") (defaults to: :"agent.thread_context_compacted")


# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_context_compacted_event.rb', line 25

Instance Attribute Details

#id ⇒ String

Unique identifier for this event.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :id, String

#processed_at ⇒ Time

Timestamp when compaction was processed.

Parameters:

  • value (Time)

Returns:

  • (Time)


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

required :processed_at, Time

#type ⇒ Symbol, :"agent.thread_context_compacted"

Parameters:

  • value (:"agent.thread_context_compacted")

Returns:

  • (Symbol, :"agent.thread_context_compacted")


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

required :type, const: :"agent.thread_context_compacted"

Instance Method Details

#to_hash ⇒ { id: String, processed_at: Time, type: :"agent.thread_context_compacted" }

Returns:

  • ({ id: String, processed_at: Time, type: :"agent.thread_context_compacted" })


25
26
27
28
29
# File 'sig/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_context_compacted_event.rbs', line 25

def to_hash: -> {
  id: String,
  processed_at: Time,
  type: :"agent.thread_context_compacted"
}