Spectre.ActionDispatcher (Spectre v0.3.0)

Copy Markdown View Source

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.

Summary

Functions

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

Types

dispatch_result()

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

Functions

dispatch(effect, ctx, opts \\ [])

@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.