semvec/pypi-packages huggingface dataset:
senpai-validators 0.2.0
Validation helpers for SENPAI YAML rules, profiles, and connectors.
Requires Python: >=3.10
Keywords: pydantic, validation, yaml

# senpai-validators

Validation helpers for SENPAI YAML snippets.

## Installation

```bash
pip install senpai-validators
```

## Usage

```python
from senpai_validators import validate_rule

result = validate_rule(
    """
    name: Sample rule
    description: Demo
    conversations: all
    oracle: "some predicate"
    """
)

print(result.is_valid)
print(result.errors)
print(result.warnings)
```

Also available:

- `validate_profile`
- `validate_connector`