Jidoka.Inspection.Preflight (Jidoka v0.9.0)

Copy Markdown View Source

Data returned by Jidoka.preflight/3.

Preflight is intentionally effect-free. It shows the normalized agent, plan, request, and prompt that would be used by a turn without calling the LLM or any operations.

Summary

Functions

Builds preflight inspection data from keyword or map attributes.

Builds preflight inspection data and raises if the attributes are invalid.

Returns the Zoi schema for preflight inspection data.

Types

t()

@type t() :: %Jidoka.Inspection.Preflight{
  agent: map(),
  diagnostics: [any()],
  events: [map()],
  plan: map(),
  prompt: map(),
  request: map(),
  timeline: [map()]
}

Functions

new(attrs)

@spec new(keyword() | map()) :: {:ok, t()} | {:error, term()}

Builds preflight inspection data from keyword or map attributes.

new!(attrs)

@spec new!(keyword() | map()) :: t()

Builds preflight inspection data and raises if the attributes are invalid.

schema()

@spec schema() :: Zoi.schema()

Returns the Zoi schema for preflight inspection data.