The easiest way to integrate Gemini with LangChain is to set the former as the language model of your Agent Builder. Here’s a short tutorial on how to do it:
- Inside the LangChain's Agent Builder dashboard, go to the chat box and click the 'Model' selector.
- Find and choose 'Gemini 3.1 Pro' from the list of options.
- Finally, Gemini will be integrated with LangChain.



