Skip to content

Refactor docs and projects; add .NET AI agent samples & workflows#31

Open
elbruno wants to merge 10 commits intomicrosoft:mainfrom
elbruno:bruno-UpdateNet10AndReferences
Open

Refactor docs and projects; add .NET AI agent samples & workflows#31
elbruno wants to merge 10 commits intomicrosoft:mainfrom
elbruno:bruno-UpdateNet10AndReferences

Conversation

@elbruno
Copy link

@elbruno elbruno commented Feb 23, 2026

Configuration modernization:

  • Replaced .env file loading with dotnet user-secrets and environment variable configuration in all sample projects, using Microsoft.Extensions.Configuration for secure and flexible settings management (Program.cs and app.cs files across samples). [1] [2] [3]
  • Added UserSecretsId property to .csproj files and included Microsoft.Extensions.Configuration.UserSecrets and Microsoft.Extensions.Configuration.EnvironmentVariables package references for secret management. [1] [2]

Dependency and project structure updates:

  • Updated package references to newer versions (e.g., Microsoft.Extensions.AI 10.3.0, Microsoft.Agents.AI 1.0.0-rc1) and switched from local project references to NuGet packages for easier setup and cleaner project files. [1] [2]
  • Removed obsolete .csproj files and code samples that relied on outdated configuration methods. [1] [2]

Documentation and repository layout improvements:

  • Added detailed README.md files for each sample, explaining prerequisites, configuration, and run instructions, including support for file-based execution (dotnet run app.cs). [1] [2]
  • Introduced .github/copilot-instructions.md to define repository layout rules, ensuring documentation, planning, and policy files are organized in the docs/ folder and clarifying allowed files at the repo root and in sample folders.

Sample enhancements:

  • Added new app.cs files for file-based execution in tool use and RAG samples, demonstrating modern agent session management and retrieval-augmented generation with Azure AI Foundry. [1] [2]

These changes collectively make the samples easier to set up, more secure, and better documented for new users.

…d, and SUPPORT.md to docs/ directory; add GitHub Copilot instructions and .NET modernization plan
- Updated project references to use PackageReference format in GHModel.dotNET.AI.Workflow.DevUI and GHModel.dotNET.AI.Workflow.AGUI.Client.
- Removed DotNetEnv dependency and associated environment loading code from Program.cs files in various projects.
- Updated Microsoft.Extensions.AI.OpenAI package version to 10.3.0 in multiple projects.
- Changed agent thread management to use session management in Program.cs files for improved clarity and functionality.
- Updated workflow execution methods in WorkflowRunner.cs for consistency with new API changes.
- Created a new solution file to organize various sample projects for easier navigation and access.
- Introduced travel agent sample demonstrating AI agent creation and tool usage.
- Added basic agent framework samples showcasing autonomous agent behavior and design patterns.
- Implemented multi-turn conversation handling with stateful agents using AgentSession.
- Created retrieval-augmented generation (RAG) samples using Azure AI Foundry for file search and document grounding.
- Developed multi-agent workflows demonstrating collaboration between agents in various scenarios.
- Added tools for vision analysis, code interpretation, and Bing grounding to enhance agent capabilities.
- Implemented AGUI protocol client and server for interactive agent communication.
- Added OpenTelemetry tracing for monitoring agent workflows.
- Introduced YAML-based declarative workflow creation for Azure AI Foundry.
- Suppressed experimental API warnings and set up .NET SDK versioning in project configuration.
…ub Models, Azure AI Foundry, and Foundry Local

- Implemented .NET sample for GitHub Models using OpenAIClient and AIAgent.
- Created .NET sample for Azure AI Foundry with AIProjectClient and agent creation.
- Developed .NET sample for Foundry Local demonstrating local agent execution.
- Added Python notebooks for Azure OpenAI, GitHub Models, Azure AI Foundry, and Foundry Local showcasing agent capabilities and integration patterns.
- Included README files for each sample to guide setup and usage.
- Implement basic workflow with GitHub model in `01.dotnet-agent-framework-workflow-ghmodel-basic/app.cs`
- Create sequential workflow for furniture pricing and quoting in `02.dotnet-agent-framework-workflow-ghmodel-sequential/app.cs`
- Develop concurrent workflow for travel planning in `03.dotnet-agent-framework-workflow-ghmodel-concurrent/app.cs`
- Add conditional workflow sample with MSFoundry in `04.dotnet-agent-framework-workflow-msfoundry-condition/app.cs`
- Integrate OpenTelemetry for monitoring in AI workflows in `GHModel.dotNET.AI.Workflow.OpenTelemetry/app.cs`
- Create YAML-based workflow execution in `CreateWorkflowWithYAML/app.cs`
… workflow in .NET

- Added a comprehensive RAG sample in `06.RAGs/code_samples/dotNET/dotnet-agent-framework-msfoundry-file-search/app.cs` demonstrating document upload, indexing, agent creation, and multi-turn querying.
- Developed a conditional workflow example in `07.Workflow/code_samples/dotNET/04.dotnet-agent-framework-workflow-msfoundry-condition/Program.cs` showcasing agent interactions based on review outcomes.
- Updated README files to reflect new features and provide clearer instructions on the conditional workflow.
- Created foundational agent example in `01.AgentFoundation/code_samples/dotNET/dotnet-agent-foundation/` illustrating the core building blocks of a Microsoft Agent Framework agent.
- Added project files and configurations for the new agent foundation sample.
@kinfey
Copy link
Contributor

kinfey commented Mar 4, 2026

okay thanks @elbruno

@leestott
Copy link
Contributor

leestott commented Mar 4, 2026

@elbruno can you rebase to fix the conflicts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants