Module: Anthropic::Models::Beta::BetaDreamStatus

Extended by:
Internal::Type::Enum
Defined in:
lib/anthropic/models/beta/beta_dream_status.rb,
sig/anthropic/models/beta/beta_dream_status.rbs

Overview

Where a dream is in its lifecycle.

completed, failed, and canceled are final: once a dream has one of these statuses, its status doesn't change again.

See the Dreams guide for what each status means.

Constant Summary collapse

PENDING =

The dream is waiting to start and hasn't read its inputs yet.

outputs is empty and every usage count is zero.

Returns:

  • (:pending)
:pending
RUNNING =

The dream is reading its inputs and writing its result.

usage updates while the dream has this status.

Returns:

  • (:running)
:running
COMPLETED =

The dream finished and its output memory store holds the complete result.

Returns:

  • (:completed)
:completed
FAILED =

The dream stopped with an error, which error describes.

If outputs references a memory store, that memory store keeps what the dream wrote before it stopped.

Returns:

  • (:failed)
:failed
CANCELED =

A cancel request stopped the dream before it reached completed or failed.

If outputs references a memory store, that memory store keeps what the dream wrote. usage can keep changing after the cancel.

Returns:

  • (:canceled)
:canceled

Class Method Summary collapse

Methods included from Internal::Type::Enum

==, ===, coerce, dump, hash, inspect, to_sorbet_type

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Class Method Details

.values ⇒ ::Array[Anthropic::Models::Beta::beta_dream_status]

Returns:

  • (::Array[Anthropic::Models::Beta::beta_dream_status])


35
# File 'sig/anthropic/models/beta/beta_dream_status.rbs', line 35

def self?.values: -> ::Array[Anthropic::Models::Beta::beta_dream_status]