AutoChain

Stale
GitHub Python MIT

Description

AutoChain is a lightweight, extensible, and testable LLM Agent framework by Forethought, providing clean abstractions for agent building with automatic tool selection, conversation history management, and automated testing workflows.

Key Features

  • Lightweight and extensible generative agent pipeline with minimal abstraction layers
  • Support for custom tools and OpenAI function calling with automatic spec conversion
  • Simple memory tracking for conversation history and tool outputs with BufferMemory
  • Automated multi-turn conversation evaluation using LLM-simulated test users
  • Two-layer abstraction design enabling rapid prompt iteration and debugging with -v flag
  • LangChain-compatible API — existing LangChain users can adopt it with 80% knowledge overlap

Use Cases

💡 Build conversational agents with custom tools using a simpler alternative to LangChain
💡 Automatically evaluate agent behavior across multiple conversation scenarios
💡 Rapidly iterate on prompts and agent configurations with verbose output inspection
💡 Prototype and test generative agent workflows before scaling to production

Quick Start

pip install autochain → Set OPENAI_API_KEY → Create ChatOpenAI + BufferMemory + ConversationalAgent → Wrap in Chain → chain.run('your query')

Related Projects