Fix formatting

This commit is contained in:
Javier Calvarro Nelson
2025-12-02 14:49:33 +01:00
parent 5160d381b1
commit dd267778b9
4 changed files with 4 additions and 5 deletions
@@ -1,7 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.
using AGUIDojoServer;
using Microsoft.Agents.AI.Hosting.AGUI.AspNetCore;
using Microsoft.AspNetCore.HttpLogging;
using Microsoft.Extensions.Options;
@@ -4,7 +4,6 @@ using System.ComponentModel;
using AGUIServer;
using Azure.AI.OpenAI;
using Azure.Identity;
using Microsoft.Agents.AI.Hosting.AGUI.AspNetCore;
using Microsoft.Extensions.AI;
using OpenAI;
@@ -4,6 +4,7 @@ using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Text.Json;
using System.Threading;
using Microsoft.Agents.AI;
using Microsoft.Agents.AI.Hosting;
@@ -109,8 +110,8 @@ public static class MicrosoftAgentAIHostingAGUIEndpointRouteBuilderExtensions
return Results.BadRequest();
}
IOptions<Microsoft.AspNetCore.Http.Json.JsonOptions> jsonOptions = context.RequestServices.GetRequiredService<IOptions<Microsoft.AspNetCore.Http.Json.JsonOptions>>();
System.Text.Json.JsonSerializerOptions jsonSerializerOptions = jsonOptions.Value.SerializerOptions;
IOptions<Http.Json.JsonOptions> jsonOptions = context.RequestServices.GetRequiredService<IOptions<Http.Json.JsonOptions>>();
JsonSerializerOptions jsonSerializerOptions = jsonOptions.Value.SerializerOptions;
IEnumerable<ChatMessage> messages = input.Messages.AsChatMessages(jsonSerializerOptions);
List<AITool>? clientTools = input.Tools?.AsAITools().ToList();
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft. All rights reserved.
// Copyright (c) Microsoft. All rights reserved.
using System;
using Microsoft.AspNetCore.Builder;