Skip to content

Commit

Permalink
refactor: adjust order of REPL commands (#1025)
Browse files Browse the repository at this point in the history
  • Loading branch information
sigoden authored Nov 30, 2024
1 parent 431d163 commit 5f3e948
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions src/repl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 5f3e948

Please sign in to comment.