mirror of
https://github.com/hanzoai/python-sdk.git
synced 2026-10-23 20:23:00 +00:00
Major improvements to mode and tool management: 1. Essential System Tools - Critical tools (llm, consensus, config, mode, tool, version, stats) are now ALWAYS enabled regardless of active mode. Previously, mode system disabled all tools then only enabled mode-specific ones, causing critical tools to be unavailable. 2. Unified 'tool' Command - Consolidates tool_install, tool_enable, tool_disable, tool_list into single 'tool' command with actions: - list: List all tools by category - enable/disable: Toggle tool state - install/uninstall: Package management - upgrade/reload: Update tools - self_update: Update hanzo-mcp 3. Fixed Permission Manager - Made permission_manager optional in: - FileSystemTool base class - ComputerTool - ConfigTool - ReadTool, WriteTool, EditTool Now creates default PermissionManager if not provided. 4. Fixed Mode System - Builtin modes (hanzo, minimal, fullstack, devops, security) are now always registered alongside hanzo-persona profiles. Previously they were skipped when hanzo-persona was available. 5. Updated ESSENTIAL_TOOLS constant with modern tool names and added llm, consensus, config, mode to ensure they're in all default modes. Version bump: 0.10.19 -> 0.10.20
hanzo-tools-llm
LLM interaction tools for Hanzo AI MCP.
Tools
llm- Core LLM interaction with multiple providersunified_llm- Unified LLM interfaceconsensus- Multi-model consensus for higher accuracyllm_manage- Model management and provider configuration
Installation
pip install hanzo-tools-llm
# With all LLM providers
pip install hanzo-tools-llm[full]
Supported Providers
- OpenAI (GPT-4, GPT-4o, etc.)
- Anthropic (Claude 4, Claude 3.5)
- Together AI
- Ollama (local models)
Usage
from hanzo_tools.llm import TOOLS, LLM_AVAILABLE, register_tools
if LLM_AVAILABLE:
register_tools(mcp_server)
Part of hanzo-tools
This package is part of the modular hanzo-tools ecosystem.