Current section

Files

Jump to
opencode_sdk lib opencode generated tool_file_content.ex
Raw

lib/opencode/generated/tool_file_content.ex

defmodule OpenCode.Generated.ToolFileContent do
@moduledoc """
Provides struct and type for a ToolFileContent
"""
@type t :: %__MODULE__{
mime: String.t(),
name: String.t() | nil,
source: OpenCode.Generated.ToolFileContentSource.t(),
type: String.t()
}
defstruct [:mime, :name, :source, :type]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[
mime: :string,
name: :string,
source: {OpenCode.Generated.ToolFileContentSource, :t},
type: {:const, "file"}
]
end
end