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

Schema representing a MessageObject within the OpenAI API

Summary

Types

@type t() :: %ExOpenAI.Components.MessageObject{
  assistant_id: String.t(),
  attachments: [%{file_id: String.t(), tools: [map()]}],
  completed_at: integer(),
  content: [map()],
  created_at: integer(),
  id: String.t(),
  incomplete_at: integer(),
  incomplete_details: %{
    reason:
      :run_failed
      | :run_expired
      | :run_cancelled
      | :max_tokens
      | :content_filter
  },
  metadata: map(),
  object: :"thread.message",
  role: :assistant | :user,
  run_id: String.t(),
  status: :completed | :incomplete | :in_progress,
  thread_id: String.t()
}