Current section

Files

Jump to
opencode_sdk lib opencode generated prompt.ex
Raw

lib/opencode/generated/prompt.ex

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,
text: String.t()
}
defstruct [:agents, :files, :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}],
text: :string
]
end
end