summaryrefslogtreecommitdiffstats
path: root/src/repl
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2025-01-18 07:41:22 +0800
committerGitHub <noreply@github.com>2025-01-18 07:41:22 +0800
commitd37d99c63dafaa606ece5aa3b36ad9c5e58e5cbb (patch)
treec7b268dd6654d640529e2bbd6b17d668e4f619c5 /src/repl
parentca714b2d7b2ef1327b97be9015b39e3dce5f9a2c (diff)
downloadaichat-d37d99c63dafaa606ece5aa3b36ad9c5e58e5cbb.tar.gz
feat: no longer support `.variable` repl command (#1092)
Diffstat (limited to 'src/repl')
-rw-r--r--src/repl/mod.rs15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/repl/mod.rs b/src/repl/mod.rs
index 652ecb9..1d96885 100644
--- a/src/repl/mod.rs
+++ b/src/repl/mod.rs
@@ -29,7 +29,7 @@ use std::{env, process};
const MENU_NAME: &str = "completion_menu";
lazy_static::lazy_static! {
- static ref REPL_COMMANDS: [ReplCommand; 35] = [
+ static ref REPL_COMMANDS: [ReplCommand; 34] = [
ReplCommand::new(".help", "Show this help message", AssertState::pass()),
ReplCommand::new(".info", "View system info", AssertState::pass()),
ReplCommand::new(".model", "Change the current LLM", AssertState::pass()),
@@ -105,11 +105,6 @@ lazy_static::lazy_static! {
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),
@@ -464,14 +459,6 @@ pub async fn run_repl_command(
config.read().print_markdown(&banner)?;
}
},
- ".variable" => match args {
- Some(args) => {
- config.write().set_agent_variable(args)?;
- }
- _ => {
- println!("Usage: .variable <key> <value>")
- }
- },
".save" => match split_first_arg(args) {
Some(("role", name)) => {
config.write().save_role(name)?;