Class: Anthropic::Models::Beta::BetaManagedAgentsStartEvent

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

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(event:, type:) ⇒ Object

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

Opens a preview of a buffered event. Carries the previewed event's type and id only. Followed by zero or more event_delta events with the same event id, normally concluded by the buffered event carrying that id. If the producing model request ends without that event (an error or interrupt mid-stream), its terminal span.model_request_end closes the preview. Only sent on stream connections that opt in via event_deltas; never appears in event history.

Parameters:



# File 'lib/anthropic/models/beta/beta_managed_agents_start_event.rb', line 21

Instance Attribute Details

#eventAnthropic::Models::Beta::BetaManagedAgentsAgentMessagePreview, Anthropic::Models::Beta::BetaManagedAgentsAgentThinkingPreview

The previewed event's type and id. The event type determines which delta types the preview's event_delta events carry: agent.message events stream content_delta fragments; agent.thinking previews are start-only — no deltas follow, and the buffered agent.thinking with the same id concludes them.

Parameters:

  • value (Anthropic::Models::Beta::beta_managed_agents_start_event_preview)

Returns:



14
# File 'lib/anthropic/models/beta/beta_managed_agents_start_event.rb', line 14

required :event, union: -> { Anthropic::Beta::BetaManagedAgentsStartEventPreview }

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

Parameters:

  • value (Anthropic::Models::Beta::BetaManagedAgentsStartEvent::type_)

Returns:



19
# File 'lib/anthropic/models/beta/beta_managed_agents_start_event.rb', line 19

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

Instance Method Details

#to_hash{

Returns:

  • ({)


22
# File 'sig/anthropic/models/beta/beta_managed_agents_start_event.rbs', line 22

def to_hash: -> {