RollbackToolRegistry
A registry for managing and retrieving rollback tools associated with specific tools. This class allows for the association of tools that have rollback counterparts and provides mechanisms for retrieval and addition of such tools.
This class is immutable from an external perspective, ensuring thread safety.
Properties
Functions
Link copied to clipboard
Adds a tool and its corresponding rollback tool to the registry. This convenience method converts both toolFunction and rollbackToolFunction into Tool objects before adding them.
Link copied to clipboard
Retrieves a rollback tool by its name.
Link copied to clipboard
Combines the rollback tools from the current RollbackToolRegistry instance and the specified rollbackToolRegistry into a new RollbackToolRegistry.