Skip to content

FSM/Speaker Transition Control in Autogen v0.4 #5016

Answered by jackgerrits
aayushmittal2 asked this question in Q&A
Discussion options

You must be logged in to vote

RoundRobinGroupChat selects speakers in a round robin fashion, as in cycling through each speaker.

What you're looking for is called SelectorGroupChat. In this the next speaker is selected via a function. By default this function is what you'd traditionally think of as group chat, where an LLM selects the next speaker. But you can pass a custom selector function (the selector_func arg) which can be used to implement the specific functionality you describe.

The second example in the docs for SelectorGroupChat show a custom function being used. The function is passed the conversation history and the next speakers name should be returned. You can determine who spoke last by looking at the so…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by aayushmittal2
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants