Spaces:
Runtime error
Runtime error
check
Browse files- real_agent.py +2 -2
real_agent.py
CHANGED
|
@@ -11,7 +11,7 @@ from tools import hub_stats_tool, extract_image_text, add, divide, multiply, sub
|
|
| 11 |
from retriever import guest_info_tool
|
| 12 |
import gradio as gr
|
| 13 |
from langfuse.langchain import CallbackHandler
|
| 14 |
-
from smolagents import VisitWebpageTool, GoogleSearchTool
|
| 15 |
|
| 16 |
|
| 17 |
def call_build():
|
|
@@ -33,7 +33,7 @@ def call_build():
|
|
| 33 |
# Generate the chat interface, including the tools
|
| 34 |
|
| 35 |
chat = ChatOpenAI(model="gpt-4o")
|
| 36 |
-
tools = [guest_info_tool, GoogleSearchTool
|
| 37 |
chat_with_tools = chat.bind_tools(tools)
|
| 38 |
|
| 39 |
# Generate the AgentState and Agent graph
|
|
|
|
| 11 |
from retriever import guest_info_tool
|
| 12 |
import gradio as gr
|
| 13 |
from langfuse.langchain import CallbackHandler
|
| 14 |
+
from smolagents import VisitWebpageTool, GoogleSearchTool, PythonInterpreterTool
|
| 15 |
|
| 16 |
|
| 17 |
def call_build():
|
|
|
|
| 33 |
# Generate the chat interface, including the tools
|
| 34 |
|
| 35 |
chat = ChatOpenAI(model="gpt-4o")
|
| 36 |
+
tools = [guest_info_tool, GoogleSearchTool, hub_stats_tool, VisitWebpageTool, extract_image_text, add, divide, multiply, subtract, calculate_cargo_travel_time]
|
| 37 |
chat_with_tools = chat.bind_tools(tools)
|
| 38 |
|
| 39 |
# Generate the AgentState and Agent graph
|