Spaces:
Runtime error
Runtime error
tols
Browse files- 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,
|
| 11 |
from retriever import guest_info_tool
|
| 12 |
import gradio as gr
|
| 13 |
from langfuse.langchain import CallbackHandler
|
|
@@ -34,7 +34,7 @@ def call_build():
|
|
| 34 |
# Generate the chat interface, including the tools
|
| 35 |
|
| 36 |
chat = ChatOpenAI(model="gpt-4o")
|
| 37 |
-
tools = [guest_info_tool, search_tool, hub_stats_tool, VisitWebpageTool()]
|
| 38 |
chat_with_tools = chat.bind_tools(tools)
|
| 39 |
|
| 40 |
# 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
|
| 11 |
from retriever import guest_info_tool
|
| 12 |
import gradio as gr
|
| 13 |
from langfuse.langchain import CallbackHandler
|
|
|
|
| 34 |
# Generate the chat interface, including the tools
|
| 35 |
|
| 36 |
chat = ChatOpenAI(model="gpt-4o")
|
| 37 |
+
tools = [guest_info_tool, search_tool, hub_stats_tool, VisitWebpageTool(), extract_image_text, add, divide, multiply, subtract, calculate_cargo_travel_time]
|
| 38 |
chat_with_tools = chat.bind_tools(tools)
|
| 39 |
|
| 40 |
# Generate the AgentState and Agent graph
|