View Source ExOpenAI.Components.RunStreamEvent (ex_openai.ex v1.6.0)
Schema representing a RunStreamEvent within the OpenAI API
Use any of these components: [%{"data" => {:component, "RunObject"}, "event" => {:enum, [:"thread.run.created"]}}, %{"data" => {:component, "RunObject"}, "event" => {:enum, [:"thread.run.queued"]}}, %{"data" => {:component, "RunObject"}, "event" => {:enum, [:"thread.run.in_progress"]}}, %{"data" => {:component, "RunObject"}, "event" => {:enum, [:"thread.run.requires_action"]}}, %{"data" => {:component, "RunObject"}, "event" => {:enum, [:"thread.run.completed"]}}, %{"data" => {:component, "RunObject"}, "event" => {:enum, [:"thread.run.incomplete"]}}, %{"data" => {:component, "RunObject"}, "event" => {:enum, [:"thread.run.failed"]}}, %{"data" => {:component, "RunObject"}, "event" => {:enum, [:"thread.run.cancelling"]}}, %{"data" => {:component, "RunObject"}, "event" => {:enum, [:"thread.run.cancelled"]}}, %{"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"}