Skip to content

tommasodotNET/process-framework-aspire

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Process Framework with .NET Aspire

This demo aims to showcase how the Semantic Kernel Process Framework can be used with .NET Aspire. The Process Framework allows developers to create business processes based on events. Each step of the process can be an agent or native code.

In this demo, I have defined the agents as external services, and each step will call these agents using HTTP requests. This setup allows .NET Aspire to add value by tracing the process using OpenTelemetry. Additionally, since each agent is a service, they can be restarted as needed using the .NET Aspire developer dashboard.

Architecture

The business logic of this sample is pretty simple: we want to define a process that will translate some text in English and will then summarize it.

Architecture Diagram

Running with .NET Aspire

To run thi sample with .NET Aspire, simply clone the repository and run the following command:

cd scr/ProcessFramework.Aspire/ProcessFramework.Aspire.AppHost
dotnet run

We will see in the browser a dashboard that looks like this: Aspire Dashboard

By invoking the ProcessOrchestrator service, we can start the process. I've provided a http file with a predefined request to start the process.

This will generate a trace in the Aspire dashboard that looks like this: Aspire Trace

And we can also monitor the metrics of each agents in the Metrics tab: Aspire Metrics

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages