summaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-12-01 11:35:12 +0800
committerGitHub <noreply@github.com>2024-12-01 11:35:12 +0800
commit6b6413b02df588faf6557053751b7e9c591539f7 (patch)
tree4f76e1a0eae6a4f762b24bae559167f8883bdf77 /src/cli.rs
parent7e8e2a6ce6d96ffa31c202ead6f31f18dc73c618 (diff)
downloadaichat-6b6413b02df588faf6557053751b7e9c591539f7.tar.gz
feat: add cli option `--agent-variable <name> <value>` (#1027)
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cli.rs b/src/cli.rs
index 21734b8..c3af5cc 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -24,8 +24,11 @@ pub struct Cli {
/// Start a agent
#[clap(short = 'a', long)]
pub agent: Option<String>,
+ /// Set agent variables
+ #[clap(long, value_names = ["NAME", "VALUE"], num_args = 2)]
+ pub agent_variable: Vec<String>,
/// Start a RAG
- #[clap(short = 'R', long)]
+ #[clap(long)]
pub rag: Option<String>,
/// Serve the LLM API and WebAPP
#[clap(long, value_name = "ADDRESS")]