# `LlmCore.Memory.Backend`
[🔗](https://github.com/fosferon/llm_core/blob/v0.9.7/lib/llm_core/memory/backend.ex#L1)

Contract implemented by semantic memory backends.

# `available?`

```elixir
@callback available?() :: boolean()
```

# `recall`

```elixir
@callback recall(String.t(), keyword()) :: {:ok, [map()]} | {:error, term()}
```

# `reflect`

```elixir
@callback reflect(String.t(), keyword()) :: {:ok, String.t()} | {:error, term()}
```

# `retain`

```elixir
@callback retain(String.t(), map(), keyword()) :: :ok
```

# `retain_sync`

```elixir
@callback retain_sync(String.t(), map(), keyword()) :: {:ok, map()} | {:error, term()}
```

---

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