lasagnastack.stages.reel_pipeline.enhance¶
lasagnastack.stages.reel_pipeline.enhance
¶
EnhanceStage
¶
EnhanceStage(client: LLMClient | None = None)
Bases: Stage
Stage 5: assign visual styling and animations to the approved cut list.
Initialise with an optional LLM client.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
client
|
LLMClient | None
|
LLM client to use. Defaults to GeminiClient. |
None
|
Source code in src/lasagnastack/stages/reel_pipeline/enhance.py
completion_message
¶
completion_message(state: PipelineState) -> str
Return the post-stage confirmation message.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
state
|
PipelineState
|
Current pipeline state. |
required |
Returns:
| Type | Description |
|---|---|
str
|
Human-readable completion string. |
Source code in src/lasagnastack/stages/reel_pipeline/enhance.py
run
¶
run(state: PipelineState) -> PipelineState
Run the enhance stage.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
state
|
PipelineState
|
Current pipeline state. |
required |
Returns:
| Type | Description |
|---|---|
PipelineState
|
Updated pipeline state with |
Source code in src/lasagnastack/stages/reel_pipeline/enhance.py
run
¶
run(
cut_list: CutList,
brief_path: Path,
output_dir: Path,
client: LLMClient | None = None,
skill_path: Path | None = None,
) -> ReelStyleSheet
Generate visual styling for the approved cut list.
Sends the cut list and brief to the LLM and returns a ReelStyleSheet describing per-cut transition types and caption effects (colour, animation, etc.). Writes reel_style.json to output_dir.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cut_list
|
CutList
|
Approved cut list from Stage 4. |
required |
brief_path
|
Path
|
Path to the freeform .txt creator brief. |
required |
output_dir
|
Path
|
Pipeline root; reel_style.json 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
|
Returns:
| Type | Description |
|---|---|
ReelStyleSheet
|
A ReelStyleSheet ready for the render stage. |