From b3bec3cfb0ab75a5dc30dbd55b91e687a3588410 Mon Sep 17 00:00:00 2001 From: sigoden Date: Sun, 23 Jun 2024 23:09:47 +0800 Subject: refactor: cli options and shell completions (#640) --- src/repl/mod.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/repl') diff --git a/src/repl/mod.rs b/src/repl/mod.rs index 8083820..eb4e1d9 100644 --- a/src/repl/mod.rs +++ b/src/repl/mod.rs @@ -40,12 +40,12 @@ lazy_static! { ReplCommand::new( ".prompt", "Create a temporary role using a prompt", - AssertState::False(StateFlags::SESSION | StateFlags::BOT) + AssertState::False(StateFlags::SESSION | StateFlags::AGENT) ), ReplCommand::new( ".role", "Switch to a specific role", - AssertState::False(StateFlags::SESSION | StateFlags::BOT) + AssertState::False(StateFlags::SESSION | StateFlags::AGENT) ), ReplCommand::new( ".info role", @@ -90,7 +90,7 @@ lazy_static! { ReplCommand::new( ".rag", "Init or use a rag", - AssertState::False(StateFlags::BOT) + AssertState::False(StateFlags::AGENT) ), ReplCommand::new( ".info rag", @@ -100,23 +100,23 @@ lazy_static! { ReplCommand::new( ".exit rag", "Leave the rag", - AssertState::TrueFalse(StateFlags::RAG, StateFlags::BOT), + AssertState::TrueFalse(StateFlags::RAG, StateFlags::AGENT), ), ReplCommand::new(".agent", "Use a agent", AssertState::bare()), ReplCommand::new( ".info agent", "View agent info", - AssertState::True(StateFlags::BOT), + AssertState::True(StateFlags::AGENT), ), ReplCommand::new( ".starter", "Use the conversation starter", - AssertState::True(StateFlags::BOT) + AssertState::True(StateFlags::AGENT) ), ReplCommand::new( ".exit agent", "Leave the agent", - AssertState::True(StateFlags::BOT) + AssertState::True(StateFlags::AGENT) ), ReplCommand::new( ".file", -- cgit v1.2.3