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.

Select the perfect prompt

Select the perfect prompt

- [Instructor] Now we need to configure the agent's behavior and we're going to use OpenAI Function Calling to fine tune the agent for tool usage. Meaning that we are not going to give any specific instructions other than this prompt that's going to help the agents to make decisions and predictions based on the user query. So the agents is going to be capable of making predictions and making decisions based on the user query. So we're going to copy the same prompt example and on this as well that we use here ChatPromptTemplates and messages placeholder. And you just need to make sure that this is added to the scope. And then you're all good. And this prompt is going to accept two input variables. First input, which will be for the user query and this variable_name="agent_scratchpad", which is going to be used for the function, the purpose of every tool. All right, so that's going to allow to move on to the next part. Now we have defined the tools. We have created the perfect prompts…

Contents