tu101 commited on
Commit
ec8a648
·
verified ·
1 Parent(s): 42c4e9d
Files changed (1) hide show
  1. real_agent.py +2 -2
real_agent.py CHANGED
@@ -7,7 +7,7 @@ from langgraph.prebuilt import tools_condition
7
  from langchain_huggingface import HuggingFaceEndpoint, ChatHuggingFace
8
  from langchain_openai import ChatOpenAI
9
  import os
10
- from tools import hub_stats_tool, extract_image_text, add, divide, multiply, subtract, calculate_cargo_travel_time, web_search_tool
11
  from retriever import guest_info_tool
12
  import gradio as gr
13
  from langfuse.langchain import CallbackHandler
@@ -35,7 +35,7 @@ def call_build():
35
  # Generate the chat interface, including the tools
36
 
37
  chat = ChatOpenAI(model="gpt-4o")
38
- tools = [guest_info_tool, hub_stats_tool, extract_image_text, add, divide, multiply, subtract, calculate_cargo_travel_time, web_search_tool]
39
  chat_with_tools = chat.bind_tools(tools)
40
 
41
  # Generate the AgentState and Agent graph
 
7
  from langchain_huggingface import HuggingFaceEndpoint, ChatHuggingFace
8
  from langchain_openai import ChatOpenAI
9
  import os
10
+ from tools import hub_stats_tool, extract_image_text, add, divide, multiply, subtract, calculate_cargo_travel_time, web_search_tool, wiki_search_tool, arvix_search_tool
11
  from retriever import guest_info_tool
12
  import gradio as gr
13
  from langfuse.langchain import CallbackHandler
 
35
  # Generate the chat interface, including the tools
36
 
37
  chat = ChatOpenAI(model="gpt-4o")
38
+ tools = [guest_info_tool, hub_stats_tool, extract_image_text, add, divide, multiply, subtract, calculate_cargo_travel_time, web_search_tool, wiki_search_tool, arvix_search_tool]
39
  chat_with_tools = chat.bind_tools(tools)
40
 
41
  # Generate the AgentState and Agent graph