guardrails-ai / guardrails

Adding guardrails to large language models.
https://www.guardrailsai.com/docs
Apache License 2.0
3.92k stars 297 forks source link

[feat] Add async_validate() calls to all validators #831

Open wylansford opened 3 months ago

wylansford commented 3 months ago

Description Even if we use async mode, async ends up calling synchronous validate() calls. We can add an async call to all validators

Why is this needed Real Async support

Implementation details Add async_validate() as a function to implement in base_validator, implement this function in all validators

End result

github-actions[bot] commented 1 month ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 14 days.

github-actions[bot] commented 3 weeks ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 14 days.