Skip to lesson

NVIDIANVIDIA-Certified Professional: Agentic AI2026-100 Prerequisites

Separate instructions from observations and state

Completed by the knowledge check

Learning objective

Identify the roles of instructions, prompts, tools, memory, observations, and environment state.

Core idea

An agent operates on several kinds of information that can appear together in a model request. Instructions specify desired behavior. A prompt is the assembled input for a model call. Tools expose operations. Observations report results. Memory retains information across interactions. Environment state is the external situation those operations inspect or change.

Keeping these roles separate helps you identify the owner of a failure. A remembered inventory count and the warehouse’s actual inventory can disagree without either being an instruction or a model parameter.

How it works

Instructions define a role, constraints, and task guidance. NeMo Agent Toolkit’s ReAct agent exposes system_prompt for replacing its system prompt and additional_instructions for adding guidance. Its required prompt format still applies when you customize it. See 2.1.1 for constructing system prompts.

Prompts package instructions with the task and selected context for one inference call. History, retrieved material, and tool results can contribute to this input. Supplying an observation in a prompt makes it available to the model; it does not make that observation an authoritative instruction. See 2.1.3 for composing dynamic prompts from validated state.

Tools are callable capabilities with descriptions and inputs. For a ReAct agent, tool_names identifies the configured functions or function groups available for action selection. A tool description explains when to use an operation; the tool implementation performs it. See 2.3.1 for tool definitions.

Observations are the results returned after an action, including failures where the runtime returns them to the agent. The ReAct option pass_tool_call_errors_to_agent controls whether tool-call errors reach the agent or raise an exception. An observation describes what a particular execution returned; it can become stale as the environment changes.

Memory retains selected information for reuse. The toolkit’s memory section configures providers; auto_memory_agent can capture messages and retrieve context around an inner agent. Conversation history, durable preferences, and task knowledge have different purposes. See 1.4.1 for choosing stores, and 1.4.2 for isolation, retention, and invalidation.

Environment state exists outside the model’s account of it: an order’s status, available stock, or a workflow’s completed operations. Recalling a prior tool result does not read that state again. See 5.4.1 for separating execution state from conversational memory and retained task knowledge.

Key distinctions and trade-offs

Retaining more history can preserve useful context, but it also adds input and can preserve obsolete observations. The ReAct agent’s max_history controls retained conversation-message count; that count is not a token limit or a guarantee of freshness.

Treat an instruction, a remembered statement, and a fresh tool result according to their roles. An assistant’s earlier claim that a change succeeded is different from the business service’s recorded change. Memory supports continuity; the external service remains the source for its own state.

Architecture / decision scenario

A retail support assistant recalls an observation of twelve units in stock from a conversation ten minutes earlier. Another channel has since sold ten units. A customer requests five units.

The tempting design reuses the remembered count to avoid a 200-millisecond inventory lookup. The commerce owner requires the inventory service to check availability when processing the order, so the remembered twelve cannot authorize the purchase. The prompt carries the customer’s request, instructions define the assistant’s role, the tool checks inventory, and its two-unit result becomes the observation. Memory can retain the customer’s preference while the commerce service owns stock state.

Common exam traps

  • Treating every string in a prompt as an instruction.
  • Confusing a tool’s description with execution of the tool.
  • Treating conversation history as authoritative external state.
  • Equating a message-count limit with a token budget or retention policy.

What to remember

Label information by what it does: direct, package, act, report, retain, or represent the environment. Prompt context helps the model decide; it does not replace the systems that own business state.

Knowledge check

References