Looking for a Declarative Workflow sample and trying to build it out of the solution.
https://github.com/microsoft/agent-framework/tree/main/dotnet/samples/02-agents/Agents/Agent_Step16_Declarative
Issue 1
The sample does not compile due to missing package that implements the ChatClientPromptAgentFactory.
Using the following packages:
<PackageReference Include="Azure.AI.Agents.Persistent" Version="1.2.0-beta.10" />
<PackageReference Include="Azure.AI.Projects" Version="2.1.0-beta.1" />
<PackageReference Include="Azure.Identity" Version="1.21.0" />
<PackageReference Include="Microsoft.Agents.AI.AzureAI" Version="1.0.0-rc5" />
<PackageReference Include="Microsoft.Agents.AI.OpenAI" Version="1.2.0" />
<PackageReference Include="Microsoft.Agents.AI.Workflows" Version="1.3.0" />
<PackageReference Include="Microsoft.Agents.AI.Workflows.Generators" Version="1.3.0">
Issue 2 (Question)
Why is there a dependency on Azure.AI.Projects and AIProjectClient? .. Or is this a coincidence, which means any IChatClient can be used?
Decalrative Workflows should be used without Foundry Project dependency.
Most other samples used following ChatClient construction:
var chatClient = new AzureOpenAIClient(new Uri(endpoint),
new DefaultAzureCredential()).GetChatClient(deploymentName).AsIChatClient();
See the same dependency in other samples like: https://learn.microsoft.com/en-us/agent-framework/integrations/a2a?tabs=dotnet-cli%2Cuser-secrets&pivots=programming-language-csharp

Looking for a Declarative Workflow sample and trying to build it out of the solution.
https://github.com/microsoft/agent-framework/tree/main/dotnet/samples/02-agents/Agents/Agent_Step16_Declarative
Issue 1
The sample does not compile due to missing package that implements the
ChatClientPromptAgentFactory.Using the following packages:
Issue 2 (Question)
Why is there a dependency on
Azure.AI.ProjectsandAIProjectClient? .. Or is this a coincidence, which means anyIChatClientcan be used?Decalrative Workflows should be used without Foundry Project dependency.
Most other samples used following ChatClient construction:
var chatClient = new AzureOpenAIClient(new Uri(endpoint),
new DefaultAzureCredential()).GetChatClient(deploymentName).AsIChatClient();
See the same dependency in other samples like: https://learn.microsoft.com/en-us/agent-framework/integrations/a2a?tabs=dotnet-cli%2Cuser-secrets&pivots=programming-language-csharp