PromptRunner.Profile (PromptRunnerSDK v0.7.0)

Copy Markdown View Source

Home-scoped Prompt Runner profiles.

Summary

Types

t()

@type t() :: %{name: String.t(), path: String.t(), options: map(), body: String.t()}

Functions

config_file()

@spec config_file() :: String.t()

config_home()

@spec config_home() :: String.t()

create(name, attrs)

@spec create(String.t(), map()) :: {:ok, t()} | {:error, term()}

default_profile_name()

@spec default_profile_name() :: {:ok, String.t()} | {:error, term()}

global_defaults()

@spec global_defaults() :: map()

init(opts \\ [])

@spec init(keyword()) ::
  {:ok,
   %{
     config_file: String.t(),
     profile_file: String.t(),
     simulated_profile_file: String.t(),
     templates_dir: String.t(),
     default_template_file: String.t(),
     from_adr_template_file: String.t()
   }}

list()

@spec list() :: {:ok, [String.t()]}

load(name \\ nil)

@spec load(String.t() | nil) :: {:ok, t()} | {:error, term()}

profile_path(name)

@spec profile_path(String.t()) :: String.t()

profiles_dir()

@spec profiles_dir() :: String.t()