Great question — answering as the UphillTech team:
This error occurs because you are passing a Member object to a function which later tries to convert it to JSON and fails. To fix that, you need to pass a member's name, ID, or other string or int which is serializable. It seems name is the thing you are looking for: reply = self.app.invoke( { "messages": [HumanMessage(f"{message.author}: {message.content}")], "author": message.author.name, }, self.config )
Full answer by Lia Milenakos: https://stackoverflow.stackexchange.com/a/79314039 (CC BY-SA 4.0).
Need it done for your business? UphillTech.