Current section

Files

Jump to
opencode_sdk lib opencode generated text_part_input.ex
Raw

lib/opencode/generated/text_part_input.ex

defmodule OpenCode.Generated.TextPartInput do
@moduledoc """
Provides struct and type for a TextPartInput
"""
@type t :: %__MODULE__{
id: String.t() | nil,
ignored: boolean | nil,
metadata: map | nil,
synthetic: boolean | nil,
text: String.t(),
time: OpenCode.Generated.TextPartInputTime.t() | nil,
type: String.t()
}
defstruct [:id, :ignored, :metadata, :synthetic, :text, :time, :type]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[
id: :string,
ignored: :boolean,
metadata: :map,
synthetic: :boolean,
text: :string,
time: {OpenCode.Generated.TextPartInputTime, :t},
type: {:const, "text"}
]
end
end