View Source ExOpenAI.Components.MessageStreamEvent (ex_openai.ex v1.7.0)

Schema representing a MessageStreamEvent within the OpenAI API

            Use any of these components: [%{"data" => {:component, "MessageObject"}, "event" => {:enum, [:"thread.message.created"]}}, %{"data" => {:component, "MessageObject"}, "event" => {:enum, [:"thread.message.in_progress"]}}, %{"data" => {:component, "MessageDeltaObject"}, "event" => {:enum, [:"thread.message.delta"]}}, %{"data" => {:component, "MessageObject"}, "event" => {:enum, [:"thread.message.completed"]}}, %{"data" => {:component, "MessageObject"}, "event" => {:enum, [:"thread.message.incomplete"]}}]

Summary

Types

@type t() ::
  %{
    data: ExOpenAI.Components.MessageObject.t(),
    event: :"thread.message.incomplete"
  }
  | %{
      data: ExOpenAI.Components.MessageObject.t(),
      event: :"thread.message.completed"
    }
  | %{
      data: ExOpenAI.Components.MessageDeltaObject.t(),
      event: :"thread.message.delta"
    }
  | %{
      data: ExOpenAI.Components.MessageObject.t(),
      event: :"thread.message.in_progress"
    }
  | %{
      data: ExOpenAI.Components.MessageObject.t(),
      event: :"thread.message.created"
    }