defmodule OpenCode.Generated.Prompt do @moduledoc """ Provides struct and type for a Prompt """ @type t :: %__MODULE__{ agents: [OpenCode.Generated.PromptAgentAttachment.t()] | nil, files: [OpenCode.Generated.PromptFileAttachment.t()] | nil, references: [OpenCode.Generated.PromptReferenceAttachment.t()] | nil, text: String.t() } defstruct [:agents, :files, :references, :text] @doc false @spec __fields__(atom) :: keyword def __fields__(type \\ :t) def __fields__(:t) do [ agents: [{OpenCode.Generated.PromptAgentAttachment, :t}], files: [{OpenCode.Generated.PromptFileAttachment, :t}], references: [{OpenCode.Generated.PromptReferenceAttachment, :t}], text: :string ] end end