---
sidebar:
  hidden: true
title: roboto.action_runtime.action_input.file_resolver
---
## Module Contents

### InputFileResolver

```python
class roboto.action_runtime.action_input.file_resolver.InputFileResolver(
    roboto_client: Optional[roboto.http.RobotoClient] = None,
    roboto_search: Optional[roboto.roboto_search.RobotoSearch] = None,
)
```

`from roboto.action_runtime.action_input import InputFileResolver`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/action_runtime/action_input/file_resolver.py#L21-L119)

Looks up the files an action invocation runs on, from the file selectors declared as its inputs.

A selector names files by ID, by name, by path within a dataset, or with a RoboQL query; every field it populates is looked up and the matches are returned together. `resolve_all` returns each file once, while `resolve` repeats a file that matches on more than one field.

A `query`, `names` or `paths` goes through file search, which does not return links yet, so it never selects a link. A link named in `ids` is returned, and [`ActionInputResolver`](/reference/python-sdk/roboto/action_runtime/action_input/input_resolver#roboto.action_runtime.action_input.input_resolver.ActionInputResolver) downloads the version of its target that the link pins.

**Parameters**

- **roboto_client** (`Optional[roboto.http.RobotoClient]`)
- **roboto_search** (`Optional[roboto.roboto_search.RobotoSearch]`)

**Attributes**

- **InputFileResolver.roboto_client** = `None`
- **InputFileResolver.roboto_search**

#### InputFileResolver.resolve()

```python
def resolve(
    selector: roboto.domain.actions.FileSelector,
) -> list[roboto.domain.files.File]
```

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/action_runtime/action_input/file_resolver.py#L57-L88)

Looks up the files one selector names.

A `dataset_id` narrows the lookup only alongside `paths`; every other field ignores it, with a warning.

**Parameters**

- **selector** (`roboto.domain.actions.FileSelector`)

**Returns**

- `list[roboto.domain.files.File]`

#### InputFileResolver.resolve_all()

```python
def resolve_all(
    file_selectors: collections.abc.Sequence[roboto.domain.actions.FileSelector],
) -> list[roboto.domain.files.File]
```

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/action_runtime/action_input/file_resolver.py#L43-L55)

**Parameters**

- **file_selectors** (`collections.abc.Sequence[roboto.domain.actions.FileSelector]`)

**Returns**

- `list[roboto.domain.files.File]`

### log

```python
roboto.action_runtime.action_input.file_resolver.log
```

`from roboto.action_runtime.action_input.file_resolver import log`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/action_runtime/action_input/file_resolver.py#L18-L18)
