# Agent Quick Start

#### 🚨Please note that currently our Agent functionality is only compatible with VSCode⚠️

Have any questions or looking for support from the team, join our Discord server:&#x20;

<https://discord.gg/KBNBB8rb>

### Setting up Etiq with an agent

In order to use Etiq's Agent functionality you need to have an API key for one of the following LLM providers:

* OpenAI
* Anthropic
* Google

With Etiq installed click on the Etiq logo on the left of the primary sidebar in VSCode.

<figure><img src="https://518012520-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEPbKmhwsGKY7PeVOfaDr%2Fuploads%2F31Isj3KtQuxAPfTDvBvF%2FScreenshot%202025-11-14%20at%2012.59.45.png?alt=media&#x26;token=d4253ac8-925d-4eec-a12c-d629fe26bca1" alt=""><figcaption></figcaption></figure>

This will open up the Etiq LLM Copilot Selector. Choose from the drop down your LLM provider of choice, and then enter a valid API key for that provider in the box below.

<figure><img src="https://518012520-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEPbKmhwsGKY7PeVOfaDr%2Fuploads%2FIwt88G6c7IoG11MCk0Xk%2FScreenshot%202025-11-14%20at%2013.07.33.png?alt=media&#x26;token=8658c118-1668-4569-b2e2-39642b355bc3" alt=""><figcaption></figcaption></figure>

If this has been successful you'll see the RCA tab in the Etiq Panel on the right had side change to DSA (Data Science Agent).

<figure><img src="https://518012520-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEPbKmhwsGKY7PeVOfaDr%2Fuploads%2Fof81aiprYVMHyWj5fLEO%2FScreenshot%202025-11-14%20at%2013.19.47.png?alt=media&#x26;token=e64aa05f-3f79-4af2-96c2-882715dc0d37" alt=""><figcaption></figcaption></figure>

### Using the Data Science Agent

The Data Science Agent replaces the Root Cause Analysis (RCA) functionality of the core Etiq Data Science Copilot.

Clone our demo scripts repo

<https://github.com/ETIQ-AI/etiq-demo-scripts.git>

Within the `duplicates-example` directory you'll find `duplicates_example.py`

Using this script first you scan the current file

<figure><img src="https://518012520-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEPbKmhwsGKY7PeVOfaDr%2Fuploads%2Fp5fVp0Ce9cRGj9sDIOtC%2FScreenshot%202025-11-14%20at%2013.29.01.png?alt=media&#x26;token=69d015aa-1d76-43f5-acdf-8b627ccd3273" alt=""><figcaption></figcaption></figure>

Move to the testing recommendations tab and select a relevant test to run, here we're going to choose:

```python
Line 24: df_with_duplicates = df_with_duplicates.sample(frac=1, random_state=42).reset_index(drop=True)
```

And we will run the `etiq.scan_duplicate_rows` test

<figure><img src="https://518012520-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEPbKmhwsGKY7PeVOfaDr%2Fuploads%2FaGvDIXAFqOi4O5khDzWv%2FScreenshot%202025-11-14%20at%2013.31.46.png?alt=media&#x26;token=40a3da5f-798e-4cc4-a950-bf0c0a323902" alt=""><figcaption></figcaption></figure>

You'll see that the test has now failed

<figure><img src="https://518012520-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEPbKmhwsGKY7PeVOfaDr%2Fuploads%2FfYn5QmhcxdfOPWNcPk1o%2FScreenshot%202025-11-14%20at%2013.32.41.png?alt=media&#x26;token=21c9b2c0-a9fa-4bdf-961d-e4d0c432ad76" alt=""><figcaption></figcaption></figure>

Click on the run DSA tab, this will change to `Waiting...`  This will start the Data Science Agent which will now analyse both the data and teh code to understand what is the root of the issue, here the duplicate rows, and provide a fix. Once the agent is finished the `Waiting...` will change to Re-Run DSA

<figure><img src="https://518012520-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEPbKmhwsGKY7PeVOfaDr%2Fuploads%2FAszcy946kO4n7B7239DZ%2FScreenshot%202025-11-14%20at%2013.33.10.png?alt=media&#x26;token=cf7cf8f2-163c-4ede-b558-01797fa4a989" alt=""><figcaption></figcaption></figure>

Scroll to the top and now click on the DSA tab. This will bring up the specific lineage for the affected data and code

<figure><img src="https://518012520-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEPbKmhwsGKY7PeVOfaDr%2Fuploads%2FHZtBtwIE8J5mRrT6oc3P%2FScreenshot%202025-11-14%20at%2013.33.31.png?alt=media&#x26;token=1156dadf-0f3d-46da-a9bf-fa8c7d1160f3" alt=""><figcaption></figcaption></figure>

If you scroll down the DSA result section will suggest a fix, if you click Open Full Diff it will show that change to be made on your script. Underneath that will be an expandable Code Fix Explanation

<figure><img src="https://518012520-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEPbKmhwsGKY7PeVOfaDr%2Fuploads%2FT7bFvBDkyvtTdQtBHYPH%2FScreenshot%202025-11-14%20at%2013.33.46.png?alt=media&#x26;token=eddb4e81-9f27-4990-8a05-3bb29ae73e38" alt=""><figcaption></figcaption></figure>

If you now make the suggested change to the script, save the script rerun the code scan, and rerun the `etiq.scan_duplicate_rows` test you'll see that it has now passed.

<figure><img src="https://518012520-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEPbKmhwsGKY7PeVOfaDr%2Fuploads%2FaFtpFI1sE8SwnA44JNNc%2FScreenshot%202025-11-14%20at%2013.57.11.png?alt=media&#x26;token=47e6fcbf-cab3-4734-aaba-6381c23c05e4" alt=""><figcaption></figcaption></figure>
