> ## Documentation Index
> Fetch the complete documentation index at: https://docs.levanto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Field types

> One value or every mention, as text or as a typed value.

The shape of `extract` is the shape of the answer.

## Say what to find

| `extract` | You get |
| - | - |
| `{"vendor": "the company issuing the invoice"}` | One text value per field |
| `{"city": ""}` | The same, when the name says it all |
| `{"total": {"type": "money"}}` | One typed value |
| `{"products": ["a product or service billed"]}` | Every mention, in order |
| `"What is the penalty for late delivery?"` | One answer |
| `["What dietary needs are mentioned?"]` | Every answer |

A question works as a field name too: `{"What's the amount of the invoice?": ""}`.

## Types

Without `type`, you get the text as written.

| Type | Text | Value |
| - | - | - |
| `text` | `Nordlicht GmbH` | `"Nordlicht GmbH"` |
| `integer` | `12,000 sq ft` | `12000` |
| `decimal` | `19 % USt` | `19` |
| `money` | `1.930,78 €` | `{"amount": 1930.78, "currency": "EUR"}` |
| `date` | `21 November 2026` | `"2026-11-21"` |
| `time` | `14:00 CET` | `"14:00+01:00"` |
| `datetime` | `23 October 2026 at 14:00 CET` | `"2026-10-23T14:00+01:00"` |
| `duration` | `three (3) years` | `"P3Y"` |

Values come only from what the text states: no relative dates, no missing years filled in, no unit or currency conversion. `currency` is `null` when the text names none. A `date` with only a month stated comes back as `"YYYY-MM"`. Units are dropped; ask for `text` to keep them.

A typed field combines with a definition and with a list:

```json theme={"theme":"github-light"}
{
  "total": {"type": "money", "definition": "the amount payable"},
  "line_amounts": [{"type": "money"}]
}
```

Limits on names, definitions and field counts are in [Limits](https://docs.levanto.ai/decision-model/limits.md#extraction).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.