guardrails
guardrails copied to clipboard
Streaming chunk accumulation
trafficstars
Implements new validate_stream method on Validator, and changes stream_runner to pass individual chunks to validators. Validators now internally accumulate chunks until they reach a specified chunk size, then emit a validation up to the iterator in stream_runner.
These changes only apply to string_schema and SequentialValidatorService for now.