# `Jidoka.Inspection.Preflight`
[🔗](https://github.com/agentjido/jidoka/blob/v0.9.0/lib/jidoka/inspection/preflight.ex#L1)

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.

# `t`

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

# `new`

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

Builds preflight inspection data from keyword or map attributes.

# `new!`

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

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

# `schema`

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

Returns the Zoi schema for preflight inspection data.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
