amatsarski commited on
Commit
71299d1
·
verified ·
1 Parent(s): 9b40678

Update agents/agent_builder

Browse files
Files changed (1) hide show
  1. agents/agent_builder +4 -0
agents/agent_builder CHANGED
@@ -1,4 +1,8 @@
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."""
 
1
  from langchain.agents import AgentExecutor, create_tool_calling_agent
2
+ from langchain.prompts import ChatPromptTemplate, MessagesPlaceholder
3
+ from langchain_openai import ChatOpenAI
4
+ from langgraph.graph import StateGraph, END
5
+ from typing import TypedDict, List, Optional, Dict, Any
6
 
7
  def build_agent(llm, tools, system_instructions: str) -> AgentExecutor:
8
  """Create a tool-calling agent with a focused system prompt."""