Class: Anthropic::Models::Beta::BetaManagedAgentsAgentMessagePreview

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

Returns a new instance of BetaManagedAgentsAgentMessagePreview.

Parameters:

  • id: (String)
  • type: (:"agent.message")


14
# File 'sig/anthropic/models/beta/beta_managed_agents_agent_message_preview.rbs', line 14

def initialize: (id: String, ?type: :"agent.message") -> void

Instance Attribute Details

#id ⇒ String

The id the buffered agent.message will carry if it is emitted. Matches the event_id on this preview's event_delta events.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :id, String

#type ⇒ Symbol, :"agent.message"

Parameters:

  • value (:"agent.message")

Returns:

  • (Symbol, :"agent.message")


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

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

Instance Method Details

#to_hash ⇒ { id: String, type: :"agent.message" }

Returns:

  • ({ id: String, type: :"agent.message" })


16
# File 'sig/anthropic/models/beta/beta_managed_agents_agent_message_preview.rbs', line 16

def to_hash: -> { id: String, type: :"agent.message" }