Checks if a given string is a valid choice from a list of choices.
Project description
guardrails-ai-valid-choices
Checks if a given string is a valid choice from a list of choices.
Installation
pip install guardrails-ai-valid-choices
This validator ships local models. After installing, run the post-install step to download them:
python -m guardrails_ai.valid_choices.post_install
Usage
from guardrails import Guard
from guardrails_ai.valid_choices import ValidChoices
guard = Guard().use(ValidChoices)
License
MIT — © Guardrails AI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file guardrails_ai_valid_choices-0.1.0.tar.gz.
File metadata
- Download URL: guardrails_ai_valid_choices-0.1.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30b1d105adc4e639045a48aeb0fa4644eaecdbbecc12bc668e0e2150c7494d2b
|
|
| MD5 |
9570824cd9ca602915cb815f1bd905a2
|
|
| BLAKE2b-256 |
ab966f22eb828c30f1e68315dda37218b1f9c88197d42973e318bc96159f49f5
|
File details
Details for the file guardrails_ai_valid_choices-0.1.0-py3-none-any.whl.
File metadata
- Download URL: guardrails_ai_valid_choices-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa780e9123cde43aff47a3c47a6158449ca635503e1727e444bfe1384f71957d
|
|
| MD5 |
c1ec5f3d846e51e3c24e5a64fa954e2f
|
|
| BLAKE2b-256 |
cb736cf806c9d0f21fc671b7bd6435136c86fce1840a609d3f6b1fb54bc626c0
|