# `Spectre.ActionDispatcher`
[🔗](https://github.com/elchemista/spectre/blob/0.4.0/lib/spectre/runtime/action_dispatcher.ex#L1)

Capability boundary for invoking one provider-neutral action effect.

The dispatcher resolves only providers registered by the compiled Agent. It
does not interpret planner-specific tool IDs and it never mutates lifecycle
state or persists results.

# `dispatch_result`

```elixir
@type dispatch_result() :: {:ok, term()} | {:error, term()}
```

# `dispatch`

```elixir
@spec dispatch(Spectre.Effect.t(), Spectre.Context.t() | map(), keyword()) ::
  dispatch_result()
```

Invokes the registered provider with bounded payloads and an idempotency key
in the action context.

---

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