aichat: configure functions
This commit is contained in:
parent
4cfbe7d77f
commit
61c9006354
4 changed files with 42 additions and 0 deletions
common/.config/aichat/functions
1
common/.config/aichat/functions/agents.txt
Normal file
1
common/.config/aichat/functions/agents.txt
Normal file
|
@ -0,0 +1 @@
|
|||
coder
|
13
common/.config/aichat/functions/tools.txt
Normal file
13
common/.config/aichat/functions/tools.txt
Normal file
|
@ -0,0 +1,13 @@
|
|||
ansible_list_plugins.sh
|
||||
ansible_get_plugin_docs.sh
|
||||
execute_py_code.py
|
||||
fetch_url_via_curl.sh
|
||||
fs_cat.sh
|
||||
fs_ls.sh
|
||||
fs_mkdir.sh
|
||||
fs_patch.sh
|
||||
fs_rm.sh
|
||||
search_arxiv.sh
|
||||
search_wikipedia.sh
|
||||
search_wolframalpha.sh
|
||||
web_search.sh
|
14
common/.config/aichat/functions/tools/ansible_get_plugin_docs.sh
Executable file
14
common/.config/aichat/functions/tools/ansible_get_plugin_docs.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
# @describe Retrieve the documentation for an ansible module
|
||||
|
||||
# @option --module! The name of a module in the form of namespace.collection.module
|
||||
|
||||
# @env LLM_OUTPUT=/dev/stdout The output path
|
||||
|
||||
main() {
|
||||
ansible-doc "$argc_module" >> "$LLM_OUTPUT"
|
||||
}
|
||||
|
||||
eval "$(argc --argc-eval "$0" "$@")"
|
14
common/.config/aichat/functions/tools/ansible_list_plugins.sh
Executable file
14
common/.config/aichat/functions/tools/ansible_list_plugins.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
# @describe List available ansible modules, optionally filtering by collection
|
||||
|
||||
# @option --filter A collection name in form of namespace.collection
|
||||
|
||||
# @env LLM_OUTPUT=/dev/stdout The output path
|
||||
|
||||
main() {
|
||||
ansible-doc --list "$argc_filter" >> "$LLM_OUTPUT"
|
||||
}
|
||||
|
||||
eval "$(argc --argc-eval "$0" "$@")"
|
Loading…
Add table
Reference in a new issue