From 6b6413b02df588faf6557053751b7e9c591539f7 Mon Sep 17 00:00:00 2001 From: sigoden Date: Sun, 1 Dec 2024 11:35:12 +0800 Subject: feat: add cli option `--agent-variable ` (#1027) --- src/cli.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/cli.rs') 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, + /// Set agent variables + #[clap(long, value_names = ["NAME", "VALUE"], num_args = 2)] + pub agent_variable: Vec, /// Start a RAG - #[clap(short = 'R', long)] + #[clap(long)] pub rag: Option, /// Serve the LLM API and WebAPP #[clap(long, value_name = "ADDRESS")] -- cgit v1.2.3