CodeQuest101AI Agents & Tool CallingChapter Studio
AI Agents & Tool Calling

7 chapters

Advanced RAG

Chapter 04 / 07

Keep track of what the agent can see.

Separate current context, conversation state, and information explicitly saved for later retrieval.

Visible context is the working information

The decision process can use only the information included in its current context. A tool result stored by the application or displayed in an old transcript does not help unless it is made available to the next decision.

For ‘Can I return it?’, a previous order observation may identify ‘it’. Compare keeping that observation with sending only the latest turn. This simulation makes the included context visible instead of giving the decision policy hidden access to the sample shop.