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.

Bind tools and create agent

Bind tools and create agent

- [Instructor] So after properly defining tools and create the prompts that we use to then execute the proper tools, so the multiple tools for one agent, we need to create this agent. So we can use the tools that allow the language models to request more than one function. And so to set up an OpenAI function's agents, we're going to use this special syntax. So to first bind the tools, that's going to be language models with the tools. And then right after that we can create the agents. So let's begin with this first part, which is to bind the tools to the language models. And I'm going to put an s, because it could be multiple tools, more than one. And so next we see how to create the agents in order to put the pieces together. And we're going to include here you'll see an intermediate step to know which action to execute. So first, we're going to provide with an input. And so next, using this format to OpenAI tools messages, it's going to then provide with this intermediate step to…

Contents