# 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="/files/6eXynPpwV3wNLJZhKizc" 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="/files/YRZODc6U0PGrff4Yun9y" 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="/files/BaySxfE5rUIq7bFbUEGs" 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="/files/odFsbinKH6QGmoch39x0" 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="/files/OJx1B7AYN24v6nxwjj7U" alt=""><figcaption></figcaption></figure>

You'll see that the test has now failed

<figure><img src="/files/fo7Xnsz93osdRLzJ42OR" 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="/files/bWv6uAGstbJvDLIQcQTv" 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="/files/zzWdAH5SI1d9FhXWwXVr" 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="/files/0rF09Y1JyyXXkm8L2An9" 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="/files/snsla7QtsRrmvFh49brO" alt=""><figcaption></figcaption></figure>


---

# 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.etiq.ai/agent-quick-start.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.
