Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
fb18d16
Initial Microsoft.Agents.AI.Templates structure
jeffhandley Nov 5, 2025
577cf99
Refine Microsoft.Agents.AI.Templates infrastructure
jeffhandley Nov 5, 2025
785d8fd
Move project template infrastructure utilities into a shared folder
jeffhandley Nov 5, 2025
d293cc1
Add the webapi-agents project template content with GitHub models
jeffhandley Nov 5, 2025
0b077ed
Support parameterized AI Service Provider
jeffhandley Nov 5, 2025
457c817
Rename to aiagents-webapi
jeffhandley Nov 5, 2025
c8f72a6
Support parameterized chatmodel and update docs with renames
jeffhandley Nov 5, 2025
9d3fced
Add Snapshot tests
jeffhandley Nov 5, 2025
78d399f
Add aiagents-webapi snapshot tests
jeffhandley Nov 5, 2025
94a1d1f
Add aiagents-webapi execution tests (and component governance)
jeffhandley Nov 5, 2025
d28616a
Improve aiagents-webapi template parameters
jeffhandley Nov 5, 2025
0422af7
Apply suggestions from copilot code review
jeffhandley Nov 5, 2025
8f6e573
Move shared ProjectTemplate infrastructure to not get included in Sha…
jeffhandley Nov 5, 2025
4f3e89b
Fix the template sandbox / execution tests after moving infrastructure
jeffhandley Nov 5, 2025
6d85d1d
Ignore CA1716 warning about 'Shared' namespace in template tests
jeffhandley Nov 5, 2025
650fbfb
Clean up template sandbox source/output
jeffhandley Nov 5, 2025
36f45f1
Rename to "aiagent-webapi" and favor singular "Agent". Docs cleanup.
jeffhandley Nov 5, 2025
0fa70aa
Update templates dev doc to cover Microsoft.Agents.AI.Templates too
jeffhandley Nov 5, 2025
e02675a
Fix remaining template sandbox references with new paths
jeffhandley Nov 6, 2025
5640da3
Add a tool call in aiagent-webapi. Update workflow API usage for upco…
jeffhandley Nov 6, 2025
7327c81
Exclude csproj.in file from template package
jeffhandley Nov 6, 2025
19b1d12
Add a survey link to the aiagent-webapi template's generated readme
jeffhandley Nov 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion eng/build.proj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.Build.Traversal">
<ItemGroup>
<_SnapshotsToExclude Include="$(MSBuildThisFileDirectory)..\test\**\Snapshots\**\*.*proj" />
<_GeneratedContentToExclude Include="$(MSBuildThisFileDirectory)..\test\**\TemplateSandbox\**\*.*proj" />
<_GeneratedContentToExclude Include="$(MSBuildThisFileDirectory)..\test\**\ExecutionTemplateSandbox\**\*.*proj" />

<!-- We recursively add all of the projects inside the src directory, except for the exclusions above -->
<_ProjectsToBuild Include="$(MSBuildThisFileDirectory)..\src\**\*.csproj" />
Expand Down
8 changes: 8 additions & 0 deletions src/ProjectTemplates/GeneratedContent.targets
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
-->
<_LocalChatTemplateVariant>aspire</_LocalChatTemplateVariant>

<_WebApiAgentRoot>$(MSBuildThisFileDirectory)Microsoft.Agents.AI.Templates\src\WebApiAgent\</_WebApiAgentRoot>
<_ChatWithCustomDataContentRoot>$(MSBuildThisFileDirectory)Microsoft.Extensions.AI.Templates\src\ChatWithCustomData\</_ChatWithCustomDataContentRoot>
<_McpServerContentRoot>$(MSBuildThisFileDirectory)Microsoft.Extensions.AI.Templates\src\McpServer\</_McpServerContentRoot>
</PropertyGroup>
Expand All @@ -33,6 +34,8 @@
Specifies external packages that get referenced in generated template content.
-->
<PropertyGroup>
<TemplatePackageVersion_MicrosoftAgentsAI>1.0.0-preview.251104.1</TemplatePackageVersion_MicrosoftAgentsAI>
<TemplatePackageVersion_MicrosoftAgentsAIHostingOpenAI>1.0.0-alpha.251104.1</TemplatePackageVersion_MicrosoftAgentsAIHostingOpenAI>
<TemplatePackageVersion_Aspire>9.5.1</TemplatePackageVersion_Aspire>
<TemplatePackageVersion_Aspire_Preview>9.5.1-preview.1.25502.11</TemplatePackageVersion_Aspire_Preview>
<TemplatePackageVersion_AzureAIProjects>1.0.0</TemplatePackageVersion_AzureAIProjects>
Expand All @@ -59,6 +62,8 @@
ArtifactsShippingPackagesDir=$(ArtifactsShippingPackagesDir);

<!-- Package version properties -->
TemplatePackageVersion_MicrosoftAgentsAI=$(TemplatePackageVersion_MicrosoftAgentsAI);
TemplatePackageVersion_MicrosoftAgentsAIHostingOpenAI=$(TemplatePackageVersion_MicrosoftAgentsAIHostingOpenAI);
TemplatePackageVersion_Aspire=$(TemplatePackageVersion_Aspire);
TemplatePackageVersion_Aspire_Preview=$(TemplatePackageVersion_Aspire_Preview);
TemplatePackageVersion_AzureAIProjects=$(TemplatePackageVersion_AzureAIProjects);
Expand Down Expand Up @@ -90,6 +95,9 @@
<GeneratedContent
Include="$(_ChatWithCustomDataContentRoot)Directory.Build.props.in"
OutputPath="$(_ChatWithCustomDataContentRoot)Directory.Build.props" />
<GeneratedContent
Include="$(_WebApiAgentRoot)WebApiAgent-CSharp\WebApiAgent-CSharp.csproj.in"
OutputPath="$(_WebApiAgentRoot)WebApiAgent-CSharp\WebApiAgent-CSharp.csproj" />
<GeneratedContent
Include="$(_ChatWithCustomDataContentRoot)ChatWithCustomData-CSharp.Web\ChatWithCustomData-CSharp.Web.csproj.in"
OutputPath="$(_ChatWithCustomDataContentRoot)ChatWithCustomData-CSharp.Web\ChatWithCustomData-CSharp.Web.csproj" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<PackageType>Template</PackageType>
<TargetFrameworks>$(NetCoreTargetFrameworks)</TargetFrameworks>
<Description>Project templates for Microsoft.Agents.AI.</Description>
<PackageTags>dotnet-new;templates;ai;agent</PackageTags>

<Stage>preview</Stage>
<PreReleaseVersionIteration>1</PreReleaseVersionIteration>
<Workstream>AI</Workstream>
<MinCodeCoverage>0</MinCodeCoverage>
<MinMutationScore>0</MinMutationScore>

<IsPackable>true</IsPackable>
<IsProjectReferenceProvider>false</IsProjectReferenceProvider>
<IncludeContentInPack>true</IncludeContentInPack>
<IncludeBuildOutput>false</IncludeBuildOutput>
<IncludeSymbols>false</IncludeSymbols>
<ContentTargetFolders>content</ContentTargetFolders>
<EnableDefaultItems>false</EnableDefaultItems>
<NoDefaultExcludes>true</NoDefaultExcludes>
<NoPackageAnalysis>true</NoPackageAnalysis>
</PropertyGroup>

<ItemGroup>
<!--
Reference the GenerateTemplateContent project so that template content gets generated prior
to building this project.
-->
<ProjectReference
Include="..\GenerateTemplateContent\GenerateTemplateContent.csproj"
ReferenceOutputAssembly="false"
PrivateAssets="all" />
</ItemGroup>

<ItemGroup>
<!-- Keep the exclude patterns below in sync with those in WebApiAgentTemplateSnapshotTests.cs -->
<Content
Include="src\WebApiAgent\**\*"
Exclude="
**\bin\**;
**\obj\**;
**\.vs\**;
**\*.user;
**\*.in;
**\NuGet.config;
**\Directory.Build.targets;
**\Directory.Build.props;" />

<None Include="THIRD-PARTY-NOTICES.TXT" Pack="true" PackagePath="." />
<Compile Remove="**\*" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Microsoft.Agents.AI.Templates

Provides project templates for Microsoft.Agents.AI.
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
.NET Core uses third-party libraries or other resources that may be
distributed under licenses different than the .NET Core software.

In the event that we accidentally failed to list a required notice, please
bring it to our attention. Post an issue or email us:

dotnet@microsoft.com

The attached notices are provided for information only.

License notice for OllamaSharp
------------------------------

https://github.com/awaescher/OllamaSharp

MIT License

Copyright (c) 2024 Andreas Wäscher

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

License notice for openai-dotnet
-------------------------

https://github.com/openai/openai-dotnet

The MIT License (MIT)

Copyright (c) 2024 OpenAI (https://openai.com)


Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"$schema": "https://json.schemastore.org/dotnetcli.host",
"symbolInfo": {
"Framework": {
"longName": "framework"
},
"AiServiceProvider": {
"longName": "provider",
"shortName": ""
},
"ChatModel": {
"longName": "chat-model",
"shortName": ""
},
"UseManagedIdentity": {
"longName": "managed-identity",
"shortName": ""
},
"httpPort": {
"isHidden": "true",
"longName": "httpPort",
"shortName": ""
},
"httpsPort": {
"isHidden": "true",
"longName": "httpsPort",
"shortName": ""
}
},
"usageExamples": [
""
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "https://json.schemastore.org/ide.host",
"order": 1,
"icon": "ide/agent-framework.ico",
"displayOverviewPage": "",
"symbolInfo": [
{
"id": "AiServiceProvider",
"isVisible": true
},
{
"id": "ChatModel",
"isVisible": true
},
{
"id": "UseManagedIdentity",
"isVisible": true
}
]
}
Binary file not shown.
Loading
Loading