# `Jizoku.Step`
[🔗](https://github.com/dark-trench/jizoku/blob/main/lib/jizoku/step.ex#L2)

Public contract for authoring native Jizoku workflow steps.

Native steps return Jizoku values and receive a `Jizoku.Step.Context`.
The runtime adapts them into the internal Jido execution path, so authors do
not need to depend on Jido for the common workflow-step path.

# `continuation_request`

```elixir
@type continuation_request() :: %{
  input: map(),
  continuation_key: String.t(),
  definition: :current
}
```

# `result`

```elixir
@type result() ::
  {:ok, map()}
  | {:ok, map(), keyword()}
  | {:continue_as_new, map(), keyword()}
  | {:defer, term(), keyword()}
  | {:error, term()}
  | {:retry, term()}
  | {:retry, term(), keyword()}
```

# `schema`

```elixir
@type schema() :: keyword(keyword())
```

# `run`

```elixir
@callback run(input :: map(), context :: Jizoku.Step.Context.t()) :: result()
```

---

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