Skip to content

.NET: Added GettingStarted example demonstrating Dapr as an agent provider - #1615

Merged
rogerbarreto merged 14 commits into
microsoft:mainfrom
WhitWaldo:agent-with-dapr
Jul 22, 2026
Merged

.NET: Added GettingStarted example demonstrating Dapr as an agent provider#1615
rogerbarreto merged 14 commits into
microsoft:mainfrom
WhitWaldo:agent-with-dapr

Conversation

@WhitWaldo

Copy link
Copy Markdown
Contributor

Added example demonstrating creating an AIAgent using the Microsoft.AI.Extensions implementation of IChatClient using Dapr as the inference back-end provider pointing to Ollama in this example.

Motivation and Context

I'm the maintainer of the Dapr .NET SDK. In the last major release, I added a package to our SDK release to support IChatClient from Microsoft.Extensions.AI using Dapr's Conversation building block. As Microsoft only recently released this agentic framework, I was reading through the examples and saw a great opportunity to list the newly minted package as a sample agent implementation to the existing list.

Description

This doesn't change anything about the framework itself and only adds an agent provider to the existing list of samples. I've included a sample Dapr component file, provided instructions in the README at the project level explaining prerequisites and setup instructions and have otherwise minimized other changes (e.g. adding a line to the central package management under the appropriate section).

The other itself should otherwise be quite straightforward and keeping in line with the demonstration used in other similar samples.

Contribution Checklist

  • The code builds clean without any errors or warnings
  • The PR follows the Contribution Guidelines
  • All unit tests pass, and I have added new tests where possible
  • Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.

…I.Extensions implementation of IChatClient using Dapr as the inference backend provider - in this example, using Ollama

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Copilot AI review requested due to automatic review settings October 22, 2025 00:37
@markwallace-microsoft markwallace-microsoft added documentation Usage: [Issues, PRs], Target: documentation in the code base and learn docs .NET Usage: [Issues, PRs], Target: .Net labels Oct 22, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new sample demonstrating how to create an AIAgent using Dapr as the inference backend provider with Ollama. The sample follows the existing pattern of agent provider demonstrations and includes comprehensive setup instructions.

Key Changes:

  • Added a new Agent_With_Dapr sample project with documentation and component configuration
  • Registered the sample in the solution file and package dependencies
  • Updated the AgentProviders README to include the new Dapr sample

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
dotnet/samples/GettingStarted/AgentProviders/README.md Added entry for the new Dapr sample
dotnet/samples/GettingStarted/AgentProviders/Agent_With_Dapr/README.md Created documentation with prerequisites and setup instructions
dotnet/samples/GettingStarted/AgentProviders/Agent_With_Dapr/Program.cs Implemented sample demonstrating Dapr chat client integration
dotnet/samples/GettingStarted/AgentProviders/Agent_With_Dapr/Components/conversation-ollama.yaml Added Dapr component configuration for Ollama
dotnet/samples/GettingStarted/AgentProviders/Agent_With_Dapr/Agent_With_Dapr.csproj Created project file with necessary dependencies
dotnet/agent-framework-dotnet.slnx Registered new project in solution
dotnet/Directory.Packages.props Added Dapr.AI.Microsoft.Extensions package reference

Comment thread dotnet/samples/GettingStarted/AgentProviders/Agent_With_Dapr/README.md Outdated
Comment thread dotnet/samples/GettingStarted/AgentProviders/Agent_With_Dapr/Program.cs Outdated
@github-actions github-actions Bot changed the title Added GettingStarted example demonstrating Dapr as an agent provider .NET: Added GettingStarted example demonstrating Dapr as an agent provider Oct 22, 2025
@yaron2

yaron2 commented Oct 28, 2025

Copy link
Copy Markdown

@stephentoub @DeagleGross Can we get some eyes on this? Thanks!

Comment thread dotnet/agent-framework-dotnet.slnx Outdated
That's odd the IDE added it a second time.

Co-authored-by: westey <164392973+westey-m@users.noreply.github.com>
This was referenced Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Usage: [Issues, PRs], Target: documentation in the code base and learn docs .NET Usage: [Issues, PRs], Target: .Net

Projects

None yet

Development

Successfully merging this pull request may close these issues.