Need help to Create Dynamic AgentGroupChat Using Process Framework #10650
Unanswered
lovedeepatsgit
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have tried to modify https://github.com/microsoft/semantic-kernel/tree/main/dotnet/samples/GettingStartedWithProcesses/Step04, To generate Dynamic AgentGroupChat, the error i am getting is as below:
Program.cs is as below:
using Events;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging.Abstractions;
using Microsoft.SemanticKernel;
using Microsoft.SemanticKernel.Agents;
using Microsoft.SemanticKernel.Agents.Chat;
using Microsoft.SemanticKernel.ChatCompletion;
using Microsoft.SemanticKernel.Connectors.AzureOpenAI;
using Microsoft.SemanticKernel.Connectors.OpenAI;
using ProdGenAi.Core.Interfaces;
using ProdGenAi.Core.Plugins;
using ProdGenAi.Core.Services;
using ProdGenAi.Core.Strategies;
using ProdGenAi.Core.StrategyFunctions;
using SharedSteps;
using Step04.Plugins;
using Step04.Steps;
namespace Step04;
public class Step04_AgentOrchestration
{
static async Task Main()
{
Step04_AgentOrchestration orchestration = new();
await orchestration.DelegatedGroupChatAsync();
}
}
ManagerAgentStep.cs is as below:
// Copyright (c) Microsoft. All rights reserved.
using System.ComponentModel;
using System.Text.Json;
using Events;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.SemanticKernel;
using Microsoft.SemanticKernel.Agents;
using Microsoft.SemanticKernel.Agents.Chat;
using Microsoft.SemanticKernel.ChatCompletion;
using Microsoft.SemanticKernel.Connectors.AzureOpenAI;
using Microsoft.SemanticKernel.Connectors.OpenAI;
using ProdGenAi.Core.Services;
using ProdGenAi.Core.Strategies;
using ProdGenAi.Core.StrategyFunctions;
using ChatResponseFormat = OpenAI.Chat.ChatResponseFormat;
namespace Step04.Steps;
///
/// This steps defines actions for the primary agent. This agent is responsible for interacting with
/// the user as well as as delegating to a group of agents.
///
public class ManagerAgentStep : KernelProcessStep
{
public const string AgentServiceKey = $"{nameof(ManagerAgentStep)}:{nameof(AgentServiceKey)}";
public const string ReducerServiceKey = $"{nameof(ManagerAgentStep)}:{nameof(ReducerServiceKey)}";
}
Beta Was this translation helpful? Give feedback.
All reactions