Spaces:
Runtime error
Runtime error
change
Browse files- real_agent.py +5 -3
real_agent.py
CHANGED
|
@@ -28,12 +28,14 @@ def call_build():
|
|
| 28 |
langfuse_handler = CallbackHandler()
|
| 29 |
|
| 30 |
# Initialize the web search tool
|
| 31 |
-
|
| 32 |
-
|
|
|
|
|
|
|
| 33 |
# Generate the chat interface, including the tools
|
| 34 |
|
| 35 |
chat = ChatOpenAI(model="gpt-4o")
|
| 36 |
-
tools = [guest_info_tool,
|
| 37 |
chat_with_tools = chat.bind_tools(tools)
|
| 38 |
|
| 39 |
# Generate the AgentState and Agent graph
|
|
|
|
| 28 |
langfuse_handler = CallbackHandler()
|
| 29 |
|
| 30 |
# Initialize the web search tool
|
| 31 |
+
search_tool = GoogleSearchTool(provider = "serpapi")
|
| 32 |
+
search_tool.name = "GoogleSearchTool"
|
| 33 |
+
visit_webpage_tool = VisitWebpageTool()
|
| 34 |
+
visit_webpage_tool.name = "VisitWebpageTool"
|
| 35 |
# Generate the chat interface, including the tools
|
| 36 |
|
| 37 |
chat = ChatOpenAI(model="gpt-4o")
|
| 38 |
+
tools = [guest_info_tool, search_tool, hub_stats_tool, visit_webpage_tool, extract_image_text, add, divide, multiply, subtract, calculate_cargo_travel_time]
|
| 39 |
chat_with_tools = chat.bind_tools(tools)
|
| 40 |
|
| 41 |
# Generate the AgentState and Agent graph
|