# `PtcRunner.SubAgent.Validator`
[🔗](https://github.com/andreasronge/ptc_runner/blob/main/lib/ptc_runner/sub_agent/validator.ex#L1)

Validates SubAgent options at construction time.

Ensures required fields are present and all optional fields have valid types.
Extracted from `PtcRunner.SubAgent` to keep that module under the 800-line threshold.

# `validate!`

```elixir
@spec validate!(keyword()) :: :ok
```

Validates all SubAgent options, raising on invalid input.

## Raises

- `ArgumentError` - if any validation fails

---

*Consult [api-reference.md](api-reference.md) for complete listing*
