Skip to main content

A pirate chatbot

Project description

Yumo's Python LLM

doctest integration-tests flake8 PyPI

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: Demo

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


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

cmc_csci040_yyuan29-0.10.0-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file cmc_csci040_yyuan29-0.10.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cmc_csci040_yyuan29-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b2c955b9aec3981b4bee23a5675b09beb51f5d42424fde34fa9c83b11332aa24
MD5 b6c3c833a42d1ae40bf33b87009c9bbe
BLAKE2b-256 2e3a1141cfeb3270f2c9354c00652b5ac9553773e0e21777de04457b716328e8

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