Skip to content

Commit a3e273c

Browse files
SessionFs structured error contract and codegen changes
1 parent b1b0df5 commit a3e273c

49 files changed

Lines changed: 20719 additions & 19881 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

dotnet/src/Client.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using Microsoft.Extensions.Logging;
77
using Microsoft.Extensions.Logging.Abstractions;
88
using StreamJsonRpc;
9+
using StreamJsonRpc.Protocol;
910
using System.Collections.Concurrent;
1011
using System.Data;
1112
using System.Diagnostics;
@@ -1106,7 +1107,7 @@ await Rpc.SessionFs.SetProviderAsync(
11061107
cancellationToken);
11071108
}
11081109

1109-
private void ConfigureSessionFsHandlers(CopilotSession session, Func<CopilotSession, ISessionFsHandler>? createSessionFsHandler)
1110+
private void ConfigureSessionFsHandlers(CopilotSession session, Func<CopilotSession, SessionFsProvider>? createSessionFsHandler)
11101111
{
11111112
if (_options.SessionFs is null)
11121113
{
@@ -1840,6 +1841,7 @@ private static LogLevel MapLevel(TraceEventType eventType)
18401841
AllowOutOfOrderMetadataProperties = true,
18411842
NumberHandling = JsonNumberHandling.AllowReadingFromString,
18421843
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull)]
1844+
[JsonSerializable(typeof(CommonErrorData))]
18431845
[JsonSerializable(typeof(CreateSessionRequest))]
18441846
[JsonSerializable(typeof(CreateSessionResponse))]
18451847
[JsonSerializable(typeof(CustomAgentConfig))]

0 commit comments

Comments
 (0)