Class: Anthropic::Models::Beta::BetaManagedAgentsDeltaEvent

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/beta_managed_agents_delta_event.rb,
sig/anthropic/models/beta/beta_managed_agents_delta_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(delta:, event_id:, type:) ⇒ Object

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

An incremental update to an event that is still being streamed. Deltas are best-effort and may stop early; when the buffered event with id == event_id is produced it carries the complete content. A model request that ends early (an error or interrupt) produces no buffered event — 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_delta_event.rb', line 27

Instance Attribute Details

#deltaAnthropic::Models::Beta::BetaManagedAgentsDeltaContent

One fragment of the previewed event. The delta type is named for the previewed event's field it streams into: agent.message events stream content_delta fragments, each a partial element of the content array.

Parameters:

  • value (Anthropic::Beta::BetaManagedAgentsDeltaContent)

Returns:



13
# File 'lib/anthropic/models/beta/beta_managed_agents_delta_event.rb', line 13

required :delta, -> { Anthropic::Beta::BetaManagedAgentsDeltaContent }

#event_idString

The id of the event being previewed. Matches event.id on the corresponding event_start and the buffered event that reconciles the preview.

Parameters:

  • value (String)

Returns:

  • (String)


20
# File 'lib/anthropic/models/beta/beta_managed_agents_delta_event.rb', line 20

required :event_id, String

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

Parameters:

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

Returns:



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

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

Instance Method Details

#to_hash{

Returns:

  • ({)


26
# File 'sig/anthropic/models/beta/beta_managed_agents_delta_event.rbs', line 26

def to_hash: -> {