mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
fix sample (#1008)
This commit is contained in:
committed by
GitHub
Unverified
parent
b42bb700fb
commit
f8ad327651
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user