feat: add rich run timeline backend

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
David Kaya
2026-03-24 00:04:47 +01:00
co-authored by Copilot
parent cf8c82b779
commit b742941559
16 changed files with 1072 additions and 26 deletions
@@ -182,6 +182,8 @@ public sealed class AgentActivityEventDto : SidecarEventDto
public string ActivityType { get; init; } = string.Empty;
public string? AgentId { get; init; }
public string? AgentName { get; init; }
public string? SourceAgentId { get; init; }
public string? SourceAgentName { get; init; }
public string? ToolName { get; init; }
}
@@ -173,6 +173,7 @@ public sealed class CopilotWorkflowRunner : ITurnWorkflowRunner
RunTurnCommandDto command,
string activityType,
AgentIdentity agent,
AgentIdentity? sourceAgent = null,
string? toolName = null)
{
return new AgentActivityEventDto
@@ -183,6 +184,8 @@ public sealed class CopilotWorkflowRunner : ITurnWorkflowRunner
ActivityType = activityType,
AgentId = agent.AgentId,
AgentName = agent.AgentName,
SourceAgentId = sourceAgent?.AgentId,
SourceAgentName = sourceAgent?.AgentName,
ToolName = toolName,
};
}
@@ -197,7 +200,8 @@ public sealed class CopilotWorkflowRunner : ITurnWorkflowRunner
return CreateActivityEvent(
command,
activityType: "handoff",
agent: handoffAgent);
agent: handoffAgent,
sourceAgent: activeAgent);
}
if (!activeAgent.HasValue || !TryGetToolName(requestInfo, out string toolName))