[Bug] 'get_system_message()' fails when there's no memory
component set
#2107
Labels
bug
Something isn't working
memory
component set
#2107
Description
Error when calling
get_system_message()
before calling.run()
or.print_response()
Steps to Reproduce
List the steps needed to encounter this bug or issue.
memory
get_system_message()
Expected Behavior
No error, and system message returned
Actual Behavior
Error (see below)
Screenshots or Logs (if applicable)
Environment
Possible Solutions (optional)
Not sure, haven't looked at the code in details. I'm assuming it's a quick fix. Worst case, if it does require a first call to
.run()
or similar, then throw an error with a message saying you can't callagent.get_system_message()
before first generating at least one messageAdditional Context
I love what you've done with Agno. Kudos!
Also if it's a quick fix, but don't have the bandwidth to do it, please give me some pointers regarding your preferred way of addressing this and I'll be happy to submit a PR
The text was updated successfully, but these errors were encountered: