lasagnastack.stages.reel_pipeline.analyse¶
lasagnastack.stages.reel_pipeline.analyse
¶
AnalyseStage
¶
AnalyseStage(
client: LLMClient | None = None, max_workers: int = 4
)
run
¶
run(
clips: list[NormalisedClip],
output_dir: Path,
client: LLMClient | None = None,
max_workers: int = 4,
) -> list[ClipInventory]
Analyse each normalised clip with Gemini; cache results by content hash.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
clips
|
list[NormalisedClip]
|
Normalised clips from Stage 1. |
required |
output_dir
|
Path
|
Pipeline root; cache lives at output_dir/.cache, inventories written to output_dir/inventories/. |
required |
client
|
LLMClient | None
|
LLM client to use. Defaults to GeminiClient. |
None
|
max_workers
|
int
|
Maximum number of concurrent LLM calls. Uses
|
4
|
Returns:
| Type | Description |
|---|---|
list[ClipInventory]
|
One ClipInventory per clip, in the same order as clips. |