ernani commited on
Commit
45dc9e2
·
1 Parent(s): 2c04564

removing inmem persistency to test

Browse files
Files changed (2) hide show
  1. app.py +3 -3
  2. tools.py +2 -2
app.py CHANGED
@@ -11,7 +11,7 @@ from langchain_huggingface import HuggingFaceEndpoint, ChatHuggingFace
11
  from langgraph.prebuilt import create_react_agent
12
  from langgraph.store.memory import InMemoryStore
13
 
14
- from tools import weather_info_tool, hub_stats_tool, duckduckgo_search_tool, manage_memory_tool, search_memory_tool
15
  from retriever import load_guest_dataset
16
 
17
  # Initialize the Hugging Face model
@@ -37,11 +37,11 @@ store = InMemoryStore(
37
 
38
  guest_info_tool = load_guest_dataset()
39
 
40
- tools = [guest_info_tool, weather_info_tool, hub_stats_tool, duckduckgo_search_tool, manage_memory_tool, search_memory_tool]
41
  chat_with_tools = chat.bind_tools(tools)
42
 
43
  agent = create_react_agent(
44
- "openai:gpt-4o",
45
  tools=tools,
46
  store=store,
47
  )
 
11
  from langgraph.prebuilt import create_react_agent
12
  from langgraph.store.memory import InMemoryStore
13
 
14
+ from tools import weather_info_tool, hub_stats_tool, duckduckgo_search_tool
15
  from retriever import load_guest_dataset
16
 
17
  # Initialize the Hugging Face model
 
37
 
38
  guest_info_tool = load_guest_dataset()
39
 
40
+ tools = [guest_info_tool, weather_info_tool, hub_stats_tool, duckduckgo_search_tool]
41
  chat_with_tools = chat.bind_tools(tools)
42
 
43
  agent = create_react_agent(
44
+ "openai:gpt-4o-mini",
45
  tools=tools,
46
  store=store,
47
  )
tools.py CHANGED
@@ -73,6 +73,6 @@ duckduckgo_search_tool = Tool(
73
  description="Searches the web for information."
74
  )
75
 
76
- manage_memory_tool = create_manage_memory_tool(namespace=("memories",))
77
- search_memory_tool = create_search_memory_tool(namespace=("memories",))
78
 
 
73
  description="Searches the web for information."
74
  )
75
 
76
+ # manage_memory_tool = create_manage_memory_tool(namespace=("memories",))
77
+ # search_memory_tool = create_search_memory_tool(namespace=("memories",))
78