Skip to content

A programming framework for agentic AI

event flow added

Kosta Petan0e8487949695
diff --git a/docs/github-flow.md b/docs/github-flow.md
index 5be43fdda..89b2e0f7f 100644
--- a/docs/github-flow.md
+++ b/docs/github-flow.md
@@ -1 +1,68 @@
-![](/docs/images/github-sk-dev-team.png)
\ No newline at end of file
+![](/docs/images/github-sk-dev-team.png)
+
+# How does the event flow look like?
+
+
+### Hubber agent handles:
+ ```
+ NewAsk
+ -> create PM issue
+ -> create DevLead issue
+```
+```
+ ReadmeGenerated
+ -> post comment
+```
+```
+ DevPlanGenerated
+ -> post comment
+```
+```
+ DevPlanFinished
+ -> for each step, create Dev issue
+```
+```
+ CodeGenerated
+ -> post comment
+```
+
+### AzureOps agent handles:
+```
+ ReadmeFinished
+ -> store
+```
+```
+ CodeFinished
+ -> store
+ -> run in sandbox
+```
+
+### PM agent handles:
+```
+ ReadmeRequested
+ -> ReadmeGenerated
+```
+```
+ ChainClosed
+ -> ReadmeFinished
+```
+
+### DevLead agent handles:
+```
+ DevPlanRequested
+ -> DevPlanGenerated
+```
+```
+ ChainClosed
+ -> DevPlanFinished
+```
+
+### Dev handles:
+```
+ CodeGenerationRequested
+ -> CodeGenerated
+```
+```
+ ChainClosed
+ -> CodeFinished
+```
\ No newline at end of file
diff --git a/src/apps/gh-flow/Program.cs b/src/apps/gh-flow/Program.cs
index 6230c1028..945b8290d 100644
--- a/src/apps/gh-flow/Program.cs
+++ b/src/apps/gh-flow/Program.cs
@@ -11,7 +11,6 @@ using Microsoft.SemanticKernel.Plugins.Memory;
using Microsoft.SemanticKernel.Reliability.Basic;
using Octokit.Webhooks;
using Octokit.Webhooks.AspNetCore;
-using Orleans.Configuration;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddSingleton<WebhookEventProcessor, GithubWebHookProcessor>();
diff --git a/src/apps/gh-flow/Services/GithubWebHookProcessor.cs b/src/apps/gh-flow/Services/GithubWebHookProcessor.cs
index 1093a9c70..ea9e342d1 100644
--- a/src/apps/gh-flow/Services/GithubWebHookProcessor.cs
+++ b/src/apps/gh-flow/Services/GithubWebHookProcessor.cs
@@ -39,30 +39,6 @@ public sealed class GithubWebHookProcessor : WebhookEventProcessor
.ToDictionary(parts => parts[0], parts => parts[1]);
var skillName = labels.Keys.Where(k=>k != "Parent").FirstOrDefault();
long? parentNumber = labels.ContainsKey("Parent") ? long.Parse(labels["Parent"]) : null;
- // TODO: confert the non-parent label to skill and function
- // Issue 1
- // Sub issue 2
- // sub issue 3
-
- // org+repo+1
- // PM org+repo+1
- // DevLead org+repo+1
-
- // NewAskReadme
- // PM+2
-
- // NewAskPlan
- // DevLead+3
-
- // Dev org+repo+1
- // Dev+4
- // Dev+5
- // Dev+6
-
- // org+repo+2
- // DevLead
- // org+repo+3
- // PM
var suffix = $"{org}-{repo}";
if (issuesEvent.Action == IssuesAction.Opened)
diff --git a/src/libs/Microsoft.AI.DevTeam/Agents/Agent.cs b/src/libs/Microsoft.AI.DevTeam/Agents/Agent.cs
index fa5440b2c..f1c8094a0 100644
--- a/src/libs/Microsoft.AI.DevTeam/Agents/Agent.cs
+++ b/src/libs/Microsoft.AI.DevTeam/Agents/Agent.cs
@@ -1,4 +1,3 @@
-using Microsoft.SemanticKernel;
using Microsoft.SemanticKernel.Memory;
using Microsoft.SemanticKernel.Orchestration;
using Orleans.Runtime;