I am running this code locally and I am getting errors
reply = agent.generate_reply(
messages=[{“content”: “Tell me a joke.”, “role”: “user”}]
)
print(reply)
Getting two error when I run the above code
Sometimes I get this one
Cell In[17], line 2
messages=[{“content”: “Tell me a joke.”, “role”: “user”}]
^
SyntaxError: invalid syntax. Perhaps you forgot a comma?
Sometimes I get this error message
IndexError: list index out of range
Does anyone know how to fix these issues
NOTE: I had no problems with the 1st 2 code blocks when I ran them
Thank you