A pirate chatbot
Project description
Yumo's Python LLM
A command-line chat agent that uses Groq's LLM API. The agent is able to hold conversations and answer questions. It can also call built-in tools: (calculate, cat, grep, ls).
Here is a gif of a working example of my code:
Usage
Slash Commands
Any tool name that starts with '/' will run directly.
chat> /ls tools
tools/calculate.py tools/cat.py tools/grep.py tools/ls.py tools/screenshot.png tools/utils.py
chat> what files are in the tools folder?
The files in the tools folder are: calculate.py, cat.py, grep.py, ls.py, and utils.py. There is also a screenshot.png file.
chat> /calculate 2*6
12
The two examples above are good examples because they show two things. (1) The '/' works properly and (2) The functions are able to demonstrate a reasonable output.
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 cmc_csci040_yyuan29-0.11.0.tar.gz.
File metadata
- Download URL: cmc_csci040_yyuan29-0.11.0.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef2b7c7f61a91a2eec9f6cc64baa6b00e3266005de5dbac84eac8ba00e4cc96b
|
|
| MD5 |
bfa9d6b5e4508942f79fb0a4dd1e53a6
|
|
| BLAKE2b-256 |
6cd78df46566cdfbde90619cea24eaa73be1691d90a04d25e73933fe842a51b2
|
File details
Details for the file cmc_csci040_yyuan29-0.11.0-py3-none-any.whl.
File metadata
- Download URL: cmc_csci040_yyuan29-0.11.0-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf3c92983f769fe51c2dfeaec6d8bb9cd7dba8ae44fe00c18dcbfa1704546c3b
|
|
| MD5 |
2c20d2578069cec0bba1360f5e5970dd
|
|
| BLAKE2b-256 |
d48e878ee429401d25811a8ec9ab7f0e1de7b7894dd394ec0d0865d3724f60b1
|