Skip to content

latent.prefect

Prefect flow and task decorators with automatic configuration.

This module provides opinionated decorators for building evaluation flows with automatic configuration loading, logging setup, and experiment tracking.

Key exports: - flow: Decorator for defining flows with auto-configuration - task: Decorator for defining tasks with auto-caching and retries - LatentTask: Task wrapper with enhanced .map(concurrency=N) support - params: Context-aware access to flow parameters - logger: Context-aware flow logger - apply_sampling: Params-aware eval-set sampling with effective-truncation stamp - resumable: Crash-resumable batch work list, active in every environment - checkpoint: Development-only argument-hash memoizer

Attributes

flow

logger

params

task