llm-chain-tools 🛠️
llm-chain-tools
is an extension for the llm-chain
crate, providing a collection of tools that can be used to give Large Language Models (LLMs) access to various utilities, such as running Bash commands on your computer or performing web searches.
Examples 💡
To help you get started, here is an example demonstrating how to use llm-chain-tools
with llm-chain
. You can find more examples in the examples folder in the repository.
use Parameters;
use create_tool_prompt_segment;
use BashTool;
use ToolCollection;
use Box;
// A simple example generating a prompt with some tools.
Features 🌟
- Tool management: Easily create and integrated a collection of tools that LLMs can use to perform various tasks.
- Prompt integration: Seamlessly integrate tool descriptions into LLM prompts for more effective interactions.
- Pre-defined tools: A submodule providing a variety of pre-defined tools for common tasks, ready for use.
- Extensibility: Designed with extensibility in mind, making it easy to integrate additional tools as needed.
Getting Started 🚀
To start using llm-chain-tools
, add it as a dependency in your Cargo.toml:
[]
= "0.1.0"
= "0.1.0"
= "0.1.0"
Then, refer to the documentation and examples to learn how to create and manage tools, integrate them into prompts, and more.