Module: OpenAI::Models::Beta::RunStreamEvent

Extended by:
Internal::Type::Union
Defined in:
lib/openai/models/beta/run_stream_event.rb

Overview

Occurs when a new [run](platform.openai.com/docs/api-reference/runs/object) is created.

Defined Under Namespace

Classes: ThreadRunCancelled, ThreadRunCancelling, ThreadRunCompleted, ThreadRunCreated, ThreadRunExpired, ThreadRunFailed, ThreadRunInProgress, ThreadRunIncomplete, ThreadRunQueued, ThreadRunRequiresAction

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

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

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, type_info

Instance Method Details

#initialize(data: , event: :"thread.run.cancelled") ⇒ Object

Some parameter documentations has been truncated, see ThreadRunCancelled for more details.

Occurs when a [run](platform.openai.com/docs/api-reference/runs/object) is cancelled.

Parameters:



# File 'lib/openai/models/beta/run_stream_event.rb', line 56