Module gen

Source
Expand description

NL โ†’ Cedar policy generator. Calls an LLM with a constrained prompt, then validates the output against the schema. Loops until valid or N tries.

Structsยง

ChatMsg ๐Ÿ”’
GenRequest ๐Ÿ”’

Constantsยง

SYSTEM_PROMPT ๐Ÿ”’

Functionsยง

extract_content ๐Ÿ”’
run
strip_fences ๐Ÿ”’