Phase 4: Shell completion scripts and comprehensive test suite
This commit is contained in:
1 parent
aba2fc11f4
commit
5e70e22780
5 files changed
+641
-7
No files matched your search
@@ -11,6 +11,8 @@ Un agente configurabile basato su DeepAgents che supporta più provider LLM.
|
||||
- **Estensibile**: Aggiungi strumenti personalizzati, modifica i prompt e configura i sub-agenti secondo le tue esigenze
|
||||
- **Strumenti unificati**: Gestisci qualsiasi provider con la stessa interfaccia
|
||||
- **Strumenti personalizzati**: Include strumenti per gestire Proxmox e Ollama
|
||||
- **Completamento shell**: Supporta bash e zsh per autocompletamento dei comandi
|
||||
- **Test completi**: Suite di test per garantire la qualità del codice
|
||||
|
||||
## Installazione
|
||||
|
||||
@@ -20,6 +22,21 @@ Un agente configurabile basato su DeepAgents che supporta più provider LLM.
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
|
||||
### Configurazione del Completamento Shell
|
||||
|
||||
#### Bash
|
||||
```bash
|
||||
# Aggiungi al tuo ~/.bashrc o ~/.bash_profile
|
||||
source /path/to/maxclaw_agent/completions/maxclaw.bash
|
||||
```
|
||||
|
||||
#### Zsh
|
||||
```bash
|
||||
# Aggiungi al tuo ~/.zshrc
|
||||
fpath=(/path/to/maxclaw_agent/completions $fpath)
|
||||
autoload -Uz compinit && compinit
|
||||
```
|
||||
|
||||
## Configurazione
|
||||
|
||||
Puoi configurare MaxClaw Agent in diversi modi:
|
||||
@@ -202,6 +219,21 @@ Gli strumenti Ollama specifici sono ancora disponibili per retrocompatibilità:
|
||||
- `ollama_status`: Controlla se Ollama è in esecuzione
|
||||
- `ollama_running_models`: Mostra i modelli attualmente in esecuzione
|
||||
|
||||
## Test
|
||||
|
||||
Esegui la suite di test:
|
||||
```bash
|
||||
# Esegui tutti i test
|
||||
pytest tests/
|
||||
|
||||
# Esegui test specifici
|
||||
pytest tests/test_config_manager.py
|
||||
pytest tests/test_provider_tools.py
|
||||
|
||||
# Esegui con output verboso
|
||||
pytest tests/ -v
|
||||
```
|
||||
|
||||
## Personalizzazione
|
||||
|
||||
Per personalizzare l'agente, modifica `main.py`:
|
||||
@@ -210,13 +242,6 @@ Per personalizzare l'agente, modifica `main.py`:
|
||||
- Aggiungi strumenti personalizzati alla chiamata `create_deep_agent`
|
||||
- Configura i sub-agenti o altre funzionalità di DeepAgents
|
||||
|
||||
## Test
|
||||
|
||||
Esegui lo script di test:
|
||||
```bash
|
||||
python test_agent.py
|
||||
```
|
||||
|
||||
## Sicurezza
|
||||
|
||||
MaxClaw Agent implementa misure di sicurezza avanzate:
|
||||
|
||||
Reference in new issue
Block a user