Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ def __init__(
):
self._name = name
self._description = description
if not isinstance(participants, list):
raise TypeError(
f"participants must be a list of ChatAgent or Team instances, got {type(participants).__name__!r}."
)
if len(participants) == 0:
raise ValueError("At least one participant is required.")
if len(participants) != len(set(participant.name for participant in participants)):
Expand Down