From f8ad32765156d22653568d58f37fe4fd9e959566 Mon Sep 17 00:00:00 2001 From: Korolev Dmitry Date: Tue, 30 Sep 2025 14:08:35 +0200 Subject: [PATCH] fix sample (#1008) --- .../WebApplicationExtensions.cs | 2 +- .../Microsoft.Agents.AI.Workflows/WorkflowHostingExtensions.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dotnet/src/Microsoft.Agents.AI.Hosting.A2A.AspNetCore/WebApplicationExtensions.cs b/dotnet/src/Microsoft.Agents.AI.Hosting.A2A.AspNetCore/WebApplicationExtensions.cs index 3b9d21ac5d..a54342098f 100644 --- a/dotnet/src/Microsoft.Agents.AI.Hosting.A2A.AspNetCore/WebApplicationExtensions.cs +++ b/dotnet/src/Microsoft.Agents.AI.Hosting.A2A.AspNetCore/WebApplicationExtensions.cs @@ -63,7 +63,7 @@ public static class WebApplicationExtensions // note: current SDK version registers multiple `.well-known/agent.json` handlers here. // it makes app return HTTP 500, but will be fixed once new A2A SDK is released. // see https://github.com/microsoft/agent-framework/issues/476 for details - app.MapA2A(taskManager, path); + A2ARouteBuilderExtensions.MapA2A(app, taskManager, path); app.MapHttpA2A(taskManager, path); } diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows/WorkflowHostingExtensions.cs b/dotnet/src/Microsoft.Agents.AI.Workflows/WorkflowHostingExtensions.cs index aef92a7046..08e6b6df07 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows/WorkflowHostingExtensions.cs +++ b/dotnet/src/Microsoft.Agents.AI.Workflows/WorkflowHostingExtensions.cs @@ -41,7 +41,7 @@ public static class WorkflowHostingExtensions throw new InvalidOperationException("Cannot host a workflow that does not accept List as an input"); } - return maybeTyped.AsAgent(); + return maybeTyped.AsAgent(id, name); } internal static FunctionCallContent ToFunctionCall(this ExternalRequest request)