Current section
Files
Jump to
Current section
Files
lib/schemas/response/code_interpreter/call/interpreting_event.ex
defmodule OpenAi.Response.CodeInterpreter.Call.InterpretingEvent do
@moduledoc """
Provides struct and type for a Response.CodeInterpreter.Call.InterpretingEvent
"""
@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.interpreting"}
]
end
end