summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-06-22 06:54:03 +0800
committerGitHub <noreply@github.com>2024-06-22 06:54:03 +0800
commitd645046d2d729a55345e18f97fefcab545086f53 (patch)
treeceef0afa1d693a827441bf2157ef7ecc9359d3ff /scripts
parent52cd3efd6c6588a957fd11d56580cb54ba868724 (diff)
downloadaichat-d645046d2d729a55345e18f97fefcab545086f53.tar.gz
refactor: rename bot to agent (#628)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/completions/aichat.bash6
-rw-r--r--scripts/completions/aichat.fish4
-rw-r--r--scripts/completions/aichat.nu8
-rw-r--r--scripts/completions/aichat.ps110
-rw-r--r--scripts/completions/aichat.zsh8
5 files changed, 18 insertions, 18 deletions
diff --git a/scripts/completions/aichat.bash b/scripts/completions/aichat.bash
index adfe57d..856c6ba 100644
--- a/scripts/completions/aichat.bash
+++ b/scripts/completions/aichat.bash
@@ -19,7 +19,7 @@ _aichat() {
case "${cmd}" in
aichat)
- opts="-m -r -s -b -e -c -f -H -S -w -h -V --model --prompt --role --session --save-session --bot --rag --serve --execute --code --file --no-highlight --no-stream --wrap --light-theme --dry-run --info --list-models --list-roles --list-sessions --list-bots --list-rags --help --version"
+ opts="-m -r -s -b -e -c -f -H -S -w -h -V --model --prompt --role --session --save-session --agent --rag --serve --execute --code --file --no-highlight --no-stream --wrap --light-theme --dry-run --info --list-models --list-roles --list-sessions --list-agents --list-rags --help --version"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
@@ -61,8 +61,8 @@ _aichat() {
COMPREPLY=($(compgen -W "$("$1" --list-sessions)" -- "${cur}"))
return 0
;;
- -b|--bot)
- COMPREPLY=($(compgen -W "$("$1" --list-bots)" -- "${cur}"))
+ -b|--agent)
+ COMPREPLY=($(compgen -W "$("$1" --list-agents)" -- "${cur}"))
return 0
;;
--rag)
diff --git a/scripts/completions/aichat.fish b/scripts/completions/aichat.fish
index 8761b1d..d57f29d 100644
--- a/scripts/completions/aichat.fish
+++ b/scripts/completions/aichat.fish
@@ -3,7 +3,7 @@ complete -c aichat -l prompt -d 'Use the system prompt'
complete -c aichat -s r -l role -x -a "(aichat --list-roles)" -d 'Select a role' -r
complete -c aichat -s s -l session -x -a"(aichat --list-sessions)" -d 'Start or join a session' -r
complete -c aichat -l save-session -d 'Forces the session to be saved'
-complete -c aichat -s b -l bot -x -a"(aichat --list-bots)" -d 'Start a bot' -r
+complete -c aichat -s b -l agent -x -a"(aichat --list-agents)" -d 'Start a agent' -r
complete -c aichat -l rag -x -a"(aichat --list-rags)" -d 'Start a RAG' -r
complete -c aichat -s f -l file -d 'Include files with the message' -r -F
complete -c aichat -s w -l wrap -d 'Control text wrapping (no, auto, <max-width>)'
@@ -18,7 +18,7 @@ complete -c aichat -l info -d 'Display information'
complete -c aichat -l list-models -d 'List all available chat models'
complete -c aichat -l list-roles -d 'List all roles'
complete -c aichat -l list-sessions -d 'List all sessions'
-complete -c aichat -l list-bots -d 'List all bots'
+complete -c aichat -l list-agents -d 'List all agents'
complete -c aichat -l list-rags -d 'List all RAGs'
complete -c aichat -s h -l help -d 'Print help'
complete -c aichat -s V -l version -d 'Print version'
diff --git a/scripts/completions/aichat.nu b/scripts/completions/aichat.nu
index c09626b..60f45f9 100644
--- a/scripts/completions/aichat.nu
+++ b/scripts/completions/aichat.nu
@@ -22,8 +22,8 @@ module completions {
| parse "{value}"
}
- def "nu-complete aichat bot" [] {
- ^aichat --list-bots |
+ def "nu-complete aichat agent" [] {
+ ^aichat --list-agents |
| lines
| parse "{value}"
}
@@ -41,7 +41,7 @@ module completions {
--role(-r): string@"nu-complete aichat role" # Select a role
--session(-s): string@"nu-complete aichat role" # Start or join a session
--save-session # Forces the session to be saved
- --bot(-b): string@"nu-complete aichat bot" # Start a bot
+ --agent(-b): string@"nu-complete aichat agent" # Start a agent
--rag: string@"nu-complete aichat rag" # Start a RAG
--serve # Serve the LLM API and WebAPP
--execute(-e) # Execute commands in natural language
@@ -56,7 +56,7 @@ module completions {
--list-models # List all available chat models
--list-roles # List all roles
--list-sessions # List all sessions
- --list-bots # List all bots
+ --list-agents # List all agents
--list-rags # List all RAGs
...text: string # Input text
--help(-h) # Print help
diff --git a/scripts/completions/aichat.ps1 b/scripts/completions/aichat.ps1
index cf6cdd4..ac582d7 100644
--- a/scripts/completions/aichat.ps1
+++ b/scripts/completions/aichat.ps1
@@ -28,8 +28,8 @@ Register-ArgumentCompleter -Native -CommandName 'aichat' -ScriptBlock {
[CompletionResult]::new('-s', '-s', [CompletionResultType]::ParameterName, 'Start or join a session')
[CompletionResult]::new('--session', '--session', [CompletionResultType]::ParameterName, 'Start or join a session')
[CompletionResult]::new('--save-session', '--save-session', [CompletionResultType]::ParameterName, 'Forces the session to be saved')
- [CompletionResult]::new('-b', '-b', [CompletionResultType]::ParameterName, 'Start a bot')
- [CompletionResult]::new('--bot', '--bot', [CompletionResultType]::ParameterName, 'Start a bot')
+ [CompletionResult]::new('-b', '-b', [CompletionResultType]::ParameterName, 'Start a agent')
+ [CompletionResult]::new('--agent', '--agent', [CompletionResultType]::ParameterName, 'Start a agent')
[CompletionResult]::new('--rag', '--rag', [CompletionResultType]::ParameterName, 'Start a RAG')
[CompletionResult]::new('-f', '-f', [CompletionResultType]::ParameterName, 'Include files with the message')
[CompletionResult]::new('--file', '--file', [CompletionResultType]::ParameterName, 'Include files with the message')
@@ -50,7 +50,7 @@ Register-ArgumentCompleter -Native -CommandName 'aichat' -ScriptBlock {
[CompletionResult]::new('--list-models', '--list-models', [CompletionResultType]::ParameterName, 'List all available chat models')
[CompletionResult]::new('--list-roles', '--list-roles', [CompletionResultType]::ParameterName, 'List all roles')
[CompletionResult]::new('--list-sessions', '--list-sessions', [CompletionResultType]::ParameterName, 'List all sessions')
- [CompletionResult]::new('--list-bots', '--list-bots', [CompletionResultType]::ParameterName, 'List all bots')
+ [CompletionResult]::new('--list-agents', '--list-agents', [CompletionResultType]::ParameterName, 'List all agents')
[CompletionResult]::new('--list-rags', '--list-rags', [CompletionResultType]::ParameterName, 'List all RAGs')
[CompletionResult]::new('-h', '-h', [CompletionResultType]::ParameterName, 'Print help')
[CompletionResult]::new('--help', '--help', [CompletionResultType]::ParameterName, 'Print help')
@@ -76,8 +76,8 @@ Register-ArgumentCompleter -Native -CommandName 'aichat' -ScriptBlock {
$completions = Get-AichatValues "--list-roles"
} elseif ($flag -eq "-s" -or $flag -eq "--session") {
$completions = Get-AichatValues "--list-sessions"
- } elseif ($flag -eq "-b" -or $flag -eq "--bot") {
- $completions = Get-AichatValues "--list-bots"
+ } elseif ($flag -eq "-b" -or $flag -eq "--agent") {
+ $completions = Get-AichatValues "--list-agents"
} elseif ($flag -eq "--rag") {
$completions = Get-AichatValues "--list-rags"
} elseif ($flag -eq "-f" -or $flag -eq "--file") {
diff --git a/scripts/completions/aichat.zsh b/scripts/completions/aichat.zsh
index b57b575..6d8dbc1 100644
--- a/scripts/completions/aichat.zsh
+++ b/scripts/completions/aichat.zsh
@@ -23,8 +23,8 @@ _aichat() {
'-s+[Start or join a session]:SESSION:->sessions' \
'--session=[Start or join a session]:SESSION:->sessions' \
'--save-session[Forces the session to be saved]' \
-'-b+[Start a bot]:BOT:->bots' \
-'--bot=[Start a bot]:BOT:->bots' \
+'-b+[Start a agent]:BOT:->agents' \
+'--agent=[Start a agent]:BOT:->agents' \
'--rag=[Start a RAG]:RAG:->rags' \
'*-f+[Include files with the message]:FILE:_files' \
'*--file=[Include files with the message]:FILE:_files' \
@@ -45,7 +45,7 @@ _aichat() {
'--list-models[List all available chat models]' \
'--list-roles[List all roles]' \
'--list-sessions[List all sessions]' \
-'--list-bots[List all bots]' \
+'--list-agents[List all agents]' \
'--list-rags[List all RAGs]' \
'-h[Print help]' \
'--help[Print help]' \
@@ -58,7 +58,7 @@ _aichat() {
_arguments "${_arguments_options[@]}" $common \
&& ret=0
case $state in
- models|roles|sessions|bots|rags)
+ models|roles|sessions|agents|rags)
local -a values expl
values=( ${(f)"$(_call_program values aichat --list-$state)"} )
_wanted values expl $state compadd -a values && ret=0