Skip to content

Commit

Permalink
Update groupchat.py to remove Optional type hint when they are not ch…
Browse files Browse the repository at this point in the history
…ecked for None (microsoft#2703)
  • Loading branch information
ruiwang authored May 17, 2024
1 parent d461100 commit 19de99e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions autogen/agentchat/groupchat.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,15 @@ def custom_speaker_selection_func(

agents: List[Agent]
messages: List[Dict]
max_round: Optional[int] = 10
admin_name: Optional[str] = "Admin"
func_call_filter: Optional[bool] = True
max_round: int = 10
admin_name: str = "Admin"
func_call_filter: bool = True
speaker_selection_method: Union[Literal["auto", "manual", "random", "round_robin"], Callable] = "auto"
max_retries_for_selecting_speaker: Optional[int] = 2
max_retries_for_selecting_speaker: int = 2
allow_repeat_speaker: Optional[Union[bool, List[Agent]]] = None
allowed_or_disallowed_speaker_transitions: Optional[Dict] = None
speaker_transitions_type: Literal["allowed", "disallowed", None] = None
enable_clear_history: Optional[bool] = False
enable_clear_history: bool = False
send_introductions: bool = False
select_speaker_message_template: str = """You are in a role play game. The following roles are available:
{roles}.
Expand Down

0 comments on commit 19de99e

Please sign in to comment.