diff options
| author | sigoden <sigoden@gmail.com> | 2024-06-23 23:09:47 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-23 23:09:47 +0800 |
| commit | b3bec3cfb0ab75a5dc30dbd55b91e687a3588410 (patch) | |
| tree | b9f551fed02d4696a469af499b5755174041000e /src/repl/mod.rs | |
| parent | f9e7efd41c475519d8f7a01c539d9ee4a3d56208 (diff) | |
| download | aichat-b3bec3cfb0ab75a5dc30dbd55b91e687a3588410.tar.gz | |
refactor: cli options and shell completions (#640)
Diffstat (limited to 'src/repl/mod.rs')
| -rw-r--r-- | src/repl/mod.rs | 14 |
1 files changed, 7 insertions, 7 deletions
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", |
