Skip to content

Glossary: AI Security and Guardrails

Generator

Also written: generators, yield

A Python function that hands back values one at a time using `yield`. The `events()` function in the monitor is one, so the log writer takes each event as it comes.

Where the book teaches it

Related terms

Security event