You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ex_app/lib/agent.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,7 @@ async def call_model(
86
86
iftool_enabled("find_details_of_current_user"):
87
87
system_prompt_text+="Use the find_details_of_current_user tool to find the current user's location.\n"
88
88
89
-
iftask['input']['memories']:
89
+
iftask['input'].get('memories', None) isnotNone:
90
90
system_prompt_text+="You can remember things from other conversations with the user. If relevant, take into account the following memories:\n\n"+"\n".join(task['input']['memories']) +"\n\n"
91
91
# this is similar to customizing the create_react_agent with state_modifier, but is a lot more flexible
0 commit comments