itskavya commited on
Commit
51eb63e
·
verified ·
1 Parent(s): ffd0b8b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -25,6 +25,7 @@ class State(TypedDict):
25
 
26
  def assistant(state:State):
27
  system_message = SystemMessage("You are a helpful assistant. Your job is to answer the questions asked of you as accurately as possible. You have access to search and browser tools, which you may use when needed to answer a question.")
 
28
  return {
29
  "messages": [llm_with_tools.invoke([system_message] + state["messages"])]
30
  }
 
25
 
26
  def assistant(state:State):
27
  system_message = SystemMessage("You are a helpful assistant. Your job is to answer the questions asked of you as accurately as possible. You have access to search and browser tools, which you may use when needed to answer a question.")
28
+ print(llm_with_tools.invoke([HumanMessage("Hi how are you?")]))
29
  return {
30
  "messages": [llm_with_tools.invoke([system_message] + state["messages"])]
31
  }