Anonymous View
Skip to main content

Trigger an LLM tools error, useful for testing

Project description

llm-tools-trigger-error

PyPI Changelog Tests License

Trigger an LLM tools error, useful for testing

Installation

Install this plugin in the same environment as LLM.

llm install llm-tools-trigger-error

Usage

To use this with the LLM command-line tool:

llm -T trigger_error "Trigger an error about an escaped badger" --tools-debug

With the LLM Python API:

import llm
from llm_tools_trigger_error import trigger_error

model = llm.get_model("gpt-4.1-mini")

result = model.chain(
    "Trigger an error about an escaped badger",
    tools=[trigger_error]
).text()

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd llm-tools-trigger-error
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

llm install -e '.[test]'

To run the tests:

python -m pytest

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

llm_tools_trigger_error-0.1.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

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

llm_tools_trigger_error-0.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file llm_tools_trigger_error-0.1.tar.gz.

File metadata

  • Download URL: llm_tools_trigger_error-0.1.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for llm_tools_trigger_error-0.1.tar.gz
Algorithm Hash digest
SHA256 bbc507350f1dea9b0b31e3c34b17376ed99a69dd5f555d9448204804457fd827
MD5 88dffb6e46a324cce01debce3c7e3052
BLAKE2b-256 e53d9623530f008407259f0538682535a9642d57b77c2d87fcc50218c40dfb02

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_tools_trigger_error-0.1.tar.gz:

Publisher: publish.yml on simonw/llm-tools-trigger-error

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file llm_tools_trigger_error-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for llm_tools_trigger_error-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 29783f41b63fcf050082126af8d84f893e35ae495928a7bd08c63f922d461be8
MD5 0e3ec5718f6a45f6bc7e7fcbc76e988a
BLAKE2b-256 840db395ab4103db0098dae7f98892ec9d760df11b3db529ff9f62897f666c82

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_tools_trigger_error-0.1-py3-none-any.whl:

Publisher: publish.yml on simonw/llm-tools-trigger-error

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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