Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gearsllm

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gearsllm

Lightweight library for building LLM-based control flow.

  • 0.1.28
  • PyPI
  • Socket score

Maintainers
1

Welcome to Gears

Gears is a lightweight tool for writing control flow with LLMs with full control over your prompts. It allows you to build complex chains of actions and conditions, and execute them in a single call.

Why Gears?

Gears is so minimal; it is simply a wrapper around an LLM API call that:

  • Allows you to specify your prompts as Jinja templates and inputs as Pydantic models
  • Automatically handles LLM API failures with exponential backoff
  • Allows you to specify control flow, based on LLM responses, in a simple, declarative way

But the real selling point is that we are committed to not growing the codebase beyond what is necessary to support the above features. (We are not venture-backed and do not intend to be.)

Installation

Gears is available on PyPI, and can be installed with pip:

pip install gearsllm

Dependencies

Gears has the following dependencies:

  • python>=3.9
  • pydantic
  • jinja2
  • tenacity
  • openai

ToDos

  • Add pre-commit hooks with black & isort

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc