> For the complete documentation index, see [llms.txt](https://docs.skydeck.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.skydeck.ai/da/genstudio-workspace/tools/pair-programmer/example-python-script-assistance.md).

# Eksempel – Python Script Assistance

I dette eksempel beder vi Pair Programmer om hjælp til et Python-script, der ikke fungerer som ønsket i forhold til store CSV-filer.

<figure><img src="/files/aLUSn7VsOfleaRL9JutW" alt="pair programmer input"><figcaption></figcaption></figure>

Værktøjet tager et øjeblik at analysere dit prompt. Hver respons er tilpasset, så ingen prompts vil have nøjagtig samme output. For dette prompt startede Pair Programmer med krav, der gentog, hvad vi spurgte om.

<figure><img src="/files/AIiM8Oc7kPVjjBIFHEMU" alt="pair programmer output 1"><figcaption></figcaption></figure>

Nogle gange kan du bede om en løsning, der ikke findes. Pair Programmer kan informere dig, hvis det kan give et passende svar, og hvordan værktøjet vil svare på dit prompt.

<figure><img src="/files/brWqXY00Gyc6QzLXbp0O" alt="pair programmer output 2"><figcaption></figcaption></figure>

For vores Python-script prompt forklarer Pair Programmer forskellige måder, vi kan ændre vores script på, komplet med kodeeksempler.

<figure><img src="/files/Q0p8YKLi3u2LfVYizQKO" alt="pair programmer output 3"><figcaption></figcaption></figure>

Pair Programmer kan også give os nogle opfølgende spørgsmål, så AI kan forstå de specifikke behov i din situation. Du kan derefter stille disse spørgsmål for at anmode om yderligere assistance.

<figure><img src="/files/iZ7b7AWIjSTl0XPpDsq5" alt="pair programmer output 4"><figcaption></figcaption></figure>

Pair Programmer giver derefter opdaterede strategier, der bedre passer til dine behov. Der kan være flere opfølgende spørgsmål. Når du besvarer flere spørgsmål og giver yderligere information, vil dit output være mere specifikt. Pair Programmer forstår automatisk konteksten for hver yderligere forespørgsel.

<figure><img src="/files/tqrspiHTmhEVcRqObA7C" alt="pair programmer output 5"><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.skydeck.ai/da/genstudio-workspace/tools/pair-programmer/example-python-script-assistance.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
