Common interface for state slices. Implement reset() to participate in cleanup: destroy() on
the agent calls it, and so does the resetState tool when the user asks to start over.
All built-in state classes implement this. Custom slices can optionally
implement it to get automatic cleanup.
Common interface for state slices. Implement
reset()to participate in cleanup:destroy()on the agent calls it, and so does theresetStatetool when the user asks to start over.All built-in state classes implement this. Custom slices can optionally implement it to get automatic cleanup.