> For the complete documentation index, see [llms.txt](https://docs.cherryai.com.cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cherryai.com.cn/docs/jp/advanced-basic/chat/context-queue.md).

# 長い会話、コンテキストとキュー待ちメッセージ

対話が長くなるほど、モデルが読む必要のある履歴も増えます。コンテキストの使用量が上限に近づくと、早い内容は回答に引き続き参加できなくなる場合があります。「続けて」と何度も追加するより、定期的に結論と未解決の問題を整理しましょう。

<figure><img src="/files/aadc08e696e60d3e4ec94b097450e36aac775efe" alt="助手高级设置中的模型温度和上下文管理选项"><figcaption><p>回答スタイルや長い対話の処理方法を変える必要があるときだけ高度な設定を調整し、迷ったらまず現在の値を維持してください。</p></figcaption></figure>

## 長い対話の管理

{% stepper %}
{% step %}

### 1. コンテキストのヒントを確認する

画面にコンテキストの負荷が大きくなっていると表示されたら、まず大きな添付ファイルの追加をやめ、どの履歴が現在の目標にまだ関係しているかを確認します。
{% endstep %}

{% step %}

### 2. モデルに引き継ぎ要約を生成させる

「確認済みの事実、現在の結論、未解決の問題、失ってはいけない制約」を分けて列挙させてください。これは通常の「要約して」よりも、作業を続けるのに適しています。
{% endstep %}

{% step %}

### 3. 新しい話題で続ける

引き継ぎ要約と必要なファイルを新しい話題に入れ、最初のメッセージで次にどの目標だけを扱うのかを説明します。元の話題は参照用に残しておきます。
{% endstep %}
{% endstepper %}

## メッセージキューを使う

モデルがまだ返信している間に、次の依頼をキューに追加できます。たとえば「完了したら3つの結論に整理して」という明確な次のアクションを追加するのに適しています。新しいメッセージが実行中の方向を変える場合は、まず現在の生成を停止し、改めて目標を説明してください。

<figure><img src="/files/46f330627c156ac01ee75bb9c259c2bc6e92c76d" alt="消息队列中两条待发送消息和恢复自动发送按钮"><figcaption><p>一時停止中は先に結果を確認できます。再開すると、キューに入ったメッセージは上から順に送信を続けます。</p></figcaption></figure>

図中：① 現在の話題にある2件のキュー待ちメッセージ；② 自動送信の再開。再開後、メッセージは上から順に送信を続けます。

{% hint style="info" %}
キューは自動化された計画ではありません。現在の話題内の後続メッセージのみを扱います。決まった時間に実行したい場合は【定時タスク】を使ってください。
{% endhint %}

### 適用例：長いレポートをレビューする

まずレポートをアップロードし、章ごとに問題を挙げるよう依頼します。モデルが処理している間に、「完了したらリスク一覧を整理する」と「最後にチェックリストを生成する」を順にキューへ追加します。最初の結果を先に確認する必要があるときは自動送信を一時停止でき、確認後に再開します。こうすれば対話の前で逐一送信する必要がなく、次の要求が確認より先に実行されるのも防げます。

<details>

<summary>なぜモデルは突然、前に言った要求を忘れてしまうのですか？</summary>

まず、対話が長すぎないか、モデルを切り替えていないか、重要な要求が一度しか出ていないかを確認してください。安定したルールは現在のタスクの明確な指示の中に書き込み、長期的に再利用する必要がある場合は Agent のプロンプトやスキルに任せます。

</details>


---

# 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.cherryai.com.cn/docs/jp/advanced-basic/chat/context-queue.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.
