Skip to main content
To stream validated output, pass the stream=True flag through the guard function. This will return a generator that yields GuardResult objects as they are processed.

Using validators with streaming

Using validators with streaming works the same way. Note that not all on_fail types are supported with streaming. See the full list in the error remediation concepts doc.

Learn more

Read more about streaming in our concept docs: