feat(python): add zeroclaw-tools companion package for LangGraph tool calling
- Add Python package with LangGraph-based agent for consistent tool calling - Provides reliable tool execution for providers with inconsistent native support - Includes tools: shell, file_read, file_write, web_search, http_request, memory - Discord bot integration included - CLI tool for quick interactions - Works with any OpenAI-compatible provider (Z.AI, OpenRouter, Groq, etc.) Why: Some LLM providers (e.g., GLM-5/Zhipu) have inconsistent tool calling behavior. LangGraph's structured approach guarantees reliable tool execution across all providers.
This commit is contained in:
parent
bc38994867
commit
e5ef8a3b62
17 changed files with 1371 additions and 0 deletions
66
python/pyproject.toml
Normal file
66
python/pyproject.toml
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[project]
|
||||
name = "zeroclaw-tools"
|
||||
version = "0.1.0"
|
||||
description = "Python companion package for ZeroClaw - LangGraph-based tool calling for consistent LLM agent execution"
|
||||
readme = "README.md"
|
||||
license = "MIT"
|
||||
requires-python = ">=3.10"
|
||||
authors = [
|
||||
{ name = "ZeroClaw Community" }
|
||||
]
|
||||
keywords = [
|
||||
"ai",
|
||||
"llm",
|
||||
"agent",
|
||||
"langgraph",
|
||||
"zeroclaw",
|
||||
"tool-calling",
|
||||
]
|
||||
classifiers = [
|
||||
"Development Status :: 4 - Beta",
|
||||
"Intended Audience :: Developers",
|
||||
"License :: OSI Approved :: MIT License",
|
||||
"Programming Language :: Python :: 3",
|
||||
"Programming Language :: Python :: 3.10",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
"Programming Language :: Python :: 3.12",
|
||||
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
||||
]
|
||||
dependencies = [
|
||||
"langgraph>=0.2.0",
|
||||
"langchain-core>=0.3.0",
|
||||
"langchain-openai>=0.2.0",
|
||||
"httpx>=0.25.0",
|
||||
]
|
||||
|
||||
[project.scripts]
|
||||
zeroclaw-tools = "zeroclaw_tools.__main__:main"
|
||||
|
||||
[project.optional-dependencies]
|
||||
discord = ["discord.py>=2.3.0"]
|
||||
telegram = ["python-telegram-bot>=20.0"]
|
||||
dev = [
|
||||
"pytest>=7.0.0",
|
||||
"pytest-asyncio>=0.21.0",
|
||||
"ruff>=0.1.0",
|
||||
]
|
||||
|
||||
[project.urls]
|
||||
Homepage = "https://github.com/zeroclaw-labs/zeroclaw"
|
||||
Documentation = "https://github.com/zeroclaw-labs/zeroclaw/tree/main/python"
|
||||
Repository = "https://github.com/zeroclaw-labs/zeroclaw"
|
||||
Issues = "https://github.com/zeroclaw-labs/zeroclaw/issues"
|
||||
|
||||
[tool.hatch.build.targets.wheel]
|
||||
packages = ["zeroclaw_tools"]
|
||||
|
||||
[tool.ruff]
|
||||
line-length = 100
|
||||
target-version = "py310"
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
asyncio_mode = "auto"
|
||||
Loading…
Add table
Add a link
Reference in a new issue