Skip to content

Commit ea7c7af

Browse files
committed
Fix formatting
1 parent 5486923 commit ea7c7af

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

dotnet/src/Microsoft.Agents.AI.Hosting.AGUI.AspNetCore/AGUIEndpointRouteBuilderExtensions.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Microsoft. All rights reserved.
22

3-
using System;
4-
using System.Collections.Generic;
3+
using System.Diagnostics.CodeAnalysis;
54
using System.Threading;
65
using Microsoft.Agents.AI.Hosting.AGUI.AspNetCore.Shared;
76
using Microsoft.AspNetCore.Builder;
@@ -28,7 +27,7 @@ public static class AGUIEndpointRouteBuilderExtensions
2827
/// <returns>An <see cref="IEndpointConventionBuilder"/> for the mapped endpoint.</returns>
2928
public static IEndpointConventionBuilder MapAGUI(
3029
this IEndpointRouteBuilder endpoints,
31-
string pattern,
30+
[StringSyntax("route")] string pattern,
3231
AIAgent aiAgent)
3332
{
3433
return endpoints.MapPost(pattern, async ([FromBody] RunAgentInput? input, HttpContext context, CancellationToken cancellationToken) =>

0 commit comments

Comments
 (0)