Skip to main content

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

Release files for llm-tools-trigger-error 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llm-tools-trigger-error 0.1
File Size Uploaded
llm_tools_trigger_error-0.1.tar.gz 6.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for llm-tools-trigger-error 0.1
File Interpreter ABI Platform
llm_tools_trigger_error-0.1-py3-none-any.whl Python 3 none any Details

Total release size: 13.1 kB

Release files / llm_tools_trigger_error-0.1.tar.gz

Download URL llm_tools_trigger_error-0.1.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
bbc507350f1dea9b0b31e3c34b17376ed99a69dd5f555d9448204804457fd827
BLAKE2b-256 checksum
How to use checksums
e53d9623530f008407259f0538682535a9642d57b77c2d87fcc50218c40dfb02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 1, 2025.

Transparency log

Release files / llm_tools_trigger_error-0.1-py3-none-any.whl

Download URL llm_tools_trigger_error-0.1-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
29783f41b63fcf050082126af8d84f893e35ae495928a7bd08c63f922d461be8
BLAKE2b-256 checksum
How to use checksums
840db395ab4103db0098dae7f98892ec9d760df11b3db529ff9f62897f666c82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 1, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page