zypchn commited on
Commit
1e82b9a
·
verified ·
1 Parent(s): d012b44

Update app.py

Browse files

fixed agent.run()

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -73,7 +73,7 @@ async def ask_advisor(user_message, history):
73
  try:
74
  # Execute the agent workflow
75
  # The 'ctx' argument passes the memory of previous interactions
76
- response = await agent.run(input=user_message, ctx=global_ctx)
77
 
78
  # Return the final text response
79
  return str(response)
 
73
  try:
74
  # Execute the agent workflow
75
  # The 'ctx' argument passes the memory of previous interactions
76
+ response = await agent.run(user_msg=user_message, ctx=global_ctx)
77
 
78
  # Return the final text response
79
  return str(response)