nerdexam
DatabricksDatabricks

GENERATIVE-AI-ENGINEER-ASSOCIATE · Question #39

GENERATIVE-AI-ENGINEER-ASSOCIATE Question #39: Real Exam Question with Answer & Explanation

The correct answer is B: 1. Define or import the tools 2. Define the agent 3. Initialize the agent with ReAct, the LLM, and. The correct flow is to first define or import the tools, then define the agent, and finally initialize the agent by combining the ReAct framework, the LLM, and the tools. This setup enables the main orchestrator LLM to autonomously decide which tools to call based on the prompt.

Building Generative AI Agents

Question

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?

Options

  • A1. Define or import the tools 2. Add tools and LLM to the agent 3. Create the ReAct agent
  • B1. Define or import the tools 2. Define the agent 3. Initialize the agent with ReAct, the LLM, and
  • C1. Define the tools 2. Load each tool into a separate agent 3. Instruct the LLM to use ReAct to call
  • D1. Define the tools inside the agents 2. Load the agents into the LLM 3. Instruct the LLM to use

Explanation

The correct flow is to first define or import the tools, then define the agent, and finally initialize the agent by combining the ReAct framework, the LLM, and the tools. This setup enables the main orchestrator LLM to autonomously decide which tools to call based on the prompt.

Topics

#LangGraph#Agentic AI#LLM Tools#ReAct

Community Discussion

No community discussion yet for this question.

Full GENERATIVE-AI-ENGINEER-ASSOCIATE PracticeBrowse All GENERATIVE-AI-ENGINEER-ASSOCIATE Questions