Implement 'candidate_func' parameter to filter down the pool of candidates for selection#5954
Conversation
…dates for selection (microsoft#5828) - Added 'candidate_func' to 'SelectorGroupChat' to narrow-down the pool of candidate speakers. - Introduced a test in tests/test_group_chat_endpoint.py to validate its functionality. - Updated the selector group chat user guide with an example demonstrating 'candidate_func'. Signed-off-by: Abhijeetsingh Meena <abhijeet040403@gmail.com>
...n/packages/autogen-agentchat/src/autogen_agentchat/teams/_group_chat/_selector_group_chat.py
Outdated
Show resolved
Hide resolved
...n/packages/autogen-agentchat/src/autogen_agentchat/teams/_group_chat/_selector_group_chat.py
Outdated
Show resolved
Hide resolved
…s precedence over 'allowed_repeated_speaker' (microsoft#5828) Signed-off-by: Abhijeetsingh Meena <abhijeet040403@gmail.com>
...n/packages/autogen-agentchat/src/autogen_agentchat/teams/_group_chat/_selector_group_chat.py
Outdated
Show resolved
Hide resolved
…microsoft#5828) Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
|
@microsoft-github-policy-service agree |
|
Please follow the developer guide here: https://github.com/microsoft/autogen/blob/main/python/README.md for fixing formatting and type checking errors. |
…-core (microsoft#5828) Signed-off-by: Abhijeetsingh Meena <abhijeet040403@gmail.com>
…icrosoft#5828) Signed-off-by: Abhijeetsingh Meena <abhijeet040403@gmail.com>
Signed-off-by: Abhijeetsingh Meena <abhijeet040403@gmail.com>
|
Hi, I missed to lint the docs, sorry! |
|
I fixed a bug in the select speaker flow. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5954 +/- ##
==========================================
- Coverage 76.67% 76.67% -0.01%
==========================================
Files 191 191
Lines 13141 13149 +8
==========================================
+ Hits 10076 10082 +6
- Misses 3065 3067 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Thanks @ekzhu, for all your help with my first PR! I really appreciate your guidance. |
Summary of Changes
Why are these changes needed?
candidate_functoSelectorGroupChatthat helps user narrow-down the set of agents for speaker selection, allowing users to automatically select next speaker from a smaller pool of agents.Related issue number
Closes #5828
Checks