---
sidebar:
  hidden: true
title: roboto.domain.files.lazy_lookup_file
---
## Module Contents

### LazyLookupFile

```python
class roboto.domain.files.lazy_lookup_file.LazyLookupFile(
    hydrate_fn: Callable[[], roboto.domain.files.file.File],
)
```

`from roboto.domain.files import LazyLookupFile`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/files/lazy_lookup_file.py#L12-L45)

Bases: [`roboto.domain.files.file.File`](/reference/python-sdk/roboto/domain/files/file#roboto.domain.files.file.File)

A File subclass that defers instantiation (hydration) of the real File until any non‐internal attribute is first accessed.

This is useful for scenarios where we know how to dereference a File (e.g., by ID), and we want to return a handle in case the caller wants to work with it, but we don’t want to pay the cost of dereferencing it unless necessary.

**Parameters**

- **hydrate_fn** (`Callable[[], roboto.domain.files.file.File]`)
