[BUG] NameError
in GroupChat
Initialization Due to Missing GroupChatLog
Class
#629
Labels
bug
Something isn't working
Describe the bug
When attempting to initialize a
GroupChat
instance in theswarms
library, aNameError
occurs due to an undefinedGroupChatLog
class. This error blocks the successful creation of theGroupChat
object, as it is referenced within the code but is missing from the definition or imports.To Reproduce
Steps to reproduce:
GroupChat
class from theswarms.structs.groupchat
module.GroupChat
instance in a Python script.NameError
related toGroupChatLog
.Expected behavior
The
GroupChat
instance should initialize properly, and logging functionality should work ifGroupChatLog
is intended to manage chat logs. IfGroupChatLog
is necessary, it should be properly defined or imported.Error Output
The following error message is displayed:
Additional context
This issue suggests that
GroupChatLog
may be missing or incorrectly referenced in the code. If it is meant to manage chat logs, an update to the library might be required to define or importGroupChatLog
properly. As a temporary workaround, defining a basicGroupChatLog
class can prevent the error, though logging functionality may be limited.Upvote & Fund
The text was updated successfully, but these errors were encountered: