llm-chain logo

llm-chain

sobelio/llm-chain

`llm-chain` is a Rust crate for building chains in large language models

GraphCanon updated 1w · GitHub synced 1w

1.6k stars141 forksLast push 1y Rust MIT

Decision brief

`llm-chain` is a Rust crate for creating chains in large language models to summarize text and perform complex tasks.

Good fit when

  • - When you are working specifically with Rust and want to leverage its performance benefits.
  • - If your project requires integration with OpenAI or other LLM APIs due to the availability of the `llm-chain-openai` sub-crate.

Avoid when

  • - If your development stack is predominantly in languages that cannot easily integrate Rust libraries, such as Python-dominant environments.
  • - For teams lacking Rust proficiency since setting up and using `llm-chain` requires proficiency with Rust's package management and compilation process.
Pricing:
freemium - Free to use under the MIT license.
Requirements:
Min 1 GB RAM; Requires Rust 1.65.0 or newer and OpenAI API key for some functionality.

Observed Jul 12, 2026 · Source: enrich:decision_facts

Verify the decision

Maintenance and security

Full trust report
Maintenance
Dormant (653d since push)
As of 1w
Provenance
Not a fork · Organization account
As of 1w
Security (OSV)
No lockfile
As of 1mo

Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.

Install

cargo add llm-chain
crates.io

Similar tools

Same-category neighbours. No typed graph edges are catalogued for this tool yet.

Evidence and technical details

Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.

Overview

A powerful rust crate that supports the creation of chains to summarize text and perform complex tasks with large language models.

Capability facts

Languages
rust

Source: github.language · Aug 15, 2026

Categories

Tags

README

Getting Started 🚀

To start using llm-chain, add it as a dependency in your Cargo.toml (you need Rust 1.65.0 or newer):

[dependencies]
llm-chain = "0.12.0"
llm-chain-openai = "0.12.0"

The examples for llm-chain-openai require you to set the OPENAI_API_KEY environment variable which you can do like this:

export OPENAI_API_KEY="sk-YOUR_OPEN_AI_KEY_HERE"

Then, refer to the documentation and examples to learn how to create prompt templates, chains, and more.


License 📄

llm-chain is licensed under the MIT License.

For agents

This page has a .md twin and JSON over the API.

Was this helpful?

Anonymous feedback helps us improve pages and translations.