PtcRunner.Kernel.CommandWarning (PtcRunner v0.15.0)

Copy Markdown View Source

Closed machine-readable warning published by command envelope V4.

Warnings are non-terminal operator facts. They never contain credentials, provider payloads, or dependency errors. The installed provider alias and an adapter-attested public model selector are the only variable fields.

Summary

Types

t()

@type t() :: %PtcRunner.Kernel.CommandWarning{
  code: :model_uncataloged,
  message: binary(),
  model: binary() | nil,
  provider: binary()
}

Functions

message()

@spec message() :: binary()

model_uncataloged(provider, model)

@spec model_uncataloged(binary(), binary() | nil) :: {:ok, t()} | :error

sort(warnings)

@spec sort([t()]) :: [t()]

to_map(warning)

@spec to_map(t()) :: map()

valid?(arg1)

@spec valid?(term()) :: boolean()

valid_map?(warning)

@spec valid_map?(term()) :: boolean()