You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would be nice if you could use some macros to help define tools:
#[toolbox] // this makes the MyToolChest struct into a toolbox giving it the `get_impl_json` associated function
impl MyToolChest {
#[add_to_toolbox("tightens a bolt")] // this adds the following function to the toolbox with the description "tightens a bolt"
/// `bolt_location` - Location of bolt in need of tightening
pub fn bolt_tightener(bolt_location: String) -> Result<String, std::io::Error> {
// TODO add bolt tightening logic
Ok(format!("I might have tightend the bolt located here: {}", bolt_location))
}
}
Describe the solution you'd like
Would be nice if you could use some macros to help define tools:
This idea comes from: https://github.com/rseymour/func_me
The text was updated successfully, but these errors were encountered: