Unit 5 - Practice Quiz

INT347 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 What is an intelligent agent in the context of software bots?

Agent fundamentals Easy
A. A database used to store large amounts of unstructured text
B. An autonomous entity that perceives its environment and takes actions to achieve specific goals
C. A static, unchanging script that cannot make decisions
D. A physical hardware component of a computer's motherboard

2 Through what mechanism does an intelligent agent typically interact with its environment?

Agent fundamentals Easy
A. By designing new hardware interfaces
B. Through sensors to perceive and actuators (or APIs) to act
C. Through static database queries only
D. By randomly compiling new source code

3 What is the primary role of an 'assistive' AI agent?

Agent types as assistive, augmented Easy
A. To function entirely offline without any human interaction
B. To shut down computer networks when idle
C. To completely replace human workers in manufacturing plants
D. To help a human user perform tasks by providing support or information

4 Augmented agents are primarily designed to:

Agent types as assistive, augmented Easy
A. Perform tasks with zero human oversight forever
B. Decrease human productivity by creating bottlenecks
C. Format the user's hard drive automatically
D. Enhance human capabilities and improve decision-making

5 Which characteristic describes an agent's ability to operate and make decisions without direct human intervention?

Agent characteristics such as autonomy, reactivity, goal-oriented behaviour Easy
A. Autonomy
B. Redundancy
C. Reactivity
D. Transparency

6 When an agent responds in a timely manner to changes occurring in its environment, it is demonstrating:

Agent characteristics such as autonomy, reactivity, goal-oriented behaviour Easy
A. Rigidity
B. Latency
C. Stubbornness
D. Reactivity

7 An agent that continuously takes actions calculated to move it closer to a specific desired outcome is exhibiting:

Agent characteristics such as autonomy, reactivity, goal-oriented behaviour Easy
A. Random execution
B. Reactive failure
C. Goal-oriented behaviour
D. Idle processing

8 In an AI Agent node architecture, what typically acts as the 'brain' that processes inputs and decides on the next action?

AI Agent node architecture Easy
A. The long-term database storage
B. The graphical user interface
C. The Large Language Model (LLM) or core decision engine
D. The external network cable

9 What is the first step in an agent's perception-action loop?

Perception-action loops Easy
A. Shutting down the operating system
B. Perceiving data or observing the environment
C. Formatting its own memory
D. Executing a final action

10 In the perception-action loop, after an agent processes perceived information and decides what to do, what is the final step?

Perception-action loops Easy
A. Deleting its short-term memory
B. Taking an action in the environment
C. Asking the user for a new password
D. Going into a sleep state

11 In the context of AI agents, what does 'function calling' allow the agent to do?

Function calling Easy
A. Request the execution of specific predefined programming functions or APIs
B. Call a human operator on a physical telephone
C. Physically click buttons on a user's mouse
D. Write and compile its own operating system from scratch

12 Why do intelligent agents integrate with external tools (like calculators, web browsers, or databases)?

Tool integration fundamentals Easy
A. To make the user interface more colorful
B. To slow down their processing speed intentionally
C. To expand their capabilities beyond their base training data
D. To increase their internal file size on the hard drive

13 What is the primary purpose of maintaining 'conversation history' in an agent's memory?

Memory systems as short-term context, conversation history Easy
A. To automatically delete old files on the host machine
B. To permanently store a copy of the entire internet
C. To track the physical temperature of the computer hardware
D. To remember what was discussed recently and maintain context during an interaction

14 Short-term context in an agent's memory system is primarily used to:

Memory systems as short-term context, conversation history Easy
A. Keep track of the current ongoing task or conversation session
B. Store the agent's fundamental source code
C. Generate random encryption passwords
D. Archive system logs from ten years ago

15 What is the primary function of a customer support agent?

Task-specific agents as research agents, customer support agents Easy
A. To design physical hardware microchips
B. To write original scientific research papers
C. To compile and deploy software applications
D. To answer user queries, troubleshoot issues, and provide assistance

16 A research agent is specifically optimized to:

Task-specific agents as research agents, customer support agents Easy
A. Drive physical autonomous vehicles
B. Gather, analyze, and summarize information on specific topics
C. Process customer refunds and billing
D. Fix broken household appliances

17 What is a key difference between an autonomous agent and a traditional workflow?

Agent vs workflow comparison Easy
A. Agents cannot use external tools, but workflows can
B. Workflows are highly unpredictable, whereas agents follow rigid steps
C. Agents dynamically decide their path based on goals, whereas workflows follow a strict, predefined set of rules
D. Workflows are capable of independent thought, whereas agents are not

18 Which of the following is a common agent workflow design pattern where a primary agent decides which specialized sub-agent should handle a specific task?

Agent workflow design patterns Easy
A. Garbage collection
B. Endless looping
C. Code compilation
D. Routing

19 If an agent attempts to use a web search tool and the tool fails, what is a standard error management strategy?

Agent error management Easy
A. Sending a physical letter to the tool's creator
B. Deleting the agent's core source code immediately
C. Intentionally crashing the entire operating system
D. Logging the error, informing the user, or retrying with a fallback method

20 'Graceful degradation' in agent error management refers to:

Agent error management Easy
A. The agent purposefully deleting its own memory when confused
B. The agent continuing to operate with reduced functionality rather than completely crashing
C. The hardware slowly breaking down over time due to wear and tear
D. The agent insulting the user when an error occurs

21 A software agent is deployed to monitor network traffic and flag unusual spikes. Which of the following best describes why this system is classified as an 'agent' rather than a standard script?

Agent fundamentals Medium
A. It operates continuously and interacts with its environment to achieve a specific objective.
B. It uses a static threshold value to determine if a spike has occurred.
C. It requires manual execution every time a network spike occurs.
D. It stores all network logs in a centralized database without processing them.

22 A coding agent suggests auto-completions as a developer types, but relies entirely on the developer to accept or reject the code. Meanwhile, another agent autonomously refactors entire codebases and submits pull requests. How are these two agents classified respectively?

Agent types as assistive, augmented Medium
A. Augmented; Assistive
B. Reactive; Goal-oriented
C. Goal-oriented; Reactive
D. Assistive; Augmented

23 A trading bot is programmed to maximize profit by the end of the day. Suddenly, the stock market crashes, and the bot immediately halts all purchases to prevent losses before recalculating its strategy. Which two agent characteristics are primarily demonstrated here?

Agent characteristics such as autonomy, reactivity, goal-oriented behaviour Medium
A. Autonomy and static planning
B. Reactivity and goal-oriented behaviour
C. Reactivity and strict workflow adherence
D. Goal-oriented behaviour and manual execution

24 Which of the following scenarios best illustrates the 'autonomy' characteristic of an intelligent agent?

Agent characteristics such as autonomy, reactivity, goal-oriented behaviour Medium
A. A user manually triggering an API call via a graphical interface.
B. A chatbot resolving a customer complaint by independently generating a refund sequence without human approval.
C. An algorithm sorting a list of numbers based on predefined parameters.
D. A script running at 5 PM daily to back up a database.

25 In an AI Agent node architecture, what is the primary role of the 'Reasoning Engine' or 'Controller' node?

AI Agent node architecture Medium
A. To translate the environment's raw data into human-readable text.
B. To store long-term vector embeddings of past conversations.
C. To execute external API calls directly to third-party services.
D. To process inputs, determine the next best action, and orchestrate the agent's tools.

26 During a perception-action loop, an agent parses an email, decides it is spam, and moves it to the junk folder. If the 'perception' phase is parsing the email, what constitutes the 'action' phase in this specific loop?

Perception-action loops Medium
A. Determining that the email contains malicious links.
B. Updating the internal spam-filter model.
C. Moving the email to the junk folder.
D. Waiting for the next email to arrive.

27 Why is the concept of a 'loop' critical in agent design rather than a simple linear execution path?

Perception-action loops Medium
A. Because loops ensure that an agent never terminates its execution process.
B. Because agents must continuously re-evaluate the environment to handle dynamic changes after taking an action.
C. Because loops prevent the agent from consuming too much memory.
D. Because LLMs can only process repeated recursive prompts.

28 When designing an LLM-based agent that utilizes function calling to check weather data, what exactly does the LLM generate to trigger the function?

Function calling Medium
A. It generates a direct HTTP GET request to the weather API.
B. It generates a structured JSON object containing the function name and the required arguments.
C. It outputs a natural language sentence asking the user to run the function.
D. It executes binary code on the host machine to invoke the tool.

29 An agent is equipped with a get_stock_price function. The user asks, 'What is the weather in Tokyo?' How should a properly configured function-calling agent respond?

Function calling Medium
A. It should call get_stock_price with null arguments.
B. It should crash due to a missing tool mapping.
C. It should recognize no relevant tools are available and respond using its base knowledge or state its limitation.
D. It should hallucinate a stock ticker for 'Tokyo Weather' and call get_stock_price.

30 When integrating an external calculator tool into an agent, what is the most crucial information the developer must provide to the agent to ensure accurate tool usage?

Tool integration fundamentals Medium
A. The memory address where the calculator tool is stored.
B. A clear description of what the tool does and the exact schema of its inputs.
C. The source code of the calculator tool.
D. The precise execution time the tool will take.

31 An agent needs to access a secure database via a tool. Where should the API keys and authentication logic reside?

Tool integration fundamentals Medium
A. Inside the system prompt of the LLM so it can pass the key in natural language.
B. In the application code that executes the tool, hidden from the LLM's context.
C. Inside the user's prompt so the agent learns it dynamically.
D. In the short-term memory system of the agent.

32 Which of the following is a direct consequence of an agent relying solely on a rolling window of conversation history for its short-term context?

Memory systems as short-term context, conversation history Medium
A. The agent may 'forget' important instructions given at the beginning of a very long session.
B. The agent will experience decreased latency as the conversation grows infinitely.
C. The agent will perfectly remember the user's first prompt from three years ago.
D. The agent will automatically store all inputs into a vector database.

33 To manage context limits in a conversational agent, a developer implements a summarization technique. At what stage should this summarization typically occur?

Memory systems as short-term context, conversation history Medium
A. Before every single user message is sent to the model.
B. After the session has been permanently deleted.
C. Only when the agent makes an external API call.
D. When the conversation history approaches the maximum token limit of the model's context window.

34 A task-specific research agent is designed to compile a report on recent AI advancements. Which combination of tools is most vital for this specific agent?

Task-specific agents as research agents, customer support agents Medium
A. An image generation tool and a text-to-speech engine.
B. A web search tool, a document scraper, and a summarization tool.
C. A weather API and a calendar scheduling tool.
D. A database write-access tool and a refund processing API.

35 Unlike a general-purpose conversational agent, a customer support agent is highly task-specific. Which design constraint is most appropriate for a customer support agent?

Task-specific agents as research agents, customer support agents Medium
A. It should have unrestricted access to execute code on the user's machine.
B. It should be strictly bounded by policy guidelines and restrict off-topic conversations.
C. It should prioritize debating the user to prove the company's policies are correct.
D. It should generate creative, fictional stories if the user's issue cannot be resolved.

36 When designing an automated pipeline for processing payroll, a developer chooses a standard workflow over an autonomous agent. What is the most likely reason for this choice?

Agent vs workflow comparison Medium
A. Workflows can autonomously decide to give employees random bonuses based on mood.
B. Agents are better at handling rigid, rule-based numeric calculations without LLMs.
C. Workflows offer highly deterministic, predictable, and strictly sequenced execution.
D. Payroll processes require dynamic problem solving and unstructured data interpretation.

37 In the 'Evaluator-Optimizer' agent design pattern, how do the two components interact?

Agent workflow design patterns Medium
A. The Optimizer generates an output, and the Evaluator reviews it to provide feedback for the Optimizer to improve it in a loop.
B. They run entirely independently and return two separate answers to the user simultaneously.
C. The Evaluator permanently deletes the Optimizer's code if an error is detected.
D. The Evaluator routes the user to the Optimizer only if the user is a premium subscriber.

38 An enterprise employs a 'Router' design pattern for its AI system. A user asks for technical troubleshooting. What is the primary function of the routing agent?

Agent workflow design patterns Medium
A. To generate an image based on the text of the user's query.
B. To classify the query and forward it to a specialized technical support sub-agent.
C. To solve the technical issue directly using its own generic knowledge.
D. To evaluate the user's grammar before answering the question.

39 An agent attempts to call an external API, but the API returns a '429 Too Many Requests' error. What is the most robust error management strategy the agent's architecture should employ?

Agent error management Medium
A. Delete the tool from the agent's registry permanently.
B. Implement an automatic retry mechanism with exponential backoff and feed the error state back to the agent.
C. Immediately crash the application and display the raw JSON error to the user.
D. Ignore the error and let the agent hallucinate the API's response.

40 To mitigate the risk of an agent repeatedly failing in a continuous loop when a tool is broken, which mechanism is best introduced into the perception-action loop?

Agent error management Medium
A. A maximum iteration limit (Max Steps) that halts the agent after a set number of actions.
B. Increasing the LLM's temperature parameter to 1.0 to encourage creativity.
C. Removing the perception phase so the agent stops seeing the error.
D. Allowing the agent to modify the source code of the broken tool.

41 In an algorithmic trading agent, a sudden market crash triggers a hard-coded stop-loss protocol, overriding the agent's long-term portfolio optimization objective. Which conflict in agent characteristics does this scenario most accurately illustrate, and how is it typically resolved in architecture?

Agent characteristics such as autonomy, reactivity, goal-oriented behaviour Hard
A. Reactivity superseding goal-oriented behavior, resolved via subsumption architecture.
B. Proactiveness conflicting with goal-oriented behavior, resolved via finite state machines.
C. Autonomy overriding reactivity, resolved via a belief-desire-intention (BDI) framework.
D. Goal-oriented behavior nullifying autonomy, resolved via utility-based functions.

42 When designing an AI Agent node architecture to process high-throughput, asynchronous events, which component combination best prevents blocking the central LLM orchestration node while maintaining state consistency?

AI Agent node architecture Hard
A. A synchronous REST API directly querying the LLM node.
B. A message broker queue coupled with an event-sourced state machine node.
C. A single-threaded polling mechanism within the LLM's primary execution loop.
D. A stateless routing node that bypasses memory entirely.

43 An agent operating in a partially observable environment enters an infinite perception-action loop because its sensory input does not reflect the changes caused by its actions. Which of the following introduces the most robust architectural fix for this specific failure mode?

Perception-action loops Hard
A. Replacing the LLM with a deterministic rule-based engine.
B. Implementing an episodic memory check that penalizes cyclical state-action pairs using a decay factor.
C. Reducing the agent's action space to only non-state-mutating actions.
D. Increasing the frequency of the perception polling cycle.

44 An LLM-based agent uses function calling to interact with a database. It repeatedly hallucinates required parameters that do not exist in the JSON Schema provided in the system prompt. What is the most effective programmatic intervention to correct this at runtime without retraining the model?

Function calling Hard
A. Switching the LLM's sampling temperature to a higher value to encourage creative parameter guessing.
B. Truncating the hallucinated parameters from the payload and executing the function anyway.
C. Catching the schema validation error, returning the exact error string as a simulated tool observation, and forcing the LLM to regenerate the call.
D. Converting the database to accept unstructured natural language queries instead of structured function calls.

45 When integrating a stateful external tool (such as a headless browser) with a stateless LLM agent, a critical challenge is maintaining the session context across multiple tool invocations. Which design pattern effectively bridges this gap while minimizing the context window overhead?

Tool integration fundamentals Hard
A. Storing the tool's session state externally and only passing a specialized, condensed summary or pointer (e.g., an element bounding box map) back to the agent.
B. Using a standalone memory node that bypasses the LLM and interacts directly with the user.
C. Serializing the entire browser session state into JSON and appending it to the agent's prompt on every turn.
D. Forcing the agent to re-authenticate and re-navigate from the homepage for every single action.

46 In an agentic system utilizing a sliding window for short-term context, crucial initial instructions are being pushed out of the context window during long conversations. Which architectural pattern best resolves this while maintaining strict context size limits?

Memory systems as short-term context, conversation history Hard
A. A dual-memory architecture combining a static system prompt pinned to the top of the context with a dynamic sliding window for recent conversation history.
B. Converting all conversation history into semantic vector embeddings and discarding the raw text entirely.
C. Increasing the maximum token limit of the underlying LLM to accommodate the entire conversation indefinitely.
D. Aggressively compressing every user input using a secondary, smaller LLM before adding it to the context window.

47 A financial institution needs a system to process loan applications. The process involves strict regulatory compliance checks, deterministic math calculations, and fixed approval routing. Why is a standard workflow engine vastly superior to an autonomous AI agent for this specific use case?

Agent vs workflow comparison Hard
A. Agents require constant human-in-the-loop oversight, whereas workflows dynamically adapt to edge cases without human intervention.
B. Workflow engines can utilize function calling, whereas autonomous agents rely entirely on zero-shot natural language generation.
C. Autonomous agents are incapable of performing math calculations, making them useless for financial applications.
D. Workflows guarantee deterministic execution paths and absolute auditability, whereas autonomous agents introduce probabilistic routing and non-deterministic reasoning that pose regulatory risks.

48 The ReAct (Reasoning and Acting) design pattern is highly effective but can suffer from cascading failures if a single tool returns an ambiguous error. How does the Plan-and-Solve (Plan-and-Execute) pattern structurally mitigate this specific vulnerability?

Agent workflow design patterns Hard
A. By decoupling the high-level task decomposition from the low-level execution, allowing the agent to evaluate the entire sequence of steps before committing to individual tool calls.
B. By utilizing a recursive loop that infinitely retries the same action until the ambiguous error resolves itself.
C. By completely eliminating the reasoning phase and relying strictly on predetermined heuristic algorithms.
D. By executing all tools simultaneously in parallel to ensure at least one succeeds, regardless of errors.

49 An agent encounters an API rate limit (HTTP 429) during a multi-step data extraction process. To prevent systemic failure and context bloat, what is the most optimal error management strategy implemented at the agent orchestration layer?

Agent error management Hard
A. Terminating the entire agent run immediately to prevent any further API violations.
B. Prompting the user to manually bypass the rate limit by inputting their own API key.
C. Immediately returning the raw 429 error stack trace to the LLM so it can hallucinate a different data source.
D. Intercepting the 429 error at the tool execution layer, implementing an exponential backoff retry mechanism automatically, and only returning to the LLM if the maximum retries fail.

50 An augmented agent is deployed alongside a human software engineer. Unlike a purely assistive agent (e.g., a standard chat copilot), the augmented agent autonomously monitors background CI/CD pipelines, identifies build failures, and drafts pull requests to fix them, pausing only for human approval. What defines the critical boundary between assistive and augmented in this scenario?

Agent types as assistive, augmented Hard
A. The augmented agent possesses the autonomy to initiate tasks and modify the environment asynchronously, whereas the assistive agent operates strictly via synchronous user prompts.
B. The augmented agent does not use an LLM, whereas the assistive agent relies entirely on generative AI.
C. The augmented agent operates solely in the cloud, while the assistive agent operates locally on the user's machine.
D. The augmented agent is restricted to read-only access, while the assistive agent has full write access.

51 A task-specific research agent is designed to synthesize academic papers. When confronted with two highly cited papers presenting contradictory empirical results, what mechanism ensures the agent avoids generating a confidently incorrect, one-sided summary (hallucination bias)?

Task-specific agents as research agents, customer support agents Hard
A. Using a strict vector-similarity search that prioritizes the paper published most recently, discarding the older one.
B. Lowering the LLM's temperature to 0.0, which guarantees it will automatically select the objectively correct scientific fact.
C. Instructing the agent to calculate the average of the statistical values presented in both papers to create a consensus finding.
D. Implementing a multi-perspective synthesis prompt that forces the agent to extract and contrast the distinct methodologies and boundary conditions of both sources explicitly.

52 In a conversational memory system, as the dialogue history grows, relying solely on exact token truncation leads to a loss of core entity context. Which strategy leverages vector databases to provide the LLM with relevant historical context without violating short-term token limits?

Memory systems as short-term context, conversation history Hard
A. Using Retrieval-Augmented Generation (RAG) to dynamically fetch historically similar conversation turns based on the semantic embedding of the current user query.
B. Replacing the LLM's attention mechanism with a recurrent neural network (RNN) layer to naturally forget older tokens.
C. Concatenating all past user inputs into a single long string and compressing it using standard GZIP before passing it to the LLM.
D. Storing the conversation history in a relational database and randomly sampling five previous messages to append to the prompt.

53 The concept of 'bounded rationality' in intelligent agents suggests that an agent's decision-making is limited by computational power, time, and available information. In the context of LLM agents, which of the following is a direct manifestation of bounded rationality?

Agent fundamentals Hard
A. The agent refusing to execute a command because it violates its alignment safety guidelines.
B. The agent failing to find the optimal path in a massive state space due to context window limitations and token generation constraints.
C. The agent achieving artificial general intelligence (AGI) by circumventing hardware limitations via recursive self-improvement.
D. The agent inherently understanding the complete topological structure of the internet through foundational pre-training.

54 Consider an LLM instructed to call a function transfer_funds(source, destination, amount). The user says, 'Send $50 to Alice.' The LLM triggers the function but leaves the source parameter null because the user didn't specify it. What is the most robust architectural approach to handle this missing slot?

Function calling Hard
A. Forcing the database to accept null values for source accounts and handling the error in the financial ledger.
B. Disabling function calling entirely and relying on regular expressions to parse intent.
C. Implementing a middleware validation layer that intercepts the null parameter and programmatically returns a prompt instructing the LLM to ask the user for the missing source account.
D. Setting a default source account in the function definition so the transaction always succeeds without bothering the user.

55 In a graph-based AI Agent node architecture, what is the primary computational advantage of structuring the agent's reasoning process as a Directed Cyclic Graph (DCG) rather than a linear chain?

AI Agent node architecture Hard
A. It completely eliminates the need for maintaining an internal state dictionary, as graphs are inherently stateless.
B. It enables state-dependent, conditional looping, allowing the agent to repeatedly evaluate and refine its output (e.g., self-correction) until a specific termination criteria is met.
C. It allows the agent to bypass the perception-action loop entirely by executing all nodes simultaneously.
D. It ensures that the LLM is only invoked exactly once, drastically reducing API costs and latency.

56 When integrating arbitrary code execution tools (e.g., Python REPL) into an agent, security is a paramount concern. Which of the following isolation strategies provides the strongest security guarantee while still allowing the agent to perform data analysis tasks?

Tool integration fundamentals Hard
A. Executing the agent-generated code inside an ephemeral, network-isolated Docker container (sandbox) with strictly mounted, read-only data volumes.
B. Requiring the agent to write code in a proprietary, Turing-incomplete language created specifically for the platform.
C. Running the code directly on the host machine but using an LLM prompt to strictly forbid the agent from writing malicious scripts.
D. Using a standard regular expression filter to block the import os and import sys statements from the generated Python code.

57 In a multi-agent workflow utilizing the 'Supervisor' design pattern, what is the specific role of the Supervisor node when resolving a complex, multi-domain user query?

Agent workflow design patterns Hard
A. It decomposes the query, routes sub-tasks to specialized worker agents, evaluates their returned outputs, and synthesizes the final response.
B. It serves as the long-term memory database where all worker agents store their vector embeddings.
C. It intercepts the user query and attempts to answer it using its own zero-shot capabilities, only calling worker agents if it experiences a critical failure.
D. It acts merely as a load balancer, randomly assigning incoming queries to any available agent to optimize throughput.

58 A customer support agent is handling a return request when the user suddenly asks, 'By the way, do you sell hiking boots?' and then says, 'Anyway, back to my return.' How should the agent's architecture handle this sudden intent switch without losing the state of the return process?

Task-specific agents as research agents, customer support agents Hard
A. By opening a completely new websocket connection for the new intent, effectively forcing the user to converse with two separate agents simultaneously.
B. By utilizing a hierarchical state machine (or sub-graphs) where the product inquiry is treated as a nested, temporary execution branch that resolves before popping back to the retained return context.
C. By discarding the return process entirely, answering the boot question, and forcing the user to restart the return from scratch.
D. By appending a strict system prompt instructing the agent to actively ignore any user input that does not relate directly to returns.

59 You are tasked with building a system to perform Exploratory Data Analysis (EDA) on newly acquired datasets where the schema, data types, and required statistical tests are unknown beforehand. Why is an autonomous agent architecture more suitable than a traditional workflow architecture for this scenario?

Agent vs workflow comparison Hard
A. Agents inherently guarantee mathematically flawless analysis, while workflows are prone to human programming errors.
B. Workflows cannot interact with databases, whereas agents possess native SQL query execution capabilities built into their neural networks.
C. Agents process data infinitely faster than workflows because they do not rely on standard computational resources.
D. Agents can dynamically generate and execute code, observe the outputs, and iteratively decide on the next analytical steps, whereas workflows require predefined paths for every possible data variation.

60 In a heavily delayed perception-action loop, an agent executes an action (e.g., launching an advertising campaign) but only receives environmental feedback (e.g., conversion metrics) hours later. Which mechanism is essential to prevent the agent from thrashing (rapidly executing contradictory actions) during the delay period?

Perception-action loops Hard
A. Hardcoding the LLM's system prompt to assume the action was successful immediately upon execution.
B. Implementing an asynchronous observation buffer coupled with a 'wait-and-monitor' internal state that blocks further related actions until the expected feedback arrives.
C. Forcing the agent to execute a continuous stream of random actions until the feedback successfully registers.
D. Switching the agent's architecture from a neural network to a Markov Decision Process that ignores historical states.