Current section
Files
Jump to
Current section
Files
lib/schemas/response/computer/tool_call/output_resource.ex
defmodule OpenAi.Response.Computer.ToolCall.OutputResource do
@moduledoc """
Provides struct and type for a Response.Computer.ToolCall.OutputResource
"""
@type t :: %__MODULE__{
acknowledged_safety_checks: [OpenAi.Response.Computer.ToolCall.SafetyCheck.t()] | nil,
call_id: String.t() | nil,
id: String.t() | nil,
output: OpenAi.Response.Computer.ScreenshotImage.t() | nil,
status: String.t() | nil,
type: String.t() | nil
}
defstruct [:acknowledged_safety_checks, :call_id, :id, :output, :status, :type]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[
acknowledged_safety_checks: [{OpenAi.Response.Computer.ToolCall.SafetyCheck, :t}],
call_id: {:string, :generic},
id: {:string, :generic},
output: {OpenAi.Response.Computer.ScreenshotImage, :t},
status: {:enum, ["in_progress", "completed", "incomplete"]},
type: {:const, "computer_call_output"}
]
end
end