View Source ExOpenAI.Components.RunStreamEvent (ex_openai.ex v1.8.0-beta)

Schema representing a RunStreamEvent within the OpenAI API

            Use any of these components: [object: %{"data" => {:component, "RunObject"}, "event" => {:enum, [:"thread.run.created"]}}, object: %{"data" => {:component, "RunObject"}, "event" => {:enum, [:"thread.run.queued"]}}, object: %{"data" => {:component, "RunObject"}, "event" => {:enum, [:"thread.run.in_progress"]}}, object: %{"data" => {:component, "RunObject"}, "event" => {:enum, [:"thread.run.requires_action"]}}, object: %{"data" => {:component, "RunObject"}, "event" => {:enum, [:"thread.run.completed"]}}, object: %{"data" => {:component, "RunObject"}, "event" => {:enum, [:"thread.run.incomplete"]}}, object: %{"data" => {:component, "RunObject"}, "event" => {:enum, [:"thread.run.failed"]}}, object: %{"data" => {:component, "RunObject"}, "event" => {:enum, [:"thread.run.cancelling"]}}, object: %{"data" => {:component, "RunObject"}, "event" => {:enum, [:"thread.run.cancelled"]}}, object: %{"data" => {:component, "RunObject"}, "event" => {:enum, [:"thread.run.expired"]}}]

Summary

Types

@type t() ::
  %{data: ExOpenAI.Components.RunObject.t(), event: :"thread.run.expired"}
  | %{data: ExOpenAI.Components.RunObject.t(), event: :"thread.run.cancelled"}
  | %{data: ExOpenAI.Components.RunObject.t(), event: :"thread.run.cancelling"}
  | %{data: ExOpenAI.Components.RunObject.t(), event: :"thread.run.failed"}
  | %{data: ExOpenAI.Components.RunObject.t(), event: :"thread.run.incomplete"}
  | %{data: ExOpenAI.Components.RunObject.t(), event: :"thread.run.completed"}
  | %{
      data: ExOpenAI.Components.RunObject.t(),
      event: :"thread.run.requires_action"
    }
  | %{data: ExOpenAI.Components.RunObject.t(), event: :"thread.run.in_progress"}
  | %{data: ExOpenAI.Components.RunObject.t(), event: :"thread.run.queued"}
  | %{data: ExOpenAI.Components.RunObject.t(), event: :"thread.run.created"}