# 例 – Python スクリプト支援

この例では、大きな CSV ファイルに関連して意図した通りに動作していない Python スクリプトを Pair Programmer に助けてもらうように依頼しています。

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

ツールは、あなたのプロンプトを分析するのに少し時間がかかります。すべての応答はカスタマイズされているため、同じ出力を持つプロンプトはありません。このプロンプトでは、Pair Programmer は私たちが求めたことを繰り返す要件から始めました。

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

時には、存在しない解決策を求めることがあるかもしれません。Pair Programmer は、適切な回答を提供できるかどうか、そしてツールがどのようにあなたのプロンプトに応答するかを知らせてくれるかもしれません。

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

私たちの Python スクリプトのプロンプトに対して、Pair Programmer はスクリプトを修正するためのさまざまな方法を説明し、コード例を添えています。

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

Pair Programmer は、AI があなたの状況の具体的なニーズを理解できるように、いくつかのフォローアップ質問を提供することもあります。その後、これらの質問をしてさらなる支援を求めることができます。

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

Pair Programmer は、その後、あなたのニーズにより適した更新された戦略を提供します。さらにフォローアップ質問があるかもしれません。あなたがより多くの質問に答え、さらなる情報を提供するにつれて、出力はより具体的になります。Pair Programmer は、各追加のクエリのコンテキストを自動的に理解します。

<figure><img src="/files/nXI0DGi3nNxpvB5KKrin" alt="pair programmer output 5"><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.skydeck.ai/ja/genstudio-workspace/tools/pair-programmer/example-python-script-assistance.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.
