In this video we will go over a simple modification you can make the chat agent runtime to force call a tool at the start of the agent execution. This is useful when you want to ensure that a tool is always called first.

Notebook (for chat agent): https://github.com/langchain-ai/langgraph/blob/main/examples/chat_agent_executor_with_function_calling/force-calling-a-tool-first.ipynb

Notebook (for agent executor, not covered but relevant): https://github.com/langchain-ai/langgraph/blob/main/examples/agent_executor/force-calling-a-tool-first.ipynb

Add comment

Your email address will not be published. Required fields are marked *

Categories

All Topics