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.

```rust use llmchain::Parameters; use llmchaintools::createtoolpromptsegment; use llmchaintools::tools::BashTool; use llmchaintools::ToolCollection; use std::boxed::Box; // A simple example generating a prompt with some tools.

fn main() { let toolcollection = ToolCollection::new(vec![Box::new(BashTool::new())]); let prompt = createtoolpromptsegment(&toolcollection, "Please perform the following task: {}"); println!( "{}", prompt.format(&Parameters::newwith_text( "Find the file GOAL.txt and tell me its content." )) ); }

```

Features 🌟

Getting Started 🚀

To start using llm-chain-tools, add it as a dependency in your Cargo.toml:

toml [dependencies] llm-chain = "0.1.0" llm-chain-openai = "0.1.0" llm-chain-tools = "0.1.0"

Then, refer to the documentation and examples to learn how to create and manage tools, integrate them into prompts, and more.