Skip to content

API Reference parrot.clients.google.reel.veo

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.clients.google.reel.veo

View source

Bounded Veo clip adapter (FEAT-564, spec module M3).

Wraps aio.models.generate_videos + aio.operations.get + aio.files.download for exactly one reel scene: submits once, polls and downloads under the caller's original absolute deadline, applies at most max_read_retries bounded retries to transient poll/download reads only (never to the generation submission itself), and never resubmits after a safety block or an ambiguous timeout — the operation id is always preserved on the raised error for reconciliation.

Alias DownloadFailure

Re-exported from parrot.clients.google.reel.errors.DownloadFailure.

Alias FilteredOutputError

Re-exported from parrot.clients.google.reel.errors.FilteredOutputError.

Alias GeneratedReelClip

Re-exported from parrot.clients.google.reel.clip.GeneratedReelClip.

Alias GoogleGenAIClient

Re-exported from parrot.clients.google.client.GoogleGenAIClient.

Attribute MOVIEPY_AVAILABLE

Alias MediaValidationFailure

Re-exported from parrot.clients.google.reel.errors.MediaValidationFailure.

Alias OperationFailure

Re-exported from parrot.clients.google.reel.errors.OperationFailure.

Alias ReelError

Re-exported from parrot.clients.google.reel.errors.ReelError.

Alias ReelErrorCode

Re-exported from parrot.clients.google.reel.errors.ReelErrorCode.

Class VeoClipAdapter

Generates one Veo clip for a reel scene.

Parameter Type Default Description
owner 'GoogleGenAIClient' The :class:GoogleGenAIClient that owns provider client lifecycle (get_client/close).
poll_interval_seconds float 10.0 Delay between long-running-operation status polls.
max_read_retries int 3 Maximum bounded retries for transient poll/download reads — never applied to the initial generation submission.

Method VeoClipAdapter.generate

Generates one Veo clip for a scene.

generate(*, profile: VideoModelProfile, prompt: str, output_directory: Path, aspect_ratio: str, resolution: str, target_duration_seconds: float, starting_frame: Optional[Path], deadline: float) -> GeneratedReelClip

Parameter Type Default Description
profile VideoModelProfile The resolved, enabled Veo profile to generate with.
prompt str The scene's video prompt.
output_directory Path Directory the downloaded clip is written into.
aspect_ratio str Requested aspect ratio (already normalized).
resolution str Requested resolution.
target_duration_seconds float The scene's edit target duration.
starting_frame Optional[Path] Optional starting-frame image path.
deadline float Absolute time.monotonic()-comparable deadline shared across submit/poll/download.

Returns: GeneratedReelClip — The generated, measured, locally-saved clip.

Raises:

  • ReelError — Submission, safety-block, filtered-output, ambiguous timeout, download or media-validation failure — always with the provider operation id attached once one was issued.
  • asyncio.CancelledError — Propagated unchanged.

Alias VideoModelProfile

Re-exported from parrot.clients.google.reel.profiles.VideoModelProfile.

Alias classify_provider_error

Re-exported from parrot.clients.google.reel.errors.classify_provider_error.

Alias select_generation_duration

Re-exported from parrot.clients.google.reel.profiles.select_generation_duration.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally