# プログラミング修正サポート

プログラミング修正サポートアプリでは「上手くいかないこと」と「プログラミング言語」「プログラムソース」を入力するだけで問題の指摘と、修正案を提案します。

<figure><img src="/files/vfvaLtgJcHEIJ8MI5tt6" alt=""><figcaption></figcaption></figure>

下記の入力例を基にクエリを生成します。

## 入力例 <a href="#example1" id="example1"></a>

<figure><img src="/files/i5o2M0p8NiEASBPRJI6z" alt=""><figcaption></figcaption></figure>

* **うまくいかないこと：**&#x53;DKが立ち上がらない
* **プログラム言語：**&#x4A;avaScript
* **プログラムソース：**

```
<html>
  <body>
    <script type="module">
      import Alli from https://sdk.alli.ai/2/alli.esm.min.js;

      const main = async () => {
        await Alli.initialize({ sdkKey: 'YOUR_SDK_KEY' });
        // ...
      };

      main();
    </script>
  </body>
</html>
```

## 結果例 <a href="#example2" id="example2"></a>

入力例の内容で生成を実施すると下記のような問題点と修正案が生成されます。

生成された文章は、その場で編集やコピー、ファイルとしてダウンロード(txt・PDF・docx)が可能です。

<figure><img src="/files/ZJ9UEsUqpjlMn0HaVyBP" alt=""><figcaption></figcaption></figure>

{% code overflow="wrap" %}

```
このプログラムソースにはいくつかの問題があります。

import文のURLは文字列として指定する必要があります。現在のコードではURLがそのまま記述されていますが、これは正しい形式ではありません。

Alli.initialize()メソッドに渡すsdkKeyの値が実際のSDKキーに置き換えられていません。'YOUR_SDK_KEY'の部分を実際のSDKキーに変更する必要があります。

正しいプログラムソースは以下のようになります。

<html>
  <body>
    <script type="module">
      import Alli from 'https://sdk.alli.ai/2/alli.esm.min.js';

      const main = async () => {
        await Alli.initialize({ sdkKey: 'YOUR_ACTUAL_SDK_KEY' });
        // ...
      };

      main();
    </script>
  </body>
</html>
これでSDKが正しく読み込まれ、initialize()メソッドが正しく呼び出されるはずです。
```

{% endcode %}

## アプリ編集画面 <a href="#edit" id="edit"></a>

標準で用意されているインプット項目とLLMモデル・プロンプトは下記の内容になります。

### インプット <a href="#input" id="input"></a>

利用者に入力してもらいたい項目を3つご用意しています。

インプット項目は追加や削除、入力形式(インプットタイプ)の変更をすることができます。

<figure><img src="/files/8qfKBmkafiW1Zt3f5ZRq" alt=""><figcaption></figcaption></figure>

* **上手くいかないこと**
  * 変数：@contents
  * インプットタイプ：パラグラフ
* **プログラム言語**
  * 変数：@language
  * インプットタイプ：テキスト
* **プログラムソース**
  * 変数：@source
  * インプットタイプ：パラグラフ

### LLMモデル <a href="#model" id="model"></a>

標準モデルは「OPENAI GPT4 TURBO」がセットされています。

{% hint style="warning" %}
モデルを変更することで生成結果の仕上がりが変わる場合があります。
{% endhint %}

### プロンプト <a href="#prompt" id="prompt"></a>

{}で囲まれているものはインプットで設定されている変数が当てはめられており、プロンプト記載欄の下にチップの形で表示されている変数をクリックすると簡単に記載ができます。

{% hint style="warning" %}
インプットの変数を変更した際は、プロンプト内の変数も変更する必要があります。
{% endhint %}

####


---

# 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.allganize.ai/alli-llm-app-market/app-market/default-apps/it/programing_support.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.
