Internal helper module for agent state management.
Internal Module
This module is internal to the Agent implementation. Its API may change without notice.
Handles deep merging and validation of agent state.
Summary
Functions
Builds initial state from schema defaults.
Merges new attributes into existing state using deep merge semantics.
Validates state against a schema (NimbleOptions or Zoi). Returns validated state as a map.
Functions
Builds initial state from schema defaults.
Merges new attributes into existing state using deep merge semantics.
Validates state against a schema (NimbleOptions or Zoi). Returns validated state as a map.
By default (non-strict mode), extra fields not in the schema are preserved. In strict mode, only schema-defined fields are kept.