feat: Tool examples refactor
- [x] I have looked for existing issues (including closed) about this
Feature Request
Tool examples refactor
Motivation
We have at the moment >> 30 copy-paste tool examples, mostly Add, Adder and Subtract.
It would remove a lot of duplicate code if we just reuse implementation from one place
Proposal
Refactor all common example tool(s) into a separate crate
Alternatives
Yea, this would be a short-term win with our examples. tbh, the current set of examples is serving as a stopgap for our lack of comprehensive integration testing. Our short-medium term plan is to provide some GA that runs only on the genereated release PR so that we can comprehensively test for regressions thru the codebase.
This should let us clean up a ton of the built-in examples (maybe even we can add folders and such) and make it more consistent. This issue would be a great short-term win for rig tho to make it much easier to parse thru the examples!