Class: Anthropic::Models::Beta::BetaManagedAgentsSystemMessageEvent

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/beta_managed_agents_system_message_event.rb,
sig/anthropic/models/beta/beta_managed_agents_system_message_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 ⇒ BetaManagedAgentsSystemMessageEvent

Returns a new instance of BetaManagedAgentsSystemMessageEvent.

Parameters:

  • id: (String)
  • content: (::Array[Anthropic::Beta::BetaManagedAgentsSystemContentBlock])
  • processed_at: (Time, nil)
  • type: (:"system.message")


23
24
25
26
27
28
# File 'sig/anthropic/models/beta/beta_managed_agents_system_message_event.rbs', line 23

def initialize: (
  id: String,
  content: ::Array[Anthropic::Beta::BetaManagedAgentsSystemContentBlock],
  ?processed_at: Time?,
  ?type: :"system.message"
) -> void

Instance Attribute Details

#content ⇒ Array<Anthropic::Models::Beta::BetaManagedAgentsSystemContentBlock>

System content blocks. Text-only.

Parameters:

  • value (::Array[Anthropic::Beta::BetaManagedAgentsSystemContentBlock])

Returns:



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

required :content,
-> { Anthropic::Internal::Type::ArrayOf[Anthropic::Beta::BetaManagedAgentsSystemContentBlock] }

#id ⇒ String

Unique identifier for this event.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :id, String

#processed_at ⇒ Time?

Timestamp when this system message was processed.

Parameters:

  • value (Time, nil)

Returns:

  • (Time, nil)


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

optional :processed_at, Time, nil?: true

#type ⇒ Symbol, :"system.message"

Parameters:

  • value (:"system.message")

Returns:

  • (Symbol, :"system.message")


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

required :type, const: :"system.message"

Instance Method Details

#to_hash ⇒ { id: String, content: ::Array[Anthropic::Beta::BetaManagedAgentsSystemContentBlock], type: :"system.message", processed_at: Time? }

Returns:

  • ({ id: String, content: ::Array[Anthropic::Beta::BetaManagedAgentsSystemContentBlock], type: :"system.message", processed_at: Time? })


30
31
32
33
34
35
# File 'sig/anthropic/models/beta/beta_managed_agents_system_message_event.rbs', line 30

def to_hash: -> {
  id: String,
  content: ::Array[Anthropic::Beta::BetaManagedAgentsSystemContentBlock],
  type: :"system.message",
  processed_at: Time?
}