diff options
| author | sigoden <sigoden@gmail.com> | 2024-12-01 11:35:12 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-01 11:35:12 +0800 |
| commit | 6b6413b02df588faf6557053751b7e9c591539f7 (patch) | |
| tree | 4f76e1a0eae6a4f762b24bae559167f8883bdf77 /src/cli.rs | |
| parent | 7e8e2a6ce6d96ffa31c202ead6f31f18dc73c618 (diff) | |
| download | aichat-6b6413b02df588faf6557053751b7e9c591539f7.tar.gz | |
feat: add cli option `--agent-variable <name> <value>` (#1027)
Diffstat (limited to 'src/cli.rs')
| -rw-r--r-- | src/cli.rs | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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")] |
