-
Notifications
You must be signed in to change notification settings - Fork 963
.NET: Added GettingStarted example demonstrating Dapr as an agent provider #1615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…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>
There was a problem hiding this 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 |
dotnet/samples/GettingStarted/AgentProviders/Agent_With_Dapr/README.md
Outdated
Show resolved
Hide resolved
dotnet/samples/GettingStarted/AgentProviders/Agent_With_Dapr/Program.cs
Outdated
Show resolved
Hide resolved
…EADME.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
|
@stephentoub @DeagleGross Can we get some eyes on this? Thanks! |
| </PropertyGroup> | ||
|
|
||
| <ItemGroup> | ||
| <PackageReference Include="Dapr.AI.Microsoft.Extensions" /> |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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>
Added example demonstrating creating an AIAgent using the Microsoft.AI.Extensions implementation of
IChatClientusing 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
IChatClientfromMicrosoft.Extensions.AIusing 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