ToolCall. LocalTypeAlgorithm
(ToolCall v0.4.0)
Copy Markdown
Shared local-type expansion algorithm used by AST and, later, TypeExpr.
The algorithm owns cyclic detection, inlining and instantiation budgets,
hoisting, and $defs naming. Adapters supply the node structure, variable
substitution, reference syntax, and naming details.
Summary
Types
One hoisted $defs entry, with the arguments of its instantiation.
Types
@type instantiation() :: %{ key: ToolCall.LocalTypeAlgorithm.Adapter.key(), args: [term()], body: term() }
One hoisted $defs entry, with the arguments of its instantiation.
Functions
@spec cyclic_keys(map(), module()) :: MapSet.t(ToolCall.LocalTypeAlgorithm.Adapter.key())
@spec max_defs() :: pos_integer()