Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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

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.2.1a1.tar.gz (3.7 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.2.1a1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file guardrails_ai_valid_choices-0.2.1a1.tar.gz.

File metadata

File hashes

Hashes for guardrails_ai_valid_choices-0.2.1a1.tar.gz
Algorithm Hash digest
SHA256 812dd9ef289e738ca673721ee92665388891cec73f853f38e42ab350afdf81dc
MD5 25d1ea9006351fde023a22131920ecb7
BLAKE2b-256 1938c2aff658820a692cf128ee85221ab937739040fb60ceb7545910f94ef7cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for guardrails_ai_valid_choices-0.2.1a1.tar.gz:

Publisher: validators_publish.yml on guardrails-ai/guardrails-hub-monorepo

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

File details

Details for the file guardrails_ai_valid_choices-0.2.1a1-py3-none-any.whl.

File metadata

File hashes

Hashes for guardrails_ai_valid_choices-0.2.1a1-py3-none-any.whl
Algorithm Hash digest
SHA256 04b9dd7a1dff1c9c5054162f767cd042c7698dc0ff0f2a286bb52819b97f679e
MD5 ffb3464612fc7e74c33eca13d44784a9
BLAKE2b-256 191bf68b956b9ba0c9c1de948c609e750c8a575d3bf8303840abe69f8d17769d

See more details on using hashes here.

Provenance

The following attestation bundles were made for guardrails_ai_valid_choices-0.2.1a1-py3-none-any.whl:

Publisher: validators_publish.yml on guardrails-ai/guardrails-hub-monorepo

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

Release history Release notifications | RSS feed

This release

0.2.1a1 This release

2 files

0.1.0

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