Current section

Files

Jump to
oapi_open_ai lib schemas response code_interpreter call completed_event.ex
Raw

lib/schemas/response/code_interpreter/call/completed_event.ex

defmodule OpenAi.Response.CodeInterpreter.Call.CompletedEvent do
@moduledoc """
Provides struct and type for a Response.CodeInterpreter.Call.CompletedEvent
"""
@type t :: %__MODULE__{
code_interpreter_call: OpenAi.Response.CodeInterpreter.ToolCall.t(),
output_index: integer,
type: String.t()
}
defstruct [:code_interpreter_call, :output_index, :type]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[
code_interpreter_call: {OpenAi.Response.CodeInterpreter.ToolCall, :t},
output_index: :integer,
type: {:const, "response.code_interpreter_call.completed"}
]
end
end