Describe the bug
When attempting to initialize a GroupChat
instance in the swarms
library, a NameError
occurs due to an undefined GroupChatLog
class. This error blocks the successful creation of the GroupChat
object, as it is referenced within the code but is missing from the definition or imports.
To Reproduce
Steps to reproduce:
GroupChat
class from the swarms.structs.groupchat
module.GroupChat
instance in a Python script.NameError
related to GroupChatLog
.Expected behavior
The GroupChat
instance should initialize properly, and logging functionality should work if GroupChatLog
is intended to manage chat logs. If GroupChatLog
is necessary, it should be properly defined or imported.
Error Output
The following error message is displayed:
Traceback (most recent call last):
File "main.py", line 59, in <module>
group_chat = GroupChat(
^^^^^^^^^^
File "groupchat.py", line 89, in __init__
self.group_log = GroupChatLog(
^^^^^^^^^^^^
NameError: name 'GroupChatLog' is not defined. Did you mean: 'GroupChat'?
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 import GroupChatLog
properly. As a temporary workaround, defining a basic GroupChatLog
class can prevent the error, though logging functionality may be limited.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too