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
-
Create a configuration directory:
ai --env -
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
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
Distributed under the MIT License. See LICENSE for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29f0afaea5e3d634268f6bdd8b544e1f161f0ec5363c64b4bd5b7d76193fe854
|
|
| MD5 |
3e703dc48e1f1a88630c550e6419bc10
|
|
| BLAKE2b-256 |
26d3f8373a0b098a47054f1f4b3c4a2adafaa564b3cc9645ea18c0e0213a9152
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15612758c3080a1ffedece68ba366980ca84969fde5b7f7ba6ea6f5a602b729b
|
|
| MD5 |
1df98f5f51f2fa1198eb647fe95d694b
|
|
| BLAKE2b-256 |
83d62150ea0675d651dc27d91210cfbcad60442a6aaf156e5cb5b0cf33332707
|