Spaces:
Sleeping
Sleeping
Commit
·
cb02431
1
Parent(s):
e850199
FInal changes
Browse files- src/langgraph_agenticAI/Graphs/__pycache__/__init__.cpython-311.pyc +0 -0
- src/langgraph_agenticAI/Graphs/__pycache__/graph_builder.cpython-311.pyc +0 -0
- src/langgraph_agenticAI/Graphs/graph_builder.py +2 -2
- src/langgraph_agenticAI/LLMs/__pycache__/GroqLLM.cpython-311.pyc +0 -0
- src/langgraph_agenticAI/Nodes/__pycache__/__init__.cpython-311.pyc +0 -0
- src/langgraph_agenticAI/Nodes/__pycache__/basic_chatbot_node.cpython-311.pyc +0 -0
- src/langgraph_agenticAI/States/__pycache__/__init__.cpython-311.pyc +0 -0
- src/langgraph_agenticAI/States/__pycache__/state.cpython-311.pyc +0 -0
- src/langgraph_agenticAI/Tools/search_tools.py +15 -0
- src/langgraph_agenticAI/UI/streamlitui/__pycache__/display_result.cpython-311.pyc +0 -0
- src/langgraph_agenticAI/__pycache__/main.cpython-311.pyc +0 -0
src/langgraph_agenticAI/Graphs/__pycache__/__init__.cpython-311.pyc
ADDED
Binary file (206 Bytes). View file
|
|
src/langgraph_agenticAI/Graphs/__pycache__/graph_builder.cpython-311.pyc
ADDED
Binary file (3.99 kB). View file
|
|
src/langgraph_agenticAI/Graphs/graph_builder.py
CHANGED
@@ -3,8 +3,8 @@ from langgraph.prebuilt import tools_condition,ToolNode
|
|
3 |
from langchain_core.prompts import ChatPromptTemplate
|
4 |
from src.langgraph_agenticAI.States.state import State
|
5 |
from src.langgraph_agenticAI.Nodes.basic_chatbot_node import BasicChatbotNode
|
6 |
-
from src.langgraph_agenticAI.Nodes.chatbot_with_Tool_node import ChatbotWithToolNode
|
7 |
-
from src.langgraph_agenticAI.Tools.
|
8 |
|
9 |
|
10 |
class GraphBuilder:
|
|
|
3 |
from langchain_core.prompts import ChatPromptTemplate
|
4 |
from src.langgraph_agenticAI.States.state import State
|
5 |
from src.langgraph_agenticAI.Nodes.basic_chatbot_node import BasicChatbotNode
|
6 |
+
#from src.langgraph_agenticAI.Nodes.chatbot_with_Tool_node import ChatbotWithToolNode
|
7 |
+
from src.langgraph_agenticAI.Tools.search_tools import get_tools,create_tool_node
|
8 |
|
9 |
|
10 |
class GraphBuilder:
|
src/langgraph_agenticAI/LLMs/__pycache__/GroqLLM.cpython-311.pyc
CHANGED
Binary files a/src/langgraph_agenticAI/LLMs/__pycache__/GroqLLM.cpython-311.pyc and b/src/langgraph_agenticAI/LLMs/__pycache__/GroqLLM.cpython-311.pyc differ
|
|
src/langgraph_agenticAI/Nodes/__pycache__/__init__.cpython-311.pyc
ADDED
Binary file (205 Bytes). View file
|
|
src/langgraph_agenticAI/Nodes/__pycache__/basic_chatbot_node.cpython-311.pyc
ADDED
Binary file (1.17 kB). View file
|
|
src/langgraph_agenticAI/States/__pycache__/__init__.cpython-311.pyc
ADDED
Binary file (206 Bytes). View file
|
|
src/langgraph_agenticAI/States/__pycache__/state.cpython-311.pyc
ADDED
Binary file (1.04 kB). View file
|
|
src/langgraph_agenticAI/Tools/search_tools.py
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from langchain_community.tools.tavily_search import TavilySearchResults
|
2 |
+
from langgraph.prebuilt import ToolNode
|
3 |
+
|
4 |
+
def get_tools():
|
5 |
+
"""
|
6 |
+
Return the list of tools to be used in the chatbot
|
7 |
+
"""
|
8 |
+
tools=[TavilySearchResults(max_results=2)]
|
9 |
+
return tools
|
10 |
+
|
11 |
+
def create_tool_node(tools):
|
12 |
+
"""
|
13 |
+
creates and returns a tool node for the graph
|
14 |
+
"""
|
15 |
+
return ToolNode(tools=tools)
|
src/langgraph_agenticAI/UI/streamlitui/__pycache__/display_result.cpython-311.pyc
CHANGED
Binary files a/src/langgraph_agenticAI/UI/streamlitui/__pycache__/display_result.cpython-311.pyc and b/src/langgraph_agenticAI/UI/streamlitui/__pycache__/display_result.cpython-311.pyc differ
|
|
src/langgraph_agenticAI/__pycache__/main.cpython-311.pyc
CHANGED
Binary files a/src/langgraph_agenticAI/__pycache__/main.cpython-311.pyc and b/src/langgraph_agenticAI/__pycache__/main.cpython-311.pyc differ
|
|