# ResourceFileReference

A shared prompt or JSON file of a project, which other files read by name.

**Kind:** an object, used in requests.

## Fields

| Field | Type | Required | Description |
|---|---|---|---|
| `name` | `string` | yes | The name other files read it by, as in `@prompt("name")` or `@json("name")`: the file name without its extension. Constraints: required (empty or whitespace-only strings are rejected). |
| `content` | `string` | yes | The file's text, kept exactly as sent. Constraints: required (empty or whitespace-only strings are rejected). |

## Example

```json
{
  "name": "...",
  "content": "..."
}
```

## Where it's used

- Inside [`ResourceFileReferences`](https://docs.maitento.com/reference/types/resource-file-references.md)
