Skip to main content

Ensures that any generated text is less than a maximum expected reading time.

Project description

guardrails-ai-reading-time

Ensures that any generated text is less than a maximum expected reading time.

Installation

pip install guardrails-ai-reading-time

This validator ships local models. After installing, run the post-install step to download them:

python -m guardrails_ai.reading_time.post_install

Usage

from guardrails import Guard
from guardrails_ai.reading_time import ReadingTime

guard = Guard().use(ReadingTime)

License

MIT — © Guardrails AI.

Project details


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_reading_time-0.1.0.tar.gz (4.5 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_reading_time-0.1.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for guardrails_ai_reading_time-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2142b64845dddb7c4cb276d3b7b4680e85bda9ef0193d337dbd3033e80bae2a1
MD5 5003c9909a06088aa2b21741ced8e3e7
BLAKE2b-256 28e54bae1685edf8fa3f5feb5950df500b0a44bb8a643fe90279614260a6d9ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for guardrails_ai_reading_time-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7ad5f7ab9a338265f9d9181b6b3a241abfd7958007615a4f49738ba09db508e0
MD5 a2b52cb513cde61c2d3c11eec3e50a98
BLAKE2b-256 2b8f50fdf3923e0cc7a069a15f26b019bb94169df8b069271c647ec50070fdbb

See more details on using hashes here.

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