Current section

Files

Jump to
opencode_sdk lib opencode generated compaction_part.ex
Raw

lib/opencode/generated/compaction_part.ex

defmodule OpenCode.Generated.CompactionPart do
@moduledoc """
Provides struct and type for a CompactionPart
"""
@type t :: %__MODULE__{
auto: boolean,
id: String.t(),
message_id: String.t(),
overflow: boolean | nil,
session_id: String.t(),
tail_start_id: String.t() | nil,
type: String.t()
}
defstruct [:auto, :id, :message_id, :overflow, :session_id, :tail_start_id, :type]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[
auto: :boolean,
id: :string,
message_id: :string,
overflow: :boolean,
session_id: :string,
tail_start_id: :string,
type: {:const, "compaction"}
]
end
end