# Lineage with Input, Mediation and Output contracts

When **Data Mover is set up as a client**, input, meditation, and output contracts are configured.

In the figure below, with the SFTP protocol, Data Mover is set up as a client both in input and output as indicated by the filled-up arrow symbols:

<figure><img src="https://files.readme.io/da4ec2506f910efaa93a168e5d3f65a41df26cce6955ad4551aa80986ff4a337-image.png" alt=""><figcaption></figcaption></figure>

The SFTP chip on the left (input) has an orange arrow in the output. Clicking on the PR4 output will take you to the most detailed level, where you can see the flow and its configuration.

<figure><img src="https://files.readme.io/32832992b08cf1eabaf2f51653e50e83c311e90c81379c6fe6af9d6e5fd63512-image.png" alt=""><figcaption></figcaption></figure>

In the figure above, the Lineage shows the complete flow, whose configuration includes:

* a **source partner** where Data Mover collects files via SFTP
* the **input contract** configured to collect the files via SFTP, with one action
* a **mediation contract** with one action
* an **output contract** with one action
* a **destination application** that receives the files via PR4 protocol

When clicking a box, all details will appear in the panel on the right.

By clicking the **upper part of the box**, the Contract type, Actor, Description, Last update, and Creation date, together with the number of actions, are shown.

<figure><img src="https://files.readme.io/69a3ac8adbb30c9d4a5a1debed0de9bf668ab5d87182f062415daeddad6b338a-image.png" alt=""><figcaption></figcaption></figure>

By clicking action1 in the **lower part of the box**, the Category, Template, Trigger, and links of the input contract, with all the details, are shown:

<figure><img src="https://files.readme.io/4a063f81ffab20ce1201bc9d080d58ff71f0864ecf620c45379686efa3b3f0a6-image.png" alt=""><figcaption></figcaption></figure>

You can click on the links to expand the panel:

<figure><img src="https://files.readme.io/5ce406494fe876b9d30d44c71904455d1151b066fb621013e52572f709c386a2-image.png" alt="" width="375"><figcaption></figcaption></figure>

The same logic applies to the MEDIATION and the OUTPUT boxes:

* Clicking the upper part of the box, the type of Contract, Action, Description, and Actions are shown.
* Clicking the lower part of the box, the Category, Template, Trigger, and contract links with all the details, are shown.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.primeur.com/data-mover-1.21/actors/actor-lineage/lineage-with-input-mediation-and-output-contracts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
