lasagnastack.stages.reel_pipeline.critique¶
lasagnastack.stages.reel_pipeline.critique
¶
run
¶
run(
cut_list: CutList,
inventories: list[ClipInventory],
brief_path: Path,
output_dir: Path,
client: LLMClient | None = None,
skill_path: Path | None = None,
max_retries: int = _MAX_RETRIES_DEFAULT,
) -> CutList
Run the critique loop, replacing the cut list on revision until approved or capped.
Writes critique/iteration_N.json per iteration via io.write_json / io.critique_path.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cut_list
|
CutList
|
Initial cut list from Stage 3. |
required |
inventories
|
list[ClipInventory]
|
Segment inventories (for context). |
required |
brief_path
|
Path
|
Path to the creator brief. |
required |
output_dir
|
Path
|
Pipeline root; critique JSONs written here. |
required |
client
|
LLMClient | None
|
LLM client to use. Defaults to GeminiClient. |
None
|
skill_path
|
Path | None
|
Optional path to a Markdown skill file injected into the prompt before the creator brief. |
None
|
max_retries
|
int
|
Maximum critique iterations before shipping as-is. |
_MAX_RETRIES_DEFAULT
|
Returns:
| Type | Description |
|---|---|
CutList
|
The approved (or capped) CutList. |