Tool calling runtime for text-only LLMs with LangChain support
Project description
llm-tool-runtime
A lightweight, extensible runtime for calling LLM tools and chaining them together. Installable from PyPI for easy integration into your Python projects.
Installation
Install the core package:
pip install llm-tool-runtime
Optional Model Support
Some LLM providers require extra dependencies. You can install them with extras:
- Google Gemma:
pip install "llm-tool-runtime[google]"
- OpenAI:
pip install "llm-tool-runtime[openai]"
- Anthropic:
pip install "llm-tool-runtime[anthropic]"
- Ollama:
pip install "llm-tool-runtime[ollama]"
- Together:
pip install "llm-tool-runtime[together]"
- All supported providers:
pip install "llm-tool-runtime[all]"
Usage
Import and use the runtime in your Python code:
from llm_tool_runtime import ToolRuntime
# ... use runtime to register and call tools ...
See example.py and example_chain.py for usage examples.
Features
- Register and call tools with LLMs
- Chain tools together for complex workflows
- Extensible registry for custom tools
- Error handling and type safety
Documentation
Contributing
Contributions are welcome! Please see the main README for guidelines.
License
This project is licensed under the terms of the MIT License. See the LICENSE file for details.
Support
For issues, suggestions, or questions, please open an issue on the GitHub repository.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llm_tool_runtime-0.1.2.tar.gz.
File metadata
- Download URL: llm_tool_runtime-0.1.2.tar.gz
- Upload date:
- Size: 19.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ef225398ae8853cd389f85a3d061f7a2c230c3509a702d71b12c47d468e32ed
|
|
| MD5 |
60e566b3afa697a7d748e4a2b7326e31
|
|
| BLAKE2b-256 |
1830a0e613f68d86fdcd424026dd78a26af92dc3514afd0db8d451455c7a94dc
|
File details
Details for the file llm_tool_runtime-0.1.2-py3-none-any.whl.
File metadata
- Download URL: llm_tool_runtime-0.1.2-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68f8105866fa12e72a2e0deea9c01e80b5f74f33dc0aa515517408fc89570a0a
|
|
| MD5 |
07087465cd3bb589d8a9caec2f8c41bd
|
|
| BLAKE2b-256 |
1aaed2a1ebf2f0fc12216b12a6078df6a6d813b589325c1553487622b6206320
|