Update agent/agent.py
Browse files- agent/agent.py +3 -2
agent/agent.py
CHANGED
|
@@ -2,11 +2,11 @@ import os
|
|
| 2 |
from typing import TypedDict, List, Dict, Any, Optional
|
| 3 |
from langchain_google_genai import ChatGoogleGenerativeAI
|
| 4 |
from langchain_core.messages import AnyMessage, SystemMessage, HumanMessage, AIMessage
|
|
|
|
| 5 |
from langgraph.graph import START, StateGraph
|
| 6 |
from langgraph.prebuilt import ToolNode, tools_condition
|
| 7 |
|
| 8 |
-
from tools.search_tool import search_tool
|
| 9 |
-
|
| 10 |
|
| 11 |
# --- zBottaAgent Definition ---
|
| 12 |
|
|
@@ -26,3 +26,4 @@ class zBottaAgent:
|
|
| 26 |
response = self.chat_with_tools.invoke(messages)
|
| 27 |
print(f"Agent returning response: {response}")
|
| 28 |
return response
|
|
|
|
|
|
| 2 |
from typing import TypedDict, List, Dict, Any, Optional
|
| 3 |
from langchain_google_genai import ChatGoogleGenerativeAI
|
| 4 |
from langchain_core.messages import AnyMessage, SystemMessage, HumanMessage, AIMessage
|
| 5 |
+
from langgraph.graph.message import add_messages
|
| 6 |
from langgraph.graph import START, StateGraph
|
| 7 |
from langgraph.prebuilt import ToolNode, tools_condition
|
| 8 |
|
| 9 |
+
from agent.tools.search_tool import search_tool
|
|
|
|
| 10 |
|
| 11 |
# --- zBottaAgent Definition ---
|
| 12 |
|
|
|
|
| 26 |
response = self.chat_with_tools.invoke(messages)
|
| 27 |
print(f"Agent returning response: {response}")
|
| 28 |
return response
|
| 29 |
+
|