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 Distribution

cmc_csci040_yyuan29-0.11.0.tar.gz (8.7 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_yyuan29-0.11.0-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

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

Hashes for cmc_csci040_yyuan29-0.11.0.tar.gz
Algorithm Hash digest
SHA256 ef2b7c7f61a91a2eec9f6cc64baa6b00e3266005de5dbac84eac8ba00e4cc96b
MD5 bfa9d6b5e4508942f79fb0a4dd1e53a6
BLAKE2b-256 6cd78df46566cdfbde90619cea24eaa73be1691d90a04d25e73933fe842a51b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cmc_csci040_yyuan29-0.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cf3c92983f769fe51c2dfeaec6d8bb9cd7dba8ae44fe00c18dcbfa1704546c3b
MD5 2c20d2578069cec0bba1360f5e5970dd
BLAKE2b-256 d48e878ee429401d25811a8ec9ab7f0e1de7b7894dd394ec0d0865d3724f60b1

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