Skip to content

Conversation

@WhitWaldo
Copy link

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 Improvements or additions to documentation .NET labels Oct 22, 2025
Copy link
Contributor

Copilot AI left a comment

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

@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
Copy link

yaron2 commented Oct 28, 2025

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

</PropertyGroup>

<ItemGroup>
<PackageReference Include="Dapr.AI.Microsoft.Extensions" />
Copy link
Member

Choose a reason for hiding this comment

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

Neat, I wasn't aware this existed.

Copy link
Author

Choose a reason for hiding this comment

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

I just added it in the last Dapr release - it wraps Dapr's Conversation building block.

That's odd the IDE added it a second time.

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

Labels

documentation Improvements or additions to documentation .NET samples Issue relates to the samples

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants