# `ToolCall.LocalTypes`

AST-facing facade for local type expansion.

The shared expansion algorithm lives in `ToolCall.LocalTypeAlgorithm`; this
module supplies module attributes and the legacy AST adapter.

# `instantiation`

```elixir
@type instantiation() :: ToolCall.LocalTypeAlgorithm.instantiation()
```

# `expand`

```elixir
@spec expand(term(), module() | map(), keyword()) ::
  {term(), boolean(), [instantiation()]}
```

Expands local type references in `ast`.

See `ToolCall.LocalTypeAlgorithm.expand/4`. The returned instantiation refs use
the AST adapter's reserved `:tool_call_ref` syntax.

---

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