inspect_evals_utils.prompts¶
A dataclass for declaring a prompt together with its provenance and contracts.
An eval's prompts.py declares module-level Prompt instances. Collect them with an isinstance filter, e.g.:
entries = [p for p in vars(prompts).values() if isinstance(p, Prompt)]
judges = [p for p in entries if p.role == "judge"]
Prompt
dataclass
¶
One prompt, plus the facts needed to swap it in safely.