Extract `SlashCommand` trait from `assistant` (#12252)

This PR extracts the `SlashCommand` trait (along with the
`SlashCommandRegistry`) from the `assistant` crate.

This will allow us to register slash commands from extensions without
having to make `extension` depend on `assistant`.

Release Notes:

- N/A
8040e43520Marshall Bowers committed on 5/24/2024, 5:03:41 PM· committed by GitHubparentaf3d7a6
10 files changedLine totals unavailable