講座 › 分野5 コンテキスト管理と信頼性
5.1 会話コンテキストの管理
配点 2.5%Conversation context
長いやり取りでは、金額や日付が曖昧な要約に溶けやすい。重要な事実は別枠で持ち、ツールの出力は必要な項目に絞る。
未読
コンテキストは有限で、長いほど散漫になる 読了

コンテキストのトークンが増えるほど、モデルが内容を正確に思い出す力は落ちます。目標は、望む結果の可能性を最大にする、情報量の多い最小のトークンの集まりを見つけることです。
出典:Effective context engineering for AI agents
as the number of tokens in the context window increases, the model’s ability to accurately recall information from that context decreases.https://www.anthropic.com/research/effective-context-engineering-for-a…(取得 2026-11-20)
出典:Effective context engineering for AI agents
good context engineering means finding the smallest possible set of high-signal tokens that maximize the likelihood of some desired outcome.https://www.anthropic.com/research/effective-context-engineering-for-a…(取得 2026-11-20)
段階的な要約の落とし穴 読了

要約を重ねるうちに、金額、割合、日付、利用者が述べた期待のような具体的な値が、曖昧な言い方に変わってしまいます。圧縮のしすぎは、あとで重要になる文脈の損失につながります。
出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
Progressive summarization risks: condensing numerical values, percentages, dates, andhttps://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)
出典:Effective context engineering for AI agents
overly aggressive compaction can result in the loss of subtle but critical context whose importance only becomes apparent later.https://www.anthropic.com/research/effective-context-engineering-for-a…(取得 2026-11-20)
出典:Effective context engineering for AI agents
Compaction is the practice of taking a conversation nearing the context window limit, summarizing its contents, and reinitiating a new context window with the summary.https://www.anthropic.com/research/effective-context-engineering-for-a…(取得 2026-11-20)
事実は、要約の外の「事案の事実」枠に 読了

金額、日付、注文番号、状態のような取引の事実を、毎回のプロンプトに入れる固定の枠として持ちます。要約された履歴の外に置くので、要約で値が崩れません。複数の用件がある場合は、用件ごとの構造化したデータを別の層に保持します。
出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
Extracting transactional facts (amounts, dates, order numbers, statuses) into a persistent "case facts" block included in each prompt, outside summarized historyhttps://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)
ツールの出力は、必要な項目だけに絞る 読了

注文の照会で40以上の項目が返っても、使うのは5つだけ、ということがあります。不要な項目は、文脈に積もる前に削ぎ落とします。古いツール結果の消去も、軽い圧縮として使えます。
出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
How tool results accumulate in context and consume tokens disproportionately to their relevance (e.g., 40+ fields per order lookup when only 5 are relevant)https://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)
出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
Trimming verbose tool outputs to only relevant fields before they accumulate in context (e.g., keeping only return-relevant fields from order lookups)https://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)
出典:Context editing
Tool result clearing: Best for agentic workflows with heavy tool use where old tool results are no longer neededhttps://platform.claude.com/docs/en/build-with-claude/context-editing.…(取得 2026-11-20)
長い入力の「真ん中」は抜けやすい 読了

長い入力では、先頭と末尾はよく処理されますが、真ん中の内容は抜けやすくなります。重要な要点を入力の冒頭に置き、詳細は見出しをつけて整理します。
出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
The "lost in the middle" effect: models reliably process information at the beginning and end of long inputs but may omit findings from middle sectionshttps://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)
出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
Placing key findings summaries at the beginning of aggregated inputs and organizing detailed results with explicit section headers to mitigate position effectshttps://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)
下流の担当に渡すデータの形 読了

下流の担当の文脈に余裕がないときは、上流の担当に、長い文章や推論の経過ではなく、事実・引用・関連度のような構造化したデータを返させます。日付や出所などのメタデータも含めさせます。会話の履歴は、省略せず、全体を毎回送ります。
出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
Modifying upstream agents to return structured data (key facts, citations, relevance scores) instead of verbose content and reasoning chains when downstream agents have limited context budgetshttps://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)
出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
Requiring subagents to include metadata (dates, source locations, methodological context) in structured outputs to support accurate downstream synthesishttps://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)
出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
The importance of passing complete conversation history in subsequent API requests to maintain conversational coherencehttps://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)
試験のポイント
- 金額・日付・番号は、要約の外の固定の枠に持つ。
出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
Extracting transactional facts (amounts, dates, order numbers, statuses) into a persistent "case facts" block included in each prompt, outside summarized history
https://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20) - ツールの出力は、使う項目に絞ってから文脈に入れる。
出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
Trimming verbose tool outputs to only relevant fields before they accumulate in context (e.g., keeping only return-relevant fields from order lookups)
https://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20) - 重要な要点は冒頭に置く。長い入力の真ん中は抜けやすい。
出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
The "lost in the middle" effect: models reliably process information at the beginning and end of long inputs but may omit findings from middle sections
https://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)