> 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/vi/genstudio-workspace/tools/pair-programmer/example-python-script-assistance.md).

# Ví dụ – Hỗ trợ kịch bản Python

Trong ví dụ này, chúng tôi đang yêu cầu Pair Programmer giúp đỡ với một script Python không hoạt động như mong muốn liên quan đến các tệp CSV lớn.

<figure><img src="/files/JuRGJbK2muB46t5nKe21" alt="nhập liệu của lập trình viên cặp"><figcaption></figcaption></figure>

Công cụ mất một chút thời gian để phân tích yêu cầu của bạn. Mỗi phản hồi đều được tùy chỉnh, vì vậy không có yêu cầu nào có đầu ra hoàn toàn giống nhau. Đối với yêu cầu này, Pair Programmer bắt đầu với các yêu cầu nhắc lại những gì chúng tôi đã hỏi.

<figure><img src="/files/hpP5IQaAJlxyqZV5H9Zy" alt="đầu ra của lập trình viên cặp 1"><figcaption></figcaption></figure>

Đôi khi bạn có thể yêu cầu một giải pháp không tồn tại. Pair Programmer có thể cho bạn biết nếu nó có thể cung cấp một câu trả lời đầy đủ và cách mà công cụ sẽ trả lời yêu cầu của bạn.

<figure><img src="/files/MI50Yy8QRUdIgmH7ACOc" alt="đầu ra của lập trình viên cặp 2"><figcaption></figcaption></figure>

Đối với yêu cầu script Python của chúng tôi, Pair Programmer đang giải thích những cách khác nhau mà chúng tôi có thể sửa đổi script của mình, kèm theo các ví dụ mã.

<figure><img src="/files/jL5SrpfpSKCzgQHSNOgJ" alt="đầu ra của lập trình viên cặp 3"><figcaption></figcaption></figure>

Pair Programmer cũng có thể cung cấp cho chúng tôi một số câu hỏi theo dõi để AI có thể hiểu rõ hơn về nhu cầu cụ thể của tình huống của bạn. Bạn có thể hỏi những câu hỏi đó để yêu cầu thêm sự trợ giúp.

<figure><img src="/files/9h78PcGsYcF6o1tm58d5" alt="đầu ra của lập trình viên cặp 4"><figcaption></figcaption></figure>

Pair Programmer sau đó cung cấp các chiến lược cập nhật phù hợp hơn với nhu cầu của bạn. Có thể có thêm nhiều câu hỏi theo dõi. Khi bạn trả lời nhiều câu hỏi hơn và cung cấp thêm thông tin, đầu ra của bạn sẽ cụ thể hơn. Pair Programmer tự động hiểu ngữ cảnh cho mỗi truy vấn bổ sung.

<figure><img src="/files/SOnWEV19bezBCwJjWBTE" alt="đầu ra của lập trình viên cặp 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/vi/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.
