amatsarski commited on
Commit
9b40678
·
verified ·
1 Parent(s): 235279c

Update agents/agent_builder

Browse files
Files changed (1) hide show
  1. agents/agent_builder +2 -0
agents/agent_builder CHANGED
@@ -1,3 +1,5 @@
 
 
1
  def build_agent(llm, tools, system_instructions: str) -> AgentExecutor:
2
  """Create a tool-calling agent with a focused system prompt."""
3
  prompt = ChatPromptTemplate.from_messages(
 
1
+ from langchain.agents import AgentExecutor, create_tool_calling_agent
2
+
3
  def build_agent(llm, tools, system_instructions: str) -> AgentExecutor:
4
  """Create a tool-calling agent with a focused system prompt."""
5
  prompt = ChatPromptTemplate.from_messages(