Skip to main content

Command-line tools for LLM Workers - llm-workers-cli and llm-workers-chat

Project description

llm-workers-tools

Command-line tools for LLM Workers.

Overview

llm-workers-tools provides command-line entry points for working with LLM scripts:

  • llm-workers-cli: Batch processing tool for running LLM scripts with command-line or stdin input
  • llm-workers-chat: Interactive chat interface for conversational LLM interactions

Installation

pip install llm-workers-tools

This will install both llm-workers (core) and llm-workers-console (UI) as dependencies.

Usage

Batch CLI Tool

Process prompts in batch mode:

# Single prompt
llm-workers-cli my-script.yaml "What is the capital of France?"

# Multiple prompts
llm-workers-cli my-script.yaml "prompt 1" "prompt 2" "prompt 3"

# Read from stdin
echo "prompt from stdin" | llm-workers-cli my-script.yaml -

# Enable verbose output
llm-workers-cli --verbose my-script.yaml "prompt"

# Enable debug mode
llm-workers-cli --debug my-script.yaml "prompt"

Interactive Chat

Start an interactive chat session:

# With specific script
llm-workers-chat my-script.yaml

# With default generic assistant
llm-workers-chat

# Resume last session
llm-workers-chat --resume

# With verbose logging
llm-workers-chat --verbose my-script.yaml

Chat Commands

In chat mode, use these commands:

  • /help - Show available commands
  • /model <name> - Switch to different model
  • /rewind [N] - Rewind to earlier message
  • /display [setting] [value] - Show/modify display settings
  • /cost - Show token usage and costs
  • /export <name> - Export chat as markdown
  • /save <name> - Save session to YAML
  • /clear - Reset chat session
  • /exit - Exit (auto-saves to .last.chat.yaml)

Documentation

Full documentation: https://mrbagheera.github.io/llm-workers/

License

See main repository for license information.

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

llm_workers_tools-1.0.0.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

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

llm_workers_tools-1.0.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file llm_workers_tools-1.0.0.tar.gz.

File metadata

  • Download URL: llm_workers_tools-1.0.0.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.4 Darwin/23.6.0

File hashes

Hashes for llm_workers_tools-1.0.0.tar.gz
Algorithm Hash digest
SHA256 13e7ee2af7f14aefd7c8fb07b0969c135b3a4f1667198db7b7d3d98bb5835e18
MD5 258e1665435a7e3bfd2822358dd16758
BLAKE2b-256 f61ad61cb9acb1be76d63097ebf2b87f77f0a09622cb3ada6805026286527f5e

See more details on using hashes here.

File details

Details for the file llm_workers_tools-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: llm_workers_tools-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.4 Darwin/23.6.0

File hashes

Hashes for llm_workers_tools-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 59ac4a4f382ab9cd709e0ddbb46c04e028b7f359e08be43d16b24b8c197477b7
MD5 caacb7fa8dcf1aef36dc326a7fa36b63
BLAKE2b-256 62dec6305df161fa1ae5e8b5b96aded77162adc9cbd6f5b9abb3d5786474ceee

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