Scoria.PromptPolicy (scoria v0.1.0)

Copy Markdown View Source

Canonical public prompt-policy noun for runtime defaults and governance.

Reach for this after the core Scoria runtime path is working. Prompt policy is where a host app projects provider/model defaults, grounding requirements, tool allowance, and approval expectations into a run's runtime metadata.

In other words: start with identity and run lifecycle first, then use prompt policy to make governance and default composition explicit.

Summary

Types

t()

@type t() :: %Scoria.PromptPolicy{
  approval_required: boolean(),
  grounding_required: boolean(),
  metadata: map(),
  policy_key: String.t() | nil,
  prompt_ref: String.t() | nil,
  prompt_version: String.t() | nil,
  tools_allowed: boolean()
}

Functions

new(attrs \\ %{})

normalize(policy)

to_map(policy)