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
From the course: Level up LLM applications development with LangChain and OpenAI
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
-
-
-
-
-
-
-
-
-
-
(Locked)
Using agents to perform actions in chains1m 36s
-
(Locked)
Define tools5m 37s
-
(Locked)
Select the perfect prompt1m 12s
-
(Locked)
Bind tools and create agent2m 19s
-
(Locked)
Create and run the agent executor4m 41s
-
(Locked)
Challenge: Create a multitask agent5m 31s
-
(Locked)
Solution: Define tools and functions6m 9s
-
(Locked)
-
-
-