Skip to content

Commit 1d6f53b

Browse files
authored
.NET Workflows - Add "CustomerSupport" sample (#2102)
1 parent 5303c70 commit 1d6f53b

File tree

24 files changed

+935
-39
lines changed

24 files changed

+935
-39
lines changed

dotnet/agent-framework-dotnet.slnx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@
141141
<Folder Name="/Samples/GettingStarted/Workflows/Declarative/">
142142
<File Path="samples/GettingStarted/Workflows/Declarative/README.md" />
143143
<Project Path="samples/GettingStarted/Workflows/Declarative/ConfirmInput/ConfirmInput.csproj" />
144+
<Project Path="samples/GettingStarted/Workflows/Declarative/CustomerSupport/CustomerSupport.csproj" />
144145
<Project Path="samples/GettingStarted/Workflows/Declarative/DeepResearch/DeepResearch.csproj" />
145146
<Project Path="samples/GettingStarted/Workflows/Declarative/ExecuteCode/ExecuteCode.csproj" />
146147
<Project Path="samples/GettingStarted/Workflows/Declarative/ExecuteWorkflow/ExecuteWorkflow.csproj" />

dotnet/samples/GettingStarted/Workflows/Declarative/ConfirmInput/ConfirmInput.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
</ItemGroup>
3333

3434
<ItemGroup>
35-
<None Include="$(MSBuildThisFileDirectory)..\..\..\..\..\..\workflow-samples\ConfirmInput.yaml">
35+
<None Include="ConfirmInput.yaml">
3636
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
3737
</None>
3838
</ItemGroup>

workflow-samples/ConfirmInput.yaml renamed to dotnet/samples/GettingStarted/Workflows/Declarative/ConfirmInput/ConfirmInput.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,3 @@ trigger:
5959
6060
Confirmed input:
6161
{Local.ConfirmedInput}
62-
63-
64-

dotnet/samples/GettingStarted/Workflows/Declarative/ConfirmInput/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace Demo.Workflows.Declarative.ConfirmInput;
1111
/// </summary>
1212
/// <remarks>
1313
/// See the README.md file in the parent folder (../README.md) for detailed
14-
/// information the configuration required to run this sample.
14+
/// information about the configuration required to run this sample.
1515
/// </remarks>
1616
internal sealed class Program
1717
{
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net9.0</TargetFramework>
6+
<ProjectsDebugTargetFrameworks>net9.0</ProjectsDebugTargetFrameworks>
7+
<TargetFrameworks Condition="'$(Configuration)' == 'Debug'">$(ProjectsDebugTargetFrameworks)</TargetFrameworks>
8+
<Nullable>enable</Nullable>
9+
<ImplicitUsings>enable</ImplicitUsings>
10+
</PropertyGroup>
11+
12+
<PropertyGroup>
13+
<InjectIsExternalInitOnLegacy>true</InjectIsExternalInitOnLegacy>
14+
<InjectSharedFoundryAgents>true</InjectSharedFoundryAgents>
15+
<InjectSharedWorkflowsExecution>true</InjectSharedWorkflowsExecution>
16+
<InjectSharedWorkflowsSettings>true</InjectSharedWorkflowsSettings>
17+
</PropertyGroup>
18+
19+
<ItemGroup>
20+
<PackageReference Include="Microsoft.Extensions.Configuration" />
21+
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" />
22+
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" />
23+
<PackageReference Include="Microsoft.Extensions.Configuration.Json" />
24+
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" />
25+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" />
26+
<PackageReference Include="Microsoft.Extensions.Logging" />
27+
</ItemGroup>
28+
29+
<ItemGroup>
30+
<ProjectReference Include="..\..\..\..\..\src\Microsoft.Agents.AI.Workflows.Declarative\Microsoft.Agents.AI.Workflows.Declarative.csproj" />
31+
<ProjectReference Include="..\..\..\..\..\src\Microsoft.Agents.AI.Workflows.Declarative.AzureAI\Microsoft.Agents.AI.Workflows.Declarative.AzureAI.csproj" />
32+
</ItemGroup>
33+
34+
<ItemGroup>
35+
<None Include="$(MSBuildThisFileDirectory)..\..\..\..\..\..\workflow-samples\CustomerSupport.yaml">
36+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
37+
</None>
38+
</ItemGroup>
39+
40+
</Project>

0 commit comments

Comments
 (0)