From 7fa6a304d8bc98c1c04464ac41dbdd3e194651f3 Mon Sep 17 00:00:00 2001 From: Chris Rickman Date: Fri, 6 Mar 2026 11:33:37 -0800 Subject: [PATCH] Sample format --- .../Agent_Step18_CompactionPipeline/Program.cs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/dotnet/samples/02-agents/Agents/Agent_Step18_CompactionPipeline/Program.cs b/dotnet/samples/02-agents/Agents/Agent_Step18_CompactionPipeline/Program.cs index d51fc75621..9885bc0f97 100644 --- a/dotnet/samples/02-agents/Agents/Agent_Step18_CompactionPipeline/Program.cs +++ b/dotnet/samples/02-agents/Agents/Agent_Step18_CompactionPipeline/Program.cs @@ -88,7 +88,9 @@ void PrintChatHistory() { if (session.TryGetInMemoryChatHistory(out var history)) { - Console.WriteLine($" [Chat history: {history.Count} messages]\n"); + Console.ForegroundColor = ConsoleColor.Cyan; + Console.WriteLine($"\n[Messages: x{history.Count}]\n"); + Console.ResetColor(); } } @@ -106,7 +108,13 @@ string[] prompts = foreach (string prompt in prompts) { - Console.WriteLine($"User: {prompt}"); - Console.WriteLine($"Agent: {await agent.RunAsync(prompt, session)}"); + Console.ForegroundColor = ConsoleColor.Cyan; + Console.Write("\n[User] "); + Console.ResetColor(); + Console.WriteLine(prompt); + Console.ForegroundColor = ConsoleColor.Cyan; + Console.Write("\n[Agent] "); + Console.ResetColor(); + Console.WriteLine(await agent.RunAsync(prompt, session)); PrintChatHistory(); }