Packages

Prompt Runner SDK - packet-first prompt execution for Elixir and CLI workflows with verifier-owned completion, retry, repair, and git-aware repository orchestration.

Current section

Files

Jump to
prompt_runner_sdk lib prompt_runner prompt.ex
Raw

lib/prompt_runner/prompt.ex

defmodule PromptRunner.Prompt do
@moduledoc """
Normalized prompt representation used across all PromptRunner sources.
"""
@type t :: %__MODULE__{
num: String.t(),
phase: integer(),
sp: integer(),
name: String.t(),
file: String.t() | nil,
body: String.t() | nil,
origin: map() | nil,
target_repos: [String.t()] | nil,
commit_message: String.t() | nil,
template: String.t() | nil,
references: [term()],
required_reading: [String.t()],
context_files: [String.t()],
depends_on: [String.t()],
validation_commands: [String.t()],
verify: map(),
metadata: map()
}
defstruct [
:num,
:phase,
:sp,
:name,
:file,
:body,
:origin,
:target_repos,
:commit_message,
:template,
references: [],
required_reading: [],
context_files: [],
depends_on: [],
validation_commands: [],
verify: %{},
metadata: %{}
]
end