Skip to main content

A CLI chat app using the Groq API

Project description

LLM Agent

PyPI version codecov

This is a command-line chatbot that maintains simple conversational context. This project uses GROQ to create a text-based AI assistant.

chat demo

Install / Usage Examples

This example shows how the package can be installed and used to list the files in a project folder.

$ pip install cmc-csci040-JiyeonKim
$ cd test_projects/jiyeonkim26.github.io
$ chat
chat> what files are in this project?
The project contains the following files: README.md, about.html, index.html, projects.html, and styles.css.

This example shows how the chatbot can scan project files for certain text or keywords using the grep tool.

$ cd test_projects/markdown_compiler
$ chat
chat> does this project use regex?
The codebase does not import or use the `re` module; all markdown parsing is done with plain string operations rather than regular expressions.

This example shows the chatbot describing a project, its function, and its outputs.

$ cd test_projects/webscraping-ebay
$ chat
chat> what does this project do?
The project provides a Python script (`ebay-dl.py`) that scrapes eBay listings for a given search term and outputs the results as JSON (and optionally CSV), including item name, condition, price, number sold, free‑returns flag, and shipping cost. It includes sample data files for Apple Watch, KitchenAid mixers, and teddy bears.
chat> is this legal?
Web scraping is generally legal in the United States as long as you respect the site’s terms of service, do not bypass technical barriers, and use the data only for permissible purposes; however, eBay’s terms may restrict automated data collection, so you should review their policies and possibly obtain permission before running the script at scale.

This example demonstrates that the chatbot can create and remove files when asked with changes automatically committed to the git repo.

$ ls doctest_examples 
__pycache__             example_utf16.txt       example.txt             file.txt                rm_test.txt             test.pychat
$ chat
chat> what files are in the doctest_examples folder?
The folder contains `__pycache__/`, `example.txt`, `example_utf16.txt`, `file.txt`, `rm_test.txt`, and `test.py`.
chat> add a file titled hello_world.txt with 'hello world' as the file's contents into the folder.
Added `hello_world.txt` containing “hello world” to the `doctest_examples` folder.
chat> ^c
$ git log --oneline
5fcc5f0 (HEAD -> agent) [docchat] Add hello_world.txt with greeting
$ chat
chat> what files are now in the doctest_examples folder?
The folder now contains `__pycache__/`, `example.txt`, `example_utf16.txt`, `file.txt`, `hello_world.txt`, `rm_test.txt`, and `test.py`.
chat> thanks, now remove the hello_world.txt file from the folder.
The hello_world.txt file has been removed. The folder now contains __pycache__, example.txt, example_utf16.txt, file.txt, rm_test.txt, and test.py.
chat> ^c
$ ls doctest_examples
__pycache__             example_utf16.txt       example.txt             file.txt                rm_test.txt             test.py
$ git log --oneline
372eec8 (HEAD -> agent) [docchat] rm doctest_examples/hello_world.txt

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

cmc_csci040_jiyeonkim-0.1.5.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

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

cmc_csci040_jiyeonkim-0.1.5-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file cmc_csci040_jiyeonkim-0.1.5.tar.gz.

File metadata

  • Download URL: cmc_csci040_jiyeonkim-0.1.5.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for cmc_csci040_jiyeonkim-0.1.5.tar.gz
Algorithm Hash digest
SHA256 4eb826fa5fc3a6869d7a87da6b7797a29769049a1c8017a90af8abb0b47a42bb
MD5 a47e1741dbcbafe621ef57c7a8e134b3
BLAKE2b-256 efc50ee1d582cababd206875bb0c6fa75a64e14cdab90215377f0286bde143dc

See more details on using hashes here.

File details

Details for the file cmc_csci040_jiyeonkim-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for cmc_csci040_jiyeonkim-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 cebf6999a913c959abd9c5faece134a090350172e8627386c4dcf8d164e32794
MD5 cbcaae9ced27d4979a7d180ba85c8e55
BLAKE2b-256 b23aa2de0b07472ce009f704cde7b590bdcc1684924c65268ad6847b5b1aa940

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