# `Jidoka.Instructions`
[🔗](https://github.com/agentjido/jidoka/blob/v0.9.0/lib/jidoka/instructions.ex#L1)

Resolves instructions for one agent request.

Agent specifications keep stable, data-only instructions. A caller can pass
`instructions:` at run time to replace them for one request. The value can be
a non-empty string, a two-argument function, or a module that implements this
behaviour.

A provider receives the base instructions and a public `Jidoka.Context`. The
context contains request data and metadata. It does not contain trusted
runtime data or internal request objects.

# `provider`

```elixir
@type provider() ::
  String.t() | (String.t(), Jidoka.Context.t() -&gt; result()) | module()
```

# `result`

```elixir
@type result() :: String.t() | {:ok, String.t()} | {:error, term()}
```

# `resolve`

```elixir
@callback resolve(base_instructions :: String.t(), context :: Jidoka.Context.t()) ::
  result()
```

---

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