diff --git a/src/repl/mod.rs b/src/repl/mod.rs index f3eab56e..1dd068c7 100644 --- a/src/repl/mod.rs +++ b/src/repl/mod.rs @@ -100,6 +100,27 @@ lazy_static::lazy_static! { "End the session", AssertState::True(StateFlags::SESSION_EMPTY | StateFlags::SESSION) ), + ReplCommand::new(".agent", "Use a agent", AssertState::bare()), + ReplCommand::new( + ".starter", + "Use the conversation starter", + AssertState::True(StateFlags::AGENT) + ), + ReplCommand::new( + ".variable", + "Set agent variable", + AssertState::TrueFalse(StateFlags::AGENT, StateFlags::SESSION) + ), + ReplCommand::new( + ".info agent", + "View agent info", + AssertState::True(StateFlags::AGENT), + ), + ReplCommand::new( + ".exit agent", + "Leave the agent", + AssertState::True(StateFlags::AGENT) + ), ReplCommand::new( ".rag", "Init or use the RAG", @@ -130,27 +151,6 @@ lazy_static::lazy_static! { "Leave the RAG", AssertState::TrueFalse(StateFlags::RAG, StateFlags::AGENT), ), - ReplCommand::new(".agent", "Use a agent", AssertState::bare()), - ReplCommand::new( - ".starter", - "Use the conversation starter", - AssertState::True(StateFlags::AGENT) - ), - ReplCommand::new( - ".variable", - "Set agent variable", - AssertState::TrueFalse(StateFlags::AGENT, StateFlags::SESSION) - ), - ReplCommand::new( - ".info agent", - "View agent info", - AssertState::True(StateFlags::AGENT), - ), - ReplCommand::new( - ".exit agent", - "Leave the agent", - AssertState::True(StateFlags::AGENT) - ), ReplCommand::new( ".file", "Include files with the message",