Current section

Files

Jump to
oapi_open_ai lib schemas usage code_interpreter_sessions result.ex
Raw

lib/schemas/usage/code_interpreter_sessions/result.ex

defmodule OpenAi.Usage.CodeInterpreterSessions.Result do
@moduledoc """
Provides struct and type for a Usage.CodeInterpreterSessions.Result
"""
@type t :: %__MODULE__{
num_sessions: integer | nil,
object: String.t(),
project_id: String.t() | nil
}
defstruct [:num_sessions, :object, :project_id]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[
num_sessions: :integer,
object: {:const, "organization.usage.code_interpreter_sessions.result"},
project_id: {:string, :generic}
]
end
end