# `Jidoka.Turn.Plan`
[🔗](https://github.com/agentjido/jidoka/blob/v0.9.0/lib/jidoka/turn/plan.ex#L1)

Executable data compiled from `Jidoka.Agent.Spec`.

# `input`

```elixir
@type input() :: module() | Jidoka.Agent.Spec.t() | t() | keyword() | map()
```

# `t`

```elixir
@type t() :: %Jidoka.Turn.Plan{
  max_model_turns: integer(),
  metadata: map(),
  phases: [
    (((:assemble_prompt | :plan_model_effect) | :apply_model_result)
     | :plan_operation_effects)
    | :apply_operation_results
  ],
  spec: term(),
  timeout_ms: integer(),
  workflow_profile:
    ((:chat | :tool_loop) | :structured_result) | :controlled_tool_loop
}
```

# `new`

```elixir
@spec new(Jidoka.Agent.Spec.t()) :: {:ok, t()} | {:error, term()}
```

Compiles an agent specification into executable turn data.

# `new!`

```elixir
@spec new!(Jidoka.Agent.Spec.t()) :: t()
```

Compiles an agent specification and raises if it is invalid.

# `schema`

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

Returns the Zoi schema for an executable turn plan.

---

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