fix sample (#1008)

This commit is contained in:
Korolev Dmitry
2025-09-30 14:08:35 +02:00
committed by GitHub
Unverified
parent b42bb700fb
commit f8ad327651
2 changed files with 2 additions and 2 deletions
@@ -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);
}
@@ -41,7 +41,7 @@ public static class WorkflowHostingExtensions
throw new InvalidOperationException("Cannot host a workflow that does not accept List<ChatMessage> as an input");
}
return maybeTyped.AsAgent();
return maybeTyped.AsAgent(id, name);
}
internal static FunctionCallContent ToFunctionCall(this ExternalRequest request)