QuestionQ89

VerifiedApplication Development

A Generative AI Engineer uses LangGraph to define multiple tools within a single agentic application. They want the main orchestrator LLM to independently determine which tools are most appropriate to call for a given prompt. To accomplish this, they must identify the general code flow.

Which sequence accomplishes this?

Explanation

A ReAct agent is initialized with an LLM and a collection of defined or imported tools. The model is thereby given the tools it may call and can select the appropriate one during the agent loop. LangGraph’s current documentation shows the equivalent pattern: define tools and provide them with the model when creating the agent.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!