Databricks Certified Generative AI Engineer Associate — Question 87
A Generative AI Engineer is using LangGraph to define multiple tools in a single agentic application. They want to enable the main orchestrator LLM to decide on its own which tools are most appropriate to call for a given prompt. To do this, they must determine the general flow of the code.
Which sequence will do this?
Answer options
- A. 1. Define or import the tools 2. Add tools and LLM to the agent 3. Create the ReAct agent
- B. 1. Define or import the tools 2. Define the agent 3. Initialize the agent with ReAct, the LLM, and the tools
- C. 1. Define the tools 2. Load each tool into a separate agent 3. Instruct the LLM to use ReAct to call the appropriate agent
- D. 1. Define the tools inside the agents 2. Load the agents into the LLM 3. Instruct the LLM to use CoT reasoning to determine the appropriate agent
Correct answer: B
Explanation
The correct answer is B because it outlines the necessary steps: defining or importing the tools, defining the agent, and then initializing the agent with ReAct, the LLM, and the tools, which is essential for the orchestrator's autonomy. Options A, C, and D do not follow the correct sequence for setting up the agentic application as they either skip critical steps or do not adequately prepare the LLM for tool selection.