cafierom commited on
Commit
28d7d5b
·
verified ·
1 Parent(s): ad807ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -412,9 +412,8 @@ def graceful_exit_node(state: State) -> State:
412
  Called when the Agent cannot assign any tools for the task
413
  '''
414
  props_string = state["props_string"]
415
- prompt = f'You are a chemistry agent that has not been able to fulfill the task assigned. \
416
- Write an apology to the user and include any information in the CONTEXT below, just in case it can \
417
- prove useful. \n \
418
  CONTEXT: {props_string}'
419
 
420
  res = chat_model.invoke(prompt)
 
412
  Called when the Agent cannot assign any tools for the task
413
  '''
414
  props_string = state["props_string"]
415
+ prompt = f'Summarize the information in the CONTEXT, including any useful chemical information. Start your answer with: \
416
+ Here is what I found: \n \
 
417
  CONTEXT: {props_string}'
418
 
419
  res = chat_model.invoke(prompt)