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

Schema representing a RunObject within the OpenAI API

Summary

Types

@type t() :: %ExOpenAI.Components.RunObject{
  assistant_id: String.t(),
  cancelled_at: integer(),
  completed_at: integer(),
  created_at: integer(),
  expires_at: integer(),
  failed_at: integer(),
  id: String.t(),
  incomplete_details: %{reason: :max_prompt_tokens | :max_completion_tokens},
  instructions: String.t(),
  last_error: %{
    code: :invalid_prompt | :rate_limit_exceeded | :server_error,
    message: String.t()
  },
  max_completion_tokens: integer(),
  max_prompt_tokens: integer(),
  metadata: map(),
  model: String.t(),
  object: :"thread.run",
  parallel_tool_calls: ExOpenAI.Components.ParallelToolCalls.t(),
  required_action: %{
    submit_tool_outputs: %{
      tool_calls: [ExOpenAI.Components.RunToolCallObject.t()]
    },
    type: :submit_tool_outputs
  },
  response_format: ExOpenAI.Components.AssistantsApiResponseFormatOption.t(),
  started_at: integer(),
  status:
    :expired
    | :incomplete
    | :completed
    | :failed
    | :cancelled
    | :cancelling
    | :requires_action
    | :in_progress
    | :queued,
  temperature: float() | nil,
  thread_id: String.t(),
  tool_choice: ExOpenAI.Components.AssistantsApiToolChoiceOption.t(),
  tools: [map()],
  top_p: float() | nil,
  truncation_strategy: ExOpenAI.Components.TruncationObject.t(),
  usage: ExOpenAI.Components.RunCompletionUsage.t()
}