Skip to main content

A powerful CLI tool for AI interactions

Project description

Langgraph AI Terminal 🤖

By Ryan Eggleston @ryaneggz

LangGraph Bot is a Python-based chatbot application that utilizes the LangGraph and LangChain libraries to process and respond to user inputs. The bot is designed to handle conversational flows and can be configured to use different language models.

Features

  • Stream processing of user inputs and bot responses.
  • Visualization of state graphs using Mermaid.
  • Configurable session management for chat history.
  • Integration with OpenAI's GPT-4o, or Claude 3.5 Sonnet model.

Prerequisites

  • Python 3.10 or higher
  • Access to OpenAI API (for GPT-4o model) or Anthropic API (for Claude 3.5 Sonnet)

Installation

  1. Create a configuration directory:

    ai --env
    
  2. Edit the env file:

    nano $HOME/.ai-term/.env
    

Usage

Run the application:

To start the chatbot, run the following command:

ai --help

### RESULT
# usage: ai [-h] [--t TOOLS] [--ls] [--v] [--chat] [--id ID] [--env] [input ...]
# AI CLI Tool
# positional arguments:
# input       Input text for the AI
# options:
# -h, --help  show this help message and exit
# --t TOOLS   Comma-separated list of tools to use
# --ls        List available tools
# --v         Visualize the graph
# --chat      Start an interactive chat session
# --id ID     Thread ID for the conversation
# --env       Create .env file in ~/.ai-term/

Project Documentation

This project includes tools for running shell commands and Docker container operations. For detailed information, please refer to the following documentation:

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ai_term-0.0.1rc14.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ai_term-0.0.1rc14-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file ai_term-0.0.1rc14.tar.gz.

File metadata

  • Download URL: ai_term-0.0.1rc14.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for ai_term-0.0.1rc14.tar.gz
Algorithm Hash digest
SHA256 29f0afaea5e3d634268f6bdd8b544e1f161f0ec5363c64b4bd5b7d76193fe854
MD5 3e703dc48e1f1a88630c550e6419bc10
BLAKE2b-256 26d3f8373a0b098a47054f1f4b3c4a2adafaa564b3cc9645ea18c0e0213a9152

See more details on using hashes here.

File details

Details for the file ai_term-0.0.1rc14-py3-none-any.whl.

File metadata

  • Download URL: ai_term-0.0.1rc14-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for ai_term-0.0.1rc14-py3-none-any.whl
Algorithm Hash digest
SHA256 15612758c3080a1ffedece68ba366980ca84969fde5b7f7ba6ea6f5a602b729b
MD5 1df98f5f51f2fa1198eb647fe95d694b
BLAKE2b-256 83d62150ea0675d651dc27d91210cfbcad60442a6aaf156e5cb5b0cf33332707

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page