docs: update README and tools configuration for improved toolset management
- Updated README to reflect the new command for configuring tools per platform. - Modified tools_config.py to correct the handling of preselected entries in the toolset checklist, ensuring proper functionality during user interaction.
This commit is contained in:
parent
a5ea272936
commit
7c1f90045e
2 changed files with 4 additions and 4 deletions
|
|
@ -430,8 +430,8 @@ Tools are organized into logical **toolsets**:
|
||||||
# Use specific toolsets
|
# Use specific toolsets
|
||||||
hermes --toolsets "web,terminal"
|
hermes --toolsets "web,terminal"
|
||||||
|
|
||||||
# List all toolsets
|
# Configure tools per platform (interactive)
|
||||||
hermes --list-tools
|
hermes tools
|
||||||
```
|
```
|
||||||
|
|
||||||
**Available toolsets:** `web`, `terminal`, `file`, `browser`, `vision`, `image_gen`, `moa`, `skills`, `tts`, `todo`, `memory`, `session_search`, `cronjob`, `code_execution`, `delegation`, `clarify`, and more.
|
**Available toolsets:** `web`, `terminal`, `file`, `browser`, `vision`, `image_gen`, `moa`, `skills`, `tts`, `todo`, `memory`, `session_search`, `cronjob`, `code_execution`, `delegation`, `clarify`, and more.
|
||||||
|
|
|
||||||
|
|
@ -153,7 +153,6 @@ def _prompt_toolset_checklist(platform_label: str, enabled: Set[str]) -> Set[str
|
||||||
from simple_term_menu import TerminalMenu
|
from simple_term_menu import TerminalMenu
|
||||||
|
|
||||||
menu_items = [f" {label}" for label in labels]
|
menu_items = [f" {label}" for label in labels]
|
||||||
preselected = [menu_items[i] for i in pre_selected_indices if i < len(menu_items)]
|
|
||||||
|
|
||||||
menu = TerminalMenu(
|
menu = TerminalMenu(
|
||||||
menu_items,
|
menu_items,
|
||||||
|
|
@ -162,12 +161,13 @@ def _prompt_toolset_checklist(platform_label: str, enabled: Set[str]) -> Set[str
|
||||||
multi_select_cursor="[✓] ",
|
multi_select_cursor="[✓] ",
|
||||||
multi_select_select_on_accept=False,
|
multi_select_select_on_accept=False,
|
||||||
multi_select_empty_ok=True,
|
multi_select_empty_ok=True,
|
||||||
preselected_entries=preselected if preselected else None,
|
preselected_entries=pre_selected_indices if pre_selected_indices else None,
|
||||||
menu_cursor="→ ",
|
menu_cursor="→ ",
|
||||||
menu_cursor_style=("fg_green", "bold"),
|
menu_cursor_style=("fg_green", "bold"),
|
||||||
menu_highlight_style=("fg_green",),
|
menu_highlight_style=("fg_green",),
|
||||||
cycle_cursor=True,
|
cycle_cursor=True,
|
||||||
clear_screen=False,
|
clear_screen=False,
|
||||||
|
clear_menu_on_exit=False,
|
||||||
)
|
)
|
||||||
|
|
||||||
menu.show()
|
menu.show()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue