Current section

Files

Jump to
oapi_open_ai lib schemas response computer key_press.ex
Raw

lib/schemas/response/computer/key_press.ex

defmodule OpenAi.Response.Computer.KeyPress do
@moduledoc """
Provides struct and type for a Response.Computer.KeyPress
"""
@type t :: %__MODULE__{keys: [String.t()], type: String.t()}
defstruct [:keys, :type]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[keys: [string: :generic], type: {:const, "keypress"}]
end
end