Skip to content

Commit

Permalink
update function name
Browse files Browse the repository at this point in the history
  • Loading branch information
ccurme committed Apr 10, 2024
1 parent 37e72fc commit 8a2e364
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions langchain_benchmarks/tool_usage/agents/tool_using_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
This is useful for agents that follow the standard LangChain tool format.
"""
from langchain.agents import AgentExecutor, create_tools_agent
from langchain.agents import AgentExecutor, create_tool_calling_agent
from langchain_core.language_models import BaseChatModel
from langchain_core.prompts import ChatPromptTemplate
from langchain_core.runnables import Runnable
Expand Down Expand Up @@ -56,7 +56,7 @@ def __call__(self) -> Runnable:
else:
finalized_prompt = self.prompt

agent = create_tools_agent(self.model, env.tools, finalized_prompt)
agent = create_tool_calling_agent(self.model, env.tools, finalized_prompt)

executor = AgentExecutor(
agent=agent,
Expand Down

0 comments on commit 8a2e364

Please sign in to comment.