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

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.