WeByT3 commited on
Commit
d47ab99
·
verified ·
1 Parent(s): ff8c588

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +2 -3
agent.py CHANGED
@@ -1,5 +1,4 @@
1
  import os
2
- from langchain_google_genai import ChatGoogleGenerativeAI
3
  from langchain_groq import ChatGroq
4
  from langgraph.graph import START, StateGraph, MessagesState
5
  from langgraph.prebuilt import tools_condition
@@ -8,10 +7,10 @@ from langchain_core.messages import SystemMessage, HumanMessage
8
  from tools import *
9
  from typing import TypedDict
10
 
11
- tools = [add, multiply, divide, subtract]
12
 
13
  def build_agent():
14
- llm = ChatGroq(model="qwen-qwq-32b", temperature=0) # ChatGoogleGenerativeAI(model="gemini-2.0-flash", temperature=0)
15
  chat_with_tools = llm.bind_tools(tools)
16
 
17
  def assistant(state: MessagesState):
 
1
  import os
 
2
  from langchain_groq import ChatGroq
3
  from langgraph.graph import START, StateGraph, MessagesState
4
  from langgraph.prebuilt import tools_condition
 
7
  from tools import *
8
  from typing import TypedDict
9
 
10
+ tools = [add, multiply, divide, subtract, wikipedia_search_tool]
11
 
12
  def build_agent():
13
+ llm = ChatGroq(model="qwen-qwq-32b", temperature=0)
14
  chat_with_tools = llm.bind_tools(tools)
15
 
16
  def assistant(state: MessagesState):