1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
use beet::prelude::*; /// Start a chat application #[derive(Debug, Clone, Default)] pub struct AgentCmd { plugin: CliAgentPlugin, } impl AgentCmd { pub async fn run(self) -> Result { App::new() .add_plugins((MinimalPlugins, self.plugin)) .run_async() .await .into_result() } }