Skip to content
Discussion options

You must be logged in to vote

Implementing User-in-the-Loop Conversations in Semantic Kernel

You're right that AgentGroupChat isn't designed for user-in-the-loop interactions. It's primarily for agent-to-agent conversations after the initial user message.

Solution: Custom Conversation Orchestrator

The best approach is to implement a custom conversation orchestrator that explicitly handles user interactions:

public class ConversationOrchestrator
{
    private readonly Kernel _kernel;
    private readonly KernelAgent _agentA;
    private readonly KernelAgent _agentB;
    private List<ChatMessageContent> _history = new();
    
    public ConversationOrchestrator(Kernel kernel, KernelAgent agentA, KernelAgent agentB)
    {

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by amynic
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