From the course: Level up LLM applications development with LangChain and OpenAI

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

Create and run the agent executor

Create and run the agent executor

- So now to see the agents in action, we're going to need to create the agents and we're going to create actually an agent executor more specifically. So let's go find the instructions here again on the documentation. So at this sections create the agents. And here you just have to make sure that you have agent executor added to the scope. And then we're going to create a first example. Let's go back up to see that we actually have this in scope, excellent. And we're going to run a first example with this. And let's go ahead and define a new function that I'm going to call run agents. And it's going to take an input as a parameter. So actually I'm going to change this to query, like this. And just for the first example, we're going to write here a first question, which is how to secure a MongoDB Atlas cluster. That's going to be the first question that we ever ask to then run the agents and have it execute one tool. And so right below we are going to run it and make sure that we can…

Contents