guardrails-ai-types
Offical Guardrails AI Types
Decision gist · record as of 2026-08-14
Yes, if you are using the guardrails-ai SDK to validate LLM outputs or create guarded chat completions. The package provides essential type definitions with minimal overhead (one pydantic dependency), active maintenance, and permissive licensing. Install it as part of your guardrails-ai setup for type safety and IDE support.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later (supports_current); designed as a types package for use with the guardrails-ai SDK client.
- Low friction install with a single runtime dependency on pydantic.
- Actively maintained with recent commits and releases within the past month.
License · maintenance · safety
permissive license (permissive) — MIT License permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
last release 2026-07-10 (35 days) · last repo commit 2026-07-10 · 2 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 122,775 downloads/mo, #11,934 on PyPI
Alternatives
Verify before relying
pip install guardrails-ai-types
from guardrails_ai.sdk import Guard, ValidationOutcome
# Use imported types in your guardrails client code
guard: Guard = await client.guards.retrieve(name="my-guard")
validation_outcome: ValidationOutcome = await client.guards.validate(name="my-guard", llm_output="Hello, world.")- Whether this package is intended for direct installation or primarily as a transitive dependency of guardrails-ai-sdk.
- What specific validation rules or guardrail types are included beyond the core Guard and ValidationOutcome classes shown in the excerpt.
What it is and what it does
guardrails-ai-types is a types package providing Pydantic-based data structures for the Guardrails AI REST client. It defines the core types—Guard, ValidationOutcome, and related structures—needed to interact with the guardrails-api service for validating LLM outputs and creating guarded chat completions. The package serves as the type layer for the guardrails-ai SDK, enabling type-safe Python code when working with remote guardrails services.
The package is actively maintained and has low installation friction, depending only on pydantic. It supports current Python versions (3.10+) and is distributed under the MIT License, making it freely usable in both open-source and commercial contexts.
Use it for
- Type-checking guardrails client code when validating LLM outputs against remote guard definitions.
- Building type-safe applications that create and manage guarded chat completions with streaming support.
- Defining validation outcomes and summaries when integrating LLM safety checks into production systems.
- Enabling IDE autocomplete and static analysis for guardrails-ai SDK method calls and responses.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are using the guardrails-ai SDK to validate LLM outputs or create guarded chat completions.
The package provides essential type definitions with minimal overhead (one pydantic dependency), active maintenance, and permissive licensing. Install it as part of your guardrails-ai setup for type safety and IDE support.
Install
guardrails-ai-types on PyPI
Before you install
Low friction install with a single runtime dependency on pydantic. Actively maintained with recent commits and releases within the past month.
Requires Python 3.10 or later (supports_current); designed as a types package for use with the guardrails-ai SDK client.
License in practice
MIT License permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
Quickstart
pip install guardrails-ai-types
from guardrails_ai.sdk import Guard, ValidationOutcome
# Use imported types in your guardrails client code
guard: Guard = await client.guards.retrieve(name="my-guard")
validation_outcome: ValidationOutcome = await client.guards.validate(name="my-guard", llm_output="Hello, world.")
Verify before relying
- Whether this package is intended for direct installation or primarily as a transitive dependency of guardrails-ai-sdk.
- What specific validation rules or guardrail types are included beyond the core Guard and ValidationOutcome classes shown in the excerpt.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release <4,>=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagepydantic |
| Maintenance | Actively maintained 35 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 122,775 / month, #11,934 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: guardrails_ai_types-0.5.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “guardrails ai types”
- guardrails-ai-typesProvides type definitions and data structures for the Guardrails AI…
- guardrails-hub-typesProvides internal data structure definitions for the Guardrails Hub,…
- datarobot-moderationsEnforces content moderation on LLM prompts and responses using…
Give your agent the search over MCP, or paste the wish link into any chat.
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.
Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.
Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.
Install it if you work with Hugging Face Hub models or datasets.
LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.
hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.
Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.
Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.
Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.
See also guardrails-ai · guardrails-hub-types · nemoguardrails · openresponses-types · datarobot-moderations · openai-guardrails · flake8-typing-imports · pydantic-ai-shields · k8 · llm-guard