Skip to main content

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.

Download files

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

Source Distribution

guardrails_ai_valid_choices-0.1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

guardrails_ai_valid_choices-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file guardrails_ai_valid_choices-0.1.0.tar.gz.

File metadata

File hashes

Hashes for guardrails_ai_valid_choices-0.1.0.tar.gz
Algorithm Hash digest
SHA256 30b1d105adc4e639045a48aeb0fa4644eaecdbbecc12bc668e0e2150c7494d2b
MD5 9570824cd9ca602915cb815f1bd905a2
BLAKE2b-256 ab966f22eb828c30f1e68315dda37218b1f9c88197d42973e318bc96159f49f5

See more details on using hashes here.

File details

Details for the file guardrails_ai_valid_choices-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for guardrails_ai_valid_choices-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aa780e9123cde43aff47a3c47a6158449ca635503e1727e444bfe1384f71957d
MD5 c1ec5f3d846e51e3c24e5a64fa954e2f
BLAKE2b-256 cb736cf806c9d0f21fc671b7bd6435136c86fce1840a609d3f6b1fb54bc626c0

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 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