Gorantla Krishna commited on
Commit
267e42e
·
1 Parent(s): 306f0be
src/langgraphagenticai/graph/graph_builder.py CHANGED
@@ -37,7 +37,7 @@ class GraphBuilder:
37
  The chatbot node is set as the entry point.
38
  """
39
  tools = get_tools()
40
- tool_node = create_tool_node(tools=tools)
41
 
42
  # Define LLM
43
  llm = self.llm
 
37
  The chatbot node is set as the entry point.
38
  """
39
  tools = get_tools()
40
+ tool_node = create_tool_node(tools)
41
 
42
  # Define LLM
43
  llm = self.llm
src/langgraphagenticai/ui/streamlitui/display_result.py CHANGED
@@ -23,7 +23,7 @@ class DisplayResultStreamlit:
23
  with st.chat_message("assistant"):
24
  st.write(value["messages"][-1].content)
25
 
26
- elif usecase == "Basic Tool Chatbot":
27
  initial_state = {"messages":[user_message]}
28
  res = graph.invoke(initial_state)
29
  for message in res["messages"]:
 
23
  with st.chat_message("assistant"):
24
  st.write(value["messages"][-1].content)
25
 
26
+ elif usecase == "Chatbot with Tool":
27
  initial_state = {"messages":[user_message]}
28
  res = graph.invoke(initial_state)
29
  for message in res["messages"]: