diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CancelARun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CancelARun.g.cs index 7fbd39d9..50310cb6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CancelARun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CancelARun.g.cs @@ -113,7 +113,7 @@ partial void ProcessCancelARunResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.RunObject.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.RunObject.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessCancelARunResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.RunObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.RunObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateMessage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateMessage.g.cs index fbdeb41e..f04b93f7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateMessage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateMessage.g.cs @@ -72,7 +72,7 @@ partial void ProcessCreateMessageResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -122,7 +122,7 @@ partial void ProcessCreateMessageResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.MessageObject.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.MessageObject.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessCreateMessageResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.MessageObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.MessageObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateRun.g.cs index c27a1cf4..eb092a41 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateRun.g.cs @@ -80,7 +80,7 @@ partial void ProcessCreateRunResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -131,7 +131,7 @@ partial void ProcessCreateRunResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.RunObject.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.RunObject.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -162,7 +162,7 @@ partial void ProcessCreateRunResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.RunObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.RunObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateThread.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateThread.g.cs index 185a9fab..4c5ed2a8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateThread.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateThread.g.cs @@ -67,7 +67,7 @@ partial void ProcessCreateThreadResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -116,7 +116,7 @@ partial void ProcessCreateThreadResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ThreadObject.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ThreadObject.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessCreateThreadResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ThreadObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ThreadObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateThreadAndRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateThreadAndRun.g.cs index 52b9839b..ccde4efb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateThreadAndRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateThreadAndRun.g.cs @@ -67,7 +67,7 @@ partial void ProcessCreateThreadAndRunResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -116,7 +116,7 @@ partial void ProcessCreateThreadAndRunResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.RunObject.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.RunObject.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessCreateThreadAndRunResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.RunObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.RunObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.DeleteMessage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.DeleteMessage.g.cs index 7af3fd05..19ab07bc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.DeleteMessage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.DeleteMessage.g.cs @@ -113,7 +113,7 @@ partial void ProcessDeleteMessageResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.DeleteMessageResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.DeleteMessageResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessDeleteMessageResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.DeleteMessageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.DeleteMessageResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.DeleteThread.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.DeleteThread.g.cs index 76e6bbf1..f567dd14 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.DeleteThread.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.DeleteThread.g.cs @@ -107,7 +107,7 @@ partial void ProcessDeleteThreadResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.DeleteThreadResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.DeleteThreadResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessDeleteThreadResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.DeleteThreadResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.DeleteThreadResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListMessages.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListMessages.g.cs index e2242118..d2927430 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListMessages.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListMessages.g.cs @@ -148,7 +148,7 @@ partial void ProcessListMessagesResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListMessagesResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ListMessagesResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -179,7 +179,7 @@ partial void ProcessListMessagesResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListMessagesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListMessagesResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListRunSteps.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListRunSteps.g.cs index 3c2c45ca..afa80b3b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListRunSteps.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListRunSteps.g.cs @@ -154,7 +154,7 @@ partial void ProcessListRunStepsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListRunStepsResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ListRunStepsResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -185,7 +185,7 @@ partial void ProcessListRunStepsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListRunStepsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListRunStepsResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListRuns.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListRuns.g.cs index d0c556e8..893bc65e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListRuns.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListRuns.g.cs @@ -141,7 +141,7 @@ partial void ProcessListRunsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListRunsResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ListRunsResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -172,7 +172,7 @@ partial void ProcessListRunsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListRunsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListRunsResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyMessage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyMessage.g.cs index 38d469a4..5c80be24 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyMessage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyMessage.g.cs @@ -77,7 +77,7 @@ partial void ProcessModifyMessageResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -128,7 +128,7 @@ partial void ProcessModifyMessageResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.MessageObject.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.MessageObject.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessModifyMessageResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.MessageObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.MessageObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyRun.g.cs index d4c10162..c1b96428 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyRun.g.cs @@ -77,7 +77,7 @@ partial void ProcessModifyRunResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -128,7 +128,7 @@ partial void ProcessModifyRunResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.RunObject.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.RunObject.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessModifyRunResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.RunObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.RunObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyThread.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyThread.g.cs index cfb7f731..44e8f926 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyThread.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyThread.g.cs @@ -72,7 +72,7 @@ partial void ProcessModifyThreadResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -122,7 +122,7 @@ partial void ProcessModifyThreadResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ThreadObject.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ThreadObject.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessModifyThreadResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ThreadObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ThreadObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveMessage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveMessage.g.cs index 7551d0dd..7c2cf7c8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveMessage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveMessage.g.cs @@ -113,7 +113,7 @@ partial void ProcessRetrieveMessageResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.MessageObject.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.MessageObject.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessRetrieveMessageResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.MessageObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.MessageObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveRun.g.cs index b8033a7f..f0771100 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveRun.g.cs @@ -113,7 +113,7 @@ partial void ProcessRetrieveRunResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.RunObject.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.RunObject.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessRetrieveRunResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.RunObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.RunObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveRunStep.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveRunStep.g.cs index 3f0495aa..005f06de 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveRunStep.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveRunStep.g.cs @@ -128,7 +128,7 @@ partial void ProcessRetrieveRunStepResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.RunStepObject.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.RunStepObject.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessRetrieveRunStepResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.RunStepObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.RunStepObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveThread.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveThread.g.cs index 8fa3309e..bc9101df 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveThread.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveThread.g.cs @@ -107,7 +107,7 @@ partial void ProcessRetrieveThreadResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ThreadObject.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ThreadObject.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessRetrieveThreadResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ThreadObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ThreadObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.SubmitToolOutputsToRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.SubmitToolOutputsToRun.g.cs index 366c3f8a..9d428e62 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.SubmitToolOutputsToRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.SubmitToolOutputsToRun.g.cs @@ -77,7 +77,7 @@ partial void ProcessSubmitToolOutputsToRunResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -128,7 +128,7 @@ partial void ProcessSubmitToolOutputsToRunResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.RunObject.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.RunObject.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessSubmitToolOutputsToRunResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.RunObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.RunObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.g.cs index 35952340..2c5a65ae 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.g.cs @@ -34,7 +34,7 @@ public sealed partial class AssistantsClient : global::tryAGI.OpenAI.IAssistants /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateSpeech.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateSpeech.g.cs index 7ba53ce0..0e0722d7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateSpeech.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateSpeech.g.cs @@ -63,7 +63,7 @@ partial void ProcessCreateSpeechResponse( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -137,7 +137,7 @@ partial void ProcessCreateSpeechResponse( yield break; } - var __streamedResponse = global::tryAGI.OpenAI.CreateSpeechResponseStreamEvent.FromJson(__content, JsonSerializerContext) ?? + var __streamedResponse = global::tryAGI.OpenAI.CreateSpeechResponseStreamEvent.FromJson(__content, JsonSerializerOptions) ?? throw new global::tryAGI.OpenAI.ApiException( message: $"Response deserialization failed for \"{__content}\" ", statusCode: __response.StatusCode) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscription.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscription.g.cs index 8f0ef26c..c4485a84 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscription.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscription.g.cs @@ -212,7 +212,7 @@ partial void ProcessCreateTranscriptionResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.OneOf.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.OneOf.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -243,7 +243,7 @@ partial void ProcessCreateTranscriptionResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.OneOf.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.OneOf.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscriptionAsStream.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscriptionAsStream.g.cs index c2610081..23442070 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscriptionAsStream.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscriptionAsStream.g.cs @@ -232,7 +232,7 @@ partial void ProcessCreateTranscriptionAsStreamResponse( yield break; } - var __streamedResponse = global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEvent.FromJson(__content, JsonSerializerContext) ?? + var __streamedResponse = global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEvent.FromJson(__content, JsonSerializerOptions) ?? throw new global::tryAGI.OpenAI.ApiException( message: $"Response deserialization failed for \"{__content}\" ", statusCode: __response.StatusCode) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranslation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranslation.g.cs index 16673398..62c5b643 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranslation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranslation.g.cs @@ -145,7 +145,7 @@ partial void ProcessCreateTranslationResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.OneOf.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.OneOf.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -176,7 +176,7 @@ partial void ProcessCreateTranslationResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.OneOf.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.OneOf.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateVoice.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateVoice.g.cs index e96824af..8146eebe 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateVoice.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateVoice.g.cs @@ -129,7 +129,7 @@ partial void ProcessCreateVoiceResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VoiceResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.VoiceResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessCreateVoiceResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VoiceResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VoiceResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateVoiceConsent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateVoiceConsent.g.cs index ff409ad3..75caf120 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateVoiceConsent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateVoiceConsent.g.cs @@ -129,7 +129,7 @@ partial void ProcessCreateVoiceConsentResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VoiceConsentResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.VoiceConsentResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessCreateVoiceConsentResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VoiceConsentResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VoiceConsentResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.DeleteVoiceConsent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.DeleteVoiceConsent.g.cs index bbc6f65f..52d5dbe3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.DeleteVoiceConsent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.DeleteVoiceConsent.g.cs @@ -109,7 +109,7 @@ partial void ProcessDeleteVoiceConsentResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VoiceConsentDeletedResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.VoiceConsentDeletedResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -140,7 +140,7 @@ partial void ProcessDeleteVoiceConsentResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VoiceConsentDeletedResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VoiceConsentDeletedResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.ListVoiceConsents.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.ListVoiceConsents.g.cs index 318591aa..15a4557d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.ListVoiceConsents.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.ListVoiceConsents.g.cs @@ -121,7 +121,7 @@ partial void ProcessListVoiceConsentsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VoiceConsentListResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.VoiceConsentListResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -152,7 +152,7 @@ partial void ProcessListVoiceConsentsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VoiceConsentListResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VoiceConsentListResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.RetrieveVoiceConsent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.RetrieveVoiceConsent.g.cs index 00f82580..8fa16a30 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.RetrieveVoiceConsent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.RetrieveVoiceConsent.g.cs @@ -109,7 +109,7 @@ partial void ProcessRetrieveVoiceConsentResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VoiceConsentResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.VoiceConsentResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -140,7 +140,7 @@ partial void ProcessRetrieveVoiceConsentResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VoiceConsentResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VoiceConsentResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.UpdateVoiceConsent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.UpdateVoiceConsent.g.cs index 86d24386..cadba81a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.UpdateVoiceConsent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.UpdateVoiceConsent.g.cs @@ -74,7 +74,7 @@ partial void ProcessUpdateVoiceConsentResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -124,7 +124,7 @@ partial void ProcessUpdateVoiceConsentResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VoiceConsentResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.VoiceConsentResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -155,7 +155,7 @@ partial void ProcessUpdateVoiceConsentResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VoiceConsentResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VoiceConsentResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.g.cs index eda5a4ad..0eeeb1c3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.g.cs @@ -34,7 +34,7 @@ public sealed partial class AudioClient : global::tryAGI.OpenAI.IAudioClient, gl /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AuditLogsClient.ListAuditLogs.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AuditLogsClient.ListAuditLogs.g.cs index 1875471f..ec939400 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AuditLogsClient.ListAuditLogs.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AuditLogsClient.ListAuditLogs.g.cs @@ -171,7 +171,7 @@ partial void ProcessListAuditLogsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListAuditLogsResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ListAuditLogsResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -202,7 +202,7 @@ partial void ProcessListAuditLogsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListAuditLogsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListAuditLogsResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AuditLogsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AuditLogsClient.g.cs index 0cc23501..948afba2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AuditLogsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AuditLogsClient.g.cs @@ -34,7 +34,7 @@ public sealed partial class AuditLogsClient : global::tryAGI.OpenAI.IAuditLogsCl /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.CancelBatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.CancelBatch.g.cs index 9cf90acc..8ad6125c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.CancelBatch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.CancelBatch.g.cs @@ -107,7 +107,7 @@ partial void ProcessCancelBatchResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Batch.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.Batch.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessCancelBatchResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Batch.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Batch.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.CreateBatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.CreateBatch.g.cs index 7705fa69..8510570d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.CreateBatch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.CreateBatch.g.cs @@ -67,7 +67,7 @@ partial void ProcessCreateBatchResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -116,7 +116,7 @@ partial void ProcessCreateBatchResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Batch.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.Batch.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessCreateBatchResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Batch.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Batch.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.ListBatches.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.ListBatches.g.cs index c95e4157..9897cf2d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.ListBatches.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.ListBatches.g.cs @@ -119,7 +119,7 @@ partial void ProcessListBatchesResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListBatchesResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ListBatchesResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -150,7 +150,7 @@ partial void ProcessListBatchesResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListBatchesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListBatchesResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.RetrieveBatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.RetrieveBatch.g.cs index 49de9ded..5370801a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.RetrieveBatch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.RetrieveBatch.g.cs @@ -107,7 +107,7 @@ partial void ProcessRetrieveBatchResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Batch.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.Batch.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessRetrieveBatchResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Batch.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Batch.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.g.cs index 94d76307..c5a798dc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.g.cs @@ -34,7 +34,7 @@ public sealed partial class BatchClient : global::tryAGI.OpenAI.IBatchClient, gl /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateCertificatesForOrganization.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateCertificatesForOrganization.g.cs index 9bfaad6d..a289a3a9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateCertificatesForOrganization.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateCertificatesForOrganization.g.cs @@ -68,7 +68,7 @@ partial void ProcessActivateCertificatesForOrganizationResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessActivateCertificatesForOrganizationResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListCertificatesResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ListCertificatesResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessActivateCertificatesForOrganizationResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListCertificatesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListCertificatesResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateCertificatesForProject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateCertificatesForProject.g.cs index ac613c2c..9504f2c3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateCertificatesForProject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateCertificatesForProject.g.cs @@ -73,7 +73,7 @@ partial void ProcessActivateCertificatesForProjectResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessActivateCertificatesForProjectResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListCertificatesResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ListCertificatesResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessActivateCertificatesForProjectResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListCertificatesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListCertificatesResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateCertificatesForOrganization.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateCertificatesForOrganization.g.cs index 59e876bb..0c76d873 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateCertificatesForOrganization.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateCertificatesForOrganization.g.cs @@ -68,7 +68,7 @@ partial void ProcessDeactivateCertificatesForOrganizationResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessDeactivateCertificatesForOrganizationResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListCertificatesResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ListCertificatesResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessDeactivateCertificatesForOrganizationResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListCertificatesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListCertificatesResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateCertificatesForProject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateCertificatesForProject.g.cs index 28945ad4..88bca9e2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateCertificatesForProject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateCertificatesForProject.g.cs @@ -73,7 +73,7 @@ partial void ProcessDeactivateCertificatesForProjectResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessDeactivateCertificatesForProjectResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListCertificatesResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ListCertificatesResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessDeactivateCertificatesForProjectResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListCertificatesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListCertificatesResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeleteCertificate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeleteCertificate.g.cs index 35b478df..c025baa2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeleteCertificate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeleteCertificate.g.cs @@ -108,7 +108,7 @@ partial void ProcessDeleteCertificateResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.DeleteCertificateResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.DeleteCertificateResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessDeleteCertificateResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.DeleteCertificateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.DeleteCertificateResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.GetCertificate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.GetCertificate.g.cs index 2d4a37ea..c6e8e4e4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.GetCertificate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.GetCertificate.g.cs @@ -117,7 +117,7 @@ partial void ProcessGetCertificateResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Certificate.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.Certificate.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessGetCertificateResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Certificate.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Certificate.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ListOrganizationCertificates.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ListOrganizationCertificates.g.cs index 301a9ce2..e1ff8633 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ListOrganizationCertificates.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ListOrganizationCertificates.g.cs @@ -128,7 +128,7 @@ partial void ProcessListOrganizationCertificatesResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListCertificatesResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ListCertificatesResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessListOrganizationCertificatesResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListCertificatesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListCertificatesResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ListProjectCertificates.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ListProjectCertificates.g.cs index e7d0fcbc..5c91a112 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ListProjectCertificates.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ListProjectCertificates.g.cs @@ -134,7 +134,7 @@ partial void ProcessListProjectCertificatesResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListCertificatesResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ListCertificatesResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -165,7 +165,7 @@ partial void ProcessListProjectCertificatesResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListCertificatesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListCertificatesResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ModifyCertificate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ModifyCertificate.g.cs index a49af9ef..970b5c8a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ModifyCertificate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ModifyCertificate.g.cs @@ -72,7 +72,7 @@ partial void ProcessModifyCertificateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -122,7 +122,7 @@ partial void ProcessModifyCertificateResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Certificate.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.Certificate.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessModifyCertificateResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Certificate.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Certificate.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.UploadCertificate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.UploadCertificate.g.cs index 9adcfee5..6ee014e7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.UploadCertificate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.UploadCertificate.g.cs @@ -68,7 +68,7 @@ partial void ProcessUploadCertificateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessUploadCertificateResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Certificate.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.Certificate.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessUploadCertificateResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Certificate.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Certificate.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.g.cs index ec9262f9..c7b29a1b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class CertificatesClient : global::tryAGI.OpenAI.ICertific /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.CreateChatCompletion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.CreateChatCompletion.g.cs index 5d9be57a..f110a2c8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.CreateChatCompletion.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.CreateChatCompletion.g.cs @@ -78,7 +78,7 @@ partial void ProcessCreateChatCompletionResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -127,7 +127,7 @@ partial void ProcessCreateChatCompletionResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.CreateChatCompletionResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.CreateChatCompletionResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -158,7 +158,7 @@ partial void ProcessCreateChatCompletionResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.CreateChatCompletionResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.CreateChatCompletionResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.CreateChatCompletionAsStream.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.CreateChatCompletionAsStream.g.cs index f4854ed0..753d0523 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.CreateChatCompletionAsStream.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.CreateChatCompletionAsStream.g.cs @@ -73,7 +73,7 @@ partial void ProcessCreateChatCompletionAsStreamResponse( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -147,7 +147,7 @@ partial void ProcessCreateChatCompletionAsStreamResponse( yield break; } - var __streamedResponse = global::tryAGI.OpenAI.CreateChatCompletionStreamResponse.FromJson(__content, JsonSerializerContext) ?? + var __streamedResponse = global::tryAGI.OpenAI.CreateChatCompletionStreamResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::tryAGI.OpenAI.ApiException( message: $"Response deserialization failed for \"{__content}\" ", statusCode: __response.StatusCode) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.DeleteChatCompletion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.DeleteChatCompletion.g.cs index b48ba25e..9fb3d043 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.DeleteChatCompletion.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.DeleteChatCompletion.g.cs @@ -108,7 +108,7 @@ partial void ProcessDeleteChatCompletionResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ChatCompletionDeleted.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ChatCompletionDeleted.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessDeleteChatCompletionResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ChatCompletionDeleted.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ChatCompletionDeleted.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatCompletion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatCompletion.g.cs index 7ef8d115..301916b2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatCompletion.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatCompletion.g.cs @@ -108,7 +108,7 @@ partial void ProcessGetChatCompletionResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.CreateChatCompletionResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.CreateChatCompletionResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessGetChatCompletionResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.CreateChatCompletionResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.CreateChatCompletionResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatMessages.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatMessages.g.cs index 439c7697..fce6fd81 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatMessages.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatMessages.g.cs @@ -136,7 +136,7 @@ partial void ProcessGetChatMessagesResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ChatCompletionMessageList.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ChatCompletionMessageList.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -167,7 +167,7 @@ partial void ProcessGetChatMessagesResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ChatCompletionMessageList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ChatCompletionMessageList.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.ListChatCompletions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.ListChatCompletions.g.cs index 6e4ba677..091bcdd5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.ListChatCompletions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.ListChatCompletions.g.cs @@ -143,7 +143,7 @@ partial void ProcessListChatCompletionsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ChatCompletionList.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ChatCompletionList.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -174,7 +174,7 @@ partial void ProcessListChatCompletionsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ChatCompletionList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ChatCompletionList.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.UpdateChatCompletion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.UpdateChatCompletion.g.cs index 06434ccb..c504adee 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.UpdateChatCompletion.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.UpdateChatCompletion.g.cs @@ -74,7 +74,7 @@ partial void ProcessUpdateChatCompletionResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -124,7 +124,7 @@ partial void ProcessUpdateChatCompletionResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.CreateChatCompletionResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.CreateChatCompletionResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -155,7 +155,7 @@ partial void ProcessUpdateChatCompletionResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.CreateChatCompletionResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.CreateChatCompletionResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.g.cs index ade1fbfe..258bc9be 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.g.cs @@ -34,7 +34,7 @@ public sealed partial class ChatClient : global::tryAGI.OpenAI.IChatClient, glob /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CompletionsClient.CreateCompletion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CompletionsClient.CreateCompletion.g.cs index e23a3380..8a0ceb02 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CompletionsClient.CreateCompletion.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CompletionsClient.CreateCompletion.g.cs @@ -68,7 +68,7 @@ partial void ProcessCreateCompletionResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessCreateCompletionResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.CreateCompletionResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.CreateCompletionResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessCreateCompletionResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.CreateCompletionResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.CreateCompletionResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CompletionsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CompletionsClient.g.cs index c0e74566..0d17501f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CompletionsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CompletionsClient.g.cs @@ -34,7 +34,7 @@ public sealed partial class CompletionsClient : global::tryAGI.OpenAI.ICompletio /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.CreateAConversation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.CreateAConversation.g.cs index 0f461968..7eb046b3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.CreateAConversation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.CreateAConversation.g.cs @@ -67,7 +67,7 @@ partial void ProcessCreateAConversationResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -116,7 +116,7 @@ partial void ProcessCreateAConversationResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ConversationResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ConversationResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessCreateAConversationResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ConversationResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ConversationResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.CreateItems.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.CreateItems.g.cs index 112fef26..3483e6b2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.CreateItems.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.CreateItems.g.cs @@ -82,7 +82,7 @@ partial void ProcessCreateItemsResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -133,7 +133,7 @@ partial void ProcessCreateItemsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ConversationItemList.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ConversationItemList.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -164,7 +164,7 @@ partial void ProcessCreateItemsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ConversationItemList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ConversationItemList.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.DeleteAConversation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.DeleteAConversation.g.cs index 2fec4669..995f5f5e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.DeleteAConversation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.DeleteAConversation.g.cs @@ -109,7 +109,7 @@ partial void ProcessDeleteAConversationResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.DeletedConversationResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.DeletedConversationResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -140,7 +140,7 @@ partial void ProcessDeleteAConversationResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.DeletedConversationResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.DeletedConversationResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.DeleteAnItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.DeleteAnItem.g.cs index 8ede9109..03d34277 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.DeleteAnItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.DeleteAnItem.g.cs @@ -117,7 +117,7 @@ partial void ProcessDeleteAnItemResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ConversationResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ConversationResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessDeleteAnItemResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ConversationResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ConversationResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.ListItems.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.ListItems.g.cs index 1dd87a04..25a404d6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.ListItems.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.ListItems.g.cs @@ -141,7 +141,7 @@ partial void ProcessListItemsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ConversationItemList.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ConversationItemList.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -172,7 +172,7 @@ partial void ProcessListItemsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ConversationItemList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ConversationItemList.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.RetrieveAConversation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.RetrieveAConversation.g.cs index 4f6fdfa5..dc3608ec 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.RetrieveAConversation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.RetrieveAConversation.g.cs @@ -109,7 +109,7 @@ partial void ProcessRetrieveAConversationResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ConversationResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ConversationResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -140,7 +140,7 @@ partial void ProcessRetrieveAConversationResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ConversationResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ConversationResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.RetrieveAnItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.RetrieveAnItem.g.cs index 72e9e12e..db8e24c6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.RetrieveAnItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.RetrieveAnItem.g.cs @@ -126,7 +126,7 @@ partial void ProcessRetrieveAnItemResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ConversationItem.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ConversationItem.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -157,7 +157,7 @@ partial void ProcessRetrieveAnItemResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ConversationItem.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ConversationItem.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.UpdateAConversation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.UpdateAConversation.g.cs index aefc932c..474462ba 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.UpdateAConversation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.UpdateAConversation.g.cs @@ -74,7 +74,7 @@ partial void ProcessUpdateAConversationResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -124,7 +124,7 @@ partial void ProcessUpdateAConversationResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ConversationResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ConversationResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -155,7 +155,7 @@ partial void ProcessUpdateAConversationResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ConversationResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ConversationResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.g.cs index ee4daf8b..8a765a19 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.g.cs @@ -34,7 +34,7 @@ public sealed partial class ConversationsClient : global::tryAGI.OpenAI.IConvers /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EmbeddingsClient.CreateEmbeddings.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EmbeddingsClient.CreateEmbeddings.g.cs index ef04818b..af607aef 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EmbeddingsClient.CreateEmbeddings.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EmbeddingsClient.CreateEmbeddings.g.cs @@ -67,7 +67,7 @@ partial void ProcessCreateEmbeddingsResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -116,7 +116,7 @@ partial void ProcessCreateEmbeddingsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.CreateEmbeddingResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.CreateEmbeddingResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessCreateEmbeddingsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.CreateEmbeddingResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.CreateEmbeddingResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EmbeddingsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EmbeddingsClient.g.cs index c407fc55..01d4c1cd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EmbeddingsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EmbeddingsClient.g.cs @@ -34,7 +34,7 @@ public sealed partial class EmbeddingsClient : global::tryAGI.OpenAI.IEmbeddings /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CancelEvalRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CancelEvalRun.g.cs index bf8e5f29..7f312e3c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CancelEvalRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CancelEvalRun.g.cs @@ -113,7 +113,7 @@ partial void ProcessCancelEvalRunResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.EvalRun.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.EvalRun.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessCancelEvalRunResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.EvalRun.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.EvalRun.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CreateEval.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CreateEval.g.cs index 4a9bcb92..10129da0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CreateEval.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CreateEval.g.cs @@ -71,7 +71,7 @@ partial void ProcessCreateEvalResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -120,7 +120,7 @@ partial void ProcessCreateEvalResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Eval.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.Eval.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -151,7 +151,7 @@ partial void ProcessCreateEvalResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Eval.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Eval.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CreateEvalRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CreateEvalRun.g.cs index 94f03ce1..322a3e67 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CreateEvalRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CreateEvalRun.g.cs @@ -72,7 +72,7 @@ partial void ProcessCreateEvalRunResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -110,13 +110,13 @@ partial void ProcessCreateEvalRunResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::tryAGI.OpenAI.Error.FromJson(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::tryAGI.OpenAI.Error.FromJson(__content_400, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessCreateEvalRunResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.EvalRun.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.EvalRun.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -191,7 +191,7 @@ partial void ProcessCreateEvalRunResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.EvalRun.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.EvalRun.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteAnEval.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteAnEval.g.cs index 7d09e30e..a14a6c0e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteAnEval.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteAnEval.g.cs @@ -95,13 +95,13 @@ partial void ProcessDeleteAnEvalResponseContent( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::tryAGI.OpenAI.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::tryAGI.OpenAI.Error.FromJson(__content_404, JsonSerializerOptions); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::tryAGI.OpenAI.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::tryAGI.OpenAI.Error.FromJson(__content_404, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -145,7 +145,7 @@ partial void ProcessDeleteAnEvalResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.DeleteEvalResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.DeleteEvalResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -176,7 +176,7 @@ partial void ProcessDeleteAnEvalResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.DeleteEvalResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.DeleteEvalResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteEvalRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteEvalRun.g.cs index 3959fdc7..527b5533 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteEvalRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteEvalRun.g.cs @@ -101,13 +101,13 @@ partial void ProcessDeleteEvalRunResponseContent( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::tryAGI.OpenAI.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::tryAGI.OpenAI.Error.FromJson(__content_404, JsonSerializerOptions); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::tryAGI.OpenAI.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::tryAGI.OpenAI.Error.FromJson(__content_404, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -151,7 +151,7 @@ partial void ProcessDeleteEvalRunResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.DeleteEvalRunResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.DeleteEvalRunResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -182,7 +182,7 @@ partial void ProcessDeleteEvalRunResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.DeleteEvalRunResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.DeleteEvalRunResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetAnEval.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetAnEval.g.cs index e4167b42..14548586 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetAnEval.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetAnEval.g.cs @@ -107,7 +107,7 @@ partial void ProcessGetAnEvalResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Eval.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.Eval.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessGetAnEvalResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Eval.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Eval.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetAnEvalRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetAnEvalRun.g.cs index 3d9aa01e..a4c55653 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetAnEvalRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetAnEvalRun.g.cs @@ -113,7 +113,7 @@ partial void ProcessGetAnEvalRunResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.EvalRun.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.EvalRun.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessGetAnEvalRunResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.EvalRun.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.EvalRun.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetAnOutputItemOfAnEvalRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetAnOutputItemOfAnEvalRun.g.cs index 6151c00b..12a29b12 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetAnOutputItemOfAnEvalRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetAnOutputItemOfAnEvalRun.g.cs @@ -119,7 +119,7 @@ partial void ProcessGetAnOutputItemOfAnEvalRunResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.EvalRunOutputItem.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.EvalRunOutputItem.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -150,7 +150,7 @@ partial void ProcessGetAnOutputItemOfAnEvalRunResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.EvalRunOutputItem.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.EvalRunOutputItem.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRunOutputItems.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRunOutputItems.g.cs index 2ee70046..07e616f7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRunOutputItems.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRunOutputItems.g.cs @@ -147,7 +147,7 @@ partial void ProcessGetEvalRunOutputItemsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.EvalRunOutputItemList.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.EvalRunOutputItemList.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -178,7 +178,7 @@ partial void ProcessGetEvalRunOutputItemsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.EvalRunOutputItemList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.EvalRunOutputItemList.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRuns.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRuns.g.cs index 7a443e8e..a7ad4bcc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRuns.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRuns.g.cs @@ -141,7 +141,7 @@ partial void ProcessGetEvalRunsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.EvalRunList.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.EvalRunList.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -172,7 +172,7 @@ partial void ProcessGetEvalRunsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.EvalRunList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.EvalRunList.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.ListEvals.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.ListEvals.g.cs index b3fdda51..9f952b34 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.ListEvals.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.ListEvals.g.cs @@ -137,7 +137,7 @@ partial void ProcessListEvalsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.EvalList.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.EvalList.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -168,7 +168,7 @@ partial void ProcessListEvalsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.EvalList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.EvalList.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.UpdateAnEval.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.UpdateAnEval.g.cs index 49ca2d21..c8dbc6e9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.UpdateAnEval.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.UpdateAnEval.g.cs @@ -72,7 +72,7 @@ partial void ProcessUpdateAnEvalResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -122,7 +122,7 @@ partial void ProcessUpdateAnEvalResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Eval.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.Eval.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessUpdateAnEvalResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Eval.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Eval.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.g.cs index dbb44bf2..cea32ee8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.g.cs @@ -34,7 +34,7 @@ public sealed partial class EvalsClient : global::tryAGI.OpenAI.IEvalsClient, gl /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.DeleteFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.DeleteFile.g.cs index fb605317..8da104e7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.DeleteFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.DeleteFile.g.cs @@ -107,7 +107,7 @@ partial void ProcessDeleteFileResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.DeleteFileResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.DeleteFileResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessDeleteFileResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.DeleteFileResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.DeleteFileResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.ListFiles.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.ListFiles.g.cs index 63bf70fe..cddad46e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.ListFiles.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.ListFiles.g.cs @@ -135,7 +135,7 @@ partial void ProcessListFilesResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListFilesResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ListFilesResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -166,7 +166,7 @@ partial void ProcessListFilesResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListFilesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListFilesResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.RetrieveFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.RetrieveFile.g.cs index a6c131ff..57d1fc26 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.RetrieveFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.RetrieveFile.g.cs @@ -107,7 +107,7 @@ partial void ProcessRetrieveFileResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.OpenAIFile.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.OpenAIFile.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessRetrieveFileResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.OpenAIFile.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.OpenAIFile.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.UploadFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.UploadFile.g.cs index 371588e8..75f2deb7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.UploadFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.UploadFile.g.cs @@ -145,7 +145,7 @@ partial void ProcessUploadFileResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.OpenAIFile.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.OpenAIFile.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -176,7 +176,7 @@ partial void ProcessUploadFileResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.OpenAIFile.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.OpenAIFile.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.g.cs index e5d8828f..0941f6f6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.g.cs @@ -34,7 +34,7 @@ public sealed partial class FilesClient : global::tryAGI.OpenAI.IFilesClient, gl /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CancelFineTuning.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CancelFineTuning.g.cs index bad50216..0c2d54b3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CancelFineTuning.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CancelFineTuning.g.cs @@ -109,7 +109,7 @@ partial void ProcessCancelFineTuningResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.FineTuningJob.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.FineTuningJob.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -140,7 +140,7 @@ partial void ProcessCancelFineTuningResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.FineTuningJob.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.FineTuningJob.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateCheckpointPermissions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateCheckpointPermissions.g.cs index 9f05b277..b5e74f90 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateCheckpointPermissions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateCheckpointPermissions.g.cs @@ -75,7 +75,7 @@ partial void ProcessCreateCheckpointPermissionsResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -125,7 +125,7 @@ partial void ProcessCreateCheckpointPermissionsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -156,7 +156,7 @@ partial void ProcessCreateCheckpointPermissionsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateFineTuningJob.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateFineTuningJob.g.cs index c86e4547..f998febf 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateFineTuningJob.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateFineTuningJob.g.cs @@ -71,7 +71,7 @@ partial void ProcessCreateFineTuningJobResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -120,7 +120,7 @@ partial void ProcessCreateFineTuningJobResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.FineTuningJob.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.FineTuningJob.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -151,7 +151,7 @@ partial void ProcessCreateFineTuningJobResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.FineTuningJob.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.FineTuningJob.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.DeleteCheckpointPermission.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.DeleteCheckpointPermission.g.cs index ab28390b..0578fab7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.DeleteCheckpointPermission.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.DeleteCheckpointPermission.g.cs @@ -118,7 +118,7 @@ partial void ProcessDeleteCheckpointPermissionResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.DeleteFineTuningCheckpointPermissionResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.DeleteFineTuningCheckpointPermissionResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -149,7 +149,7 @@ partial void ProcessDeleteCheckpointPermissionResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.DeleteFineTuningCheckpointPermissionResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.DeleteFineTuningCheckpointPermissionResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListCheckpointPermissions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListCheckpointPermissions.g.cs index 84372018..ead50d05 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListCheckpointPermissions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListCheckpointPermissions.g.cs @@ -144,7 +144,7 @@ partial void ProcessListCheckpointPermissionsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -175,7 +175,7 @@ partial void ProcessListCheckpointPermissionsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningCheckpoints.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningCheckpoints.g.cs index f7a1ba65..f504724d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningCheckpoints.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningCheckpoints.g.cs @@ -127,7 +127,7 @@ partial void ProcessListFineTuningCheckpointsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListFineTuningJobCheckpointsResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ListFineTuningJobCheckpointsResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -158,7 +158,7 @@ partial void ProcessListFineTuningCheckpointsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListFineTuningJobCheckpointsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListFineTuningJobCheckpointsResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningEvents.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningEvents.g.cs index eacaad10..c046c8e9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningEvents.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningEvents.g.cs @@ -127,7 +127,7 @@ partial void ProcessListFineTuningEventsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListFineTuningJobEventsResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ListFineTuningJobEventsResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -158,7 +158,7 @@ partial void ProcessListFineTuningEventsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListFineTuningJobEventsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListFineTuningJobEventsResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningJobs.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningJobs.g.cs index 8f753e0a..61c8bc4b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningJobs.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningJobs.g.cs @@ -126,7 +126,7 @@ partial void ProcessListFineTuningJobsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListPaginatedFineTuningJobsResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ListPaginatedFineTuningJobsResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -157,7 +157,7 @@ partial void ProcessListFineTuningJobsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListPaginatedFineTuningJobsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListPaginatedFineTuningJobsResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.PauseFineTuning.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.PauseFineTuning.g.cs index a4e57b75..bc27ed9d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.PauseFineTuning.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.PauseFineTuning.g.cs @@ -109,7 +109,7 @@ partial void ProcessPauseFineTuningResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.FineTuningJob.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.FineTuningJob.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -140,7 +140,7 @@ partial void ProcessPauseFineTuningResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.FineTuningJob.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.FineTuningJob.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ResumeFineTuning.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ResumeFineTuning.g.cs index e027feda..7d2099b2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ResumeFineTuning.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ResumeFineTuning.g.cs @@ -109,7 +109,7 @@ partial void ProcessResumeFineTuningResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.FineTuningJob.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.FineTuningJob.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -140,7 +140,7 @@ partial void ProcessResumeFineTuningResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.FineTuningJob.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.FineTuningJob.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.RetrieveFineTuningJob.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.RetrieveFineTuningJob.g.cs index 3431ffb2..67558fe4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.RetrieveFineTuningJob.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.RetrieveFineTuningJob.g.cs @@ -110,7 +110,7 @@ partial void ProcessRetrieveFineTuningJobResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.FineTuningJob.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.FineTuningJob.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -141,7 +141,7 @@ partial void ProcessRetrieveFineTuningJobResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.FineTuningJob.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.FineTuningJob.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.RunGrader.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.RunGrader.g.cs index e1c61a96..5a5954b9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.RunGrader.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.RunGrader.g.cs @@ -67,7 +67,7 @@ partial void ProcessRunGraderResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -116,7 +116,7 @@ partial void ProcessRunGraderResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.RunGraderResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.RunGraderResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessRunGraderResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.RunGraderResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.RunGraderResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ValidateGrader.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ValidateGrader.g.cs index f10fae5f..2e232855 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ValidateGrader.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ValidateGrader.g.cs @@ -67,7 +67,7 @@ partial void ProcessValidateGraderResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -116,7 +116,7 @@ partial void ProcessValidateGraderResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ValidateGraderResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ValidateGraderResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessValidateGraderResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ValidateGraderResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ValidateGraderResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.g.cs index 30b27ddd..462859f9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.g.cs @@ -34,7 +34,7 @@ public sealed partial class FineTuningClient : global::tryAGI.OpenAI.IFineTuning /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.AssignOrganizationRoleToGroup.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.AssignOrganizationRoleToGroup.g.cs index ad4a998b..12118a2e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.AssignOrganizationRoleToGroup.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.AssignOrganizationRoleToGroup.g.cs @@ -72,7 +72,7 @@ partial void ProcessAssignOrganizationRoleToGroupResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -122,7 +122,7 @@ partial void ProcessAssignOrganizationRoleToGroupResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.GroupRoleAssignment.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.GroupRoleAssignment.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessAssignOrganizationRoleToGroupResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.GroupRoleAssignment.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.GroupRoleAssignment.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.ListGroupOrganizationRoleAssignments.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.ListGroupOrganizationRoleAssignments.g.cs index 1dd6b9ec..f1d956ac 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.ListGroupOrganizationRoleAssignments.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.ListGroupOrganizationRoleAssignments.g.cs @@ -130,7 +130,7 @@ partial void ProcessListGroupOrganizationRoleAssignmentsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.RoleListResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.RoleListResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -161,7 +161,7 @@ partial void ProcessListGroupOrganizationRoleAssignmentsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.RoleListResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.RoleListResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.UnassignOrganizationRoleFromGroup.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.UnassignOrganizationRoleFromGroup.g.cs index 50423efe..d23432a6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.UnassignOrganizationRoleFromGroup.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.UnassignOrganizationRoleFromGroup.g.cs @@ -113,7 +113,7 @@ partial void ProcessUnassignOrganizationRoleFromGroupResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.DeletedRoleAssignmentResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.DeletedRoleAssignmentResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessUnassignOrganizationRoleFromGroupResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.DeletedRoleAssignmentResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.DeletedRoleAssignmentResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.g.cs index e8a4c196..e0757a9f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class GroupOrganizationRoleAssignmentsClient : global::try /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.AddGroupUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.AddGroupUser.g.cs index d9966bce..91af5d8c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.AddGroupUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.AddGroupUser.g.cs @@ -72,7 +72,7 @@ partial void ProcessAddGroupUserResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -122,7 +122,7 @@ partial void ProcessAddGroupUserResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.GroupUserAssignment.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.GroupUserAssignment.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessAddGroupUserResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.GroupUserAssignment.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.GroupUserAssignment.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.ListGroupUsers.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.ListGroupUsers.g.cs index baa0d7f4..4e184071 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.ListGroupUsers.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.ListGroupUsers.g.cs @@ -134,7 +134,7 @@ partial void ProcessListGroupUsersResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.UserListResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.UserListResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -165,7 +165,7 @@ partial void ProcessListGroupUsersResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.UserListResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.UserListResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.RemoveGroupUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.RemoveGroupUser.g.cs index e986fac6..c9a782cd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.RemoveGroupUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.RemoveGroupUser.g.cs @@ -113,7 +113,7 @@ partial void ProcessRemoveGroupUserResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.GroupUserDeletedResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.GroupUserDeletedResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessRemoveGroupUserResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.GroupUserDeletedResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.GroupUserDeletedResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.g.cs index c636edde..48e75c24 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class GroupUsersClient : global::tryAGI.OpenAI.IGroupUsers /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.CreateGroup.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.CreateGroup.g.cs index 37d7080f..c9223102 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.CreateGroup.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.CreateGroup.g.cs @@ -67,7 +67,7 @@ partial void ProcessCreateGroupResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -116,7 +116,7 @@ partial void ProcessCreateGroupResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.GroupResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.GroupResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessCreateGroupResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.GroupResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.GroupResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.DeleteGroup.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.DeleteGroup.g.cs index 2a1a2f6a..61f8a246 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.DeleteGroup.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.DeleteGroup.g.cs @@ -107,7 +107,7 @@ partial void ProcessDeleteGroupResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.GroupDeletedResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.GroupDeletedResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessDeleteGroupResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.GroupDeletedResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.GroupDeletedResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.ListGroups.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.ListGroups.g.cs index 7ce48d43..d257429b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.ListGroups.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.ListGroups.g.cs @@ -128,7 +128,7 @@ partial void ProcessListGroupsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.GroupListResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.GroupListResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessListGroupsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.GroupListResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.GroupListResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.UpdateGroup.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.UpdateGroup.g.cs index c5f2735c..369f20fd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.UpdateGroup.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.UpdateGroup.g.cs @@ -72,7 +72,7 @@ partial void ProcessUpdateGroupResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -122,7 +122,7 @@ partial void ProcessUpdateGroupResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.GroupResourceWithSuccess.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.GroupResourceWithSuccess.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessUpdateGroupResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.GroupResourceWithSuccess.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.GroupResourceWithSuccess.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.g.cs index be6e34e7..b95fb924 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class GroupsClient : global::tryAGI.OpenAI.IGroupsClient, /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.g.cs index fd59cb8d..0eb84f76 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.g.cs @@ -37,7 +37,7 @@ public partial interface IAssistantsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.g.cs index 4fd6c507..77faa7ee 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.g.cs @@ -37,7 +37,7 @@ public partial interface IAudioClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAuditLogsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAuditLogsClient.g.cs index f5bb2439..53e78568 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAuditLogsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAuditLogsClient.g.cs @@ -37,7 +37,7 @@ public partial interface IAuditLogsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IBatchClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IBatchClient.g.cs index 78e8675c..3e07f5b1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IBatchClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IBatchClient.g.cs @@ -37,7 +37,7 @@ public partial interface IBatchClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.g.cs index 58665df0..7f47da44 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.g.cs @@ -36,7 +36,7 @@ public partial interface ICertificatesClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IChatClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IChatClient.g.cs index 9b9e64f4..d5f236ac 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IChatClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IChatClient.g.cs @@ -37,7 +37,7 @@ public partial interface IChatClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICompletionsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICompletionsClient.g.cs index f657ebaa..548bd1d0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICompletionsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICompletionsClient.g.cs @@ -37,7 +37,7 @@ public partial interface ICompletionsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IConversationsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IConversationsClient.g.cs index 833a97f5..40715284 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IConversationsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IConversationsClient.g.cs @@ -37,7 +37,7 @@ public partial interface IConversationsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEmbeddingsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEmbeddingsClient.g.cs index 599f4d96..211bf8de 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEmbeddingsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEmbeddingsClient.g.cs @@ -37,7 +37,7 @@ public partial interface IEmbeddingsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.g.cs index dff056f9..781968fa 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.g.cs @@ -37,7 +37,7 @@ public partial interface IEvalsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFilesClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFilesClient.g.cs index 9d41cc7c..81e1012e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFilesClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFilesClient.g.cs @@ -37,7 +37,7 @@ public partial interface IFilesClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.g.cs index c1e9e70d..bb669d2c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.g.cs @@ -37,7 +37,7 @@ public partial interface IFineTuningClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IGroupOrganizationRoleAssignmentsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IGroupOrganizationRoleAssignmentsClient.g.cs index 1e926c20..e83cd4d1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IGroupOrganizationRoleAssignmentsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IGroupOrganizationRoleAssignmentsClient.g.cs @@ -36,7 +36,7 @@ public partial interface IGroupOrganizationRoleAssignmentsClient : global::Syste /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IGroupUsersClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IGroupUsersClient.g.cs index 01d49619..cf439f48 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IGroupUsersClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IGroupUsersClient.g.cs @@ -36,7 +36,7 @@ public partial interface IGroupUsersClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IGroupsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IGroupsClient.g.cs index 089922fc..d288957e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IGroupsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IGroupsClient.g.cs @@ -36,7 +36,7 @@ public partial interface IGroupsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IImagesClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IImagesClient.g.cs index 9930dcb0..82a8ecc8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IImagesClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IImagesClient.g.cs @@ -37,7 +37,7 @@ public partial interface IImagesClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IInvitesClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IInvitesClient.g.cs index b0d6c04b..cbe4c689 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IInvitesClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IInvitesClient.g.cs @@ -36,7 +36,7 @@ public partial interface IInvitesClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IModelsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IModelsClient.g.cs index c77e2ace..78f31f73 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IModelsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IModelsClient.g.cs @@ -37,7 +37,7 @@ public partial interface IModelsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IModerationsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IModerationsClient.g.cs index 0b8ed4c1..30cf5665 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IModerationsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IModerationsClient.g.cs @@ -37,7 +37,7 @@ public partial interface IModerationsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.g.cs index 942bcc7a..0c31675e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.g.cs @@ -37,7 +37,7 @@ public partial interface IOpenAiClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectGroupRoleAssignmentsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectGroupRoleAssignmentsClient.g.cs index 9ab126cd..b365ee68 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectGroupRoleAssignmentsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectGroupRoleAssignmentsClient.g.cs @@ -36,7 +36,7 @@ public partial interface IProjectGroupRoleAssignmentsClient : global::System.IDi /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectGroupsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectGroupsClient.g.cs index b7fef149..7adeb7af 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectGroupsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectGroupsClient.g.cs @@ -36,7 +36,7 @@ public partial interface IProjectGroupsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectUserRoleAssignmentsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectUserRoleAssignmentsClient.g.cs index 21522e23..e3725fbe 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectUserRoleAssignmentsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectUserRoleAssignmentsClient.g.cs @@ -36,7 +36,7 @@ public partial interface IProjectUserRoleAssignmentsClient : global::System.IDis /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.g.cs index e15480ee..ccd5ae70 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.g.cs @@ -36,7 +36,7 @@ public partial interface IProjectsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRealtimeClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRealtimeClient.g.cs index 1954db82..6870be21 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRealtimeClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRealtimeClient.g.cs @@ -36,7 +36,7 @@ public partial interface IRealtimeClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IResponsesClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IResponsesClient.g.cs index 2eed6a2c..fceef960 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IResponsesClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IResponsesClient.g.cs @@ -36,7 +36,7 @@ public partial interface IResponsesClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRolesClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRolesClient.g.cs index 977bd1de..b0b70be2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRolesClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRolesClient.g.cs @@ -36,7 +36,7 @@ public partial interface IRolesClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ISkillsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ISkillsClient.g.cs index feaa9bcd..2e3275c8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ISkillsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ISkillsClient.g.cs @@ -36,7 +36,7 @@ public partial interface ISkillsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUploadsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUploadsClient.g.cs index 2caaf94b..02e3f4b2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUploadsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUploadsClient.g.cs @@ -37,7 +37,7 @@ public partial interface IUploadsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.g.cs index 11f6cf3e..fa87a6c8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.g.cs @@ -36,7 +36,7 @@ public partial interface IUsageClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUserOrganizationRoleAssignmentsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUserOrganizationRoleAssignmentsClient.g.cs index ad791362..01107c9f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUserOrganizationRoleAssignmentsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUserOrganizationRoleAssignmentsClient.g.cs @@ -36,7 +36,7 @@ public partial interface IUserOrganizationRoleAssignmentsClient : global::System /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsersClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsersClient.g.cs index b26ec274..693a3405 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsersClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsersClient.g.cs @@ -36,7 +36,7 @@ public partial interface IUsersClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.g.cs index bc29852f..7a485618 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.g.cs @@ -36,7 +36,7 @@ public partial interface IVectorStoresClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVideosClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVideosClient.g.cs index 7e63b1ed..fd636bcc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVideosClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVideosClient.g.cs @@ -36,7 +36,7 @@ public partial interface IVideosClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImage.g.cs index afdc1d1d..4cd21ac3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImage.g.cs @@ -84,7 +84,7 @@ partial void ProcessCreateImageResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -133,7 +133,7 @@ partial void ProcessCreateImageResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ImagesResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ImagesResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -164,7 +164,7 @@ partial void ProcessCreateImageResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ImagesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ImagesResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageAsStream.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageAsStream.g.cs index a5775f60..c5d26833 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageAsStream.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageAsStream.g.cs @@ -79,7 +79,7 @@ partial void ProcessCreateImageAsStreamResponse( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -153,7 +153,7 @@ partial void ProcessCreateImageAsStreamResponse( yield break; } - var __streamedResponse = global::tryAGI.OpenAI.ImageGenStreamEvent.FromJson(__content, JsonSerializerContext) ?? + var __streamedResponse = global::tryAGI.OpenAI.ImageGenStreamEvent.FromJson(__content, JsonSerializerOptions) ?? throw new global::tryAGI.OpenAI.ApiException( message: $"Response deserialization failed for \"{__content}\" ", statusCode: __response.StatusCode) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageEdit.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageEdit.g.cs index e05b2172..a45db49a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageEdit.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageEdit.g.cs @@ -238,7 +238,7 @@ partial void ProcessCreateImageEditResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ImagesResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ImagesResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -269,7 +269,7 @@ partial void ProcessCreateImageEditResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ImagesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ImagesResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageEditAsStream.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageEditAsStream.g.cs index 81c9c2fa..d1c9c4d5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageEditAsStream.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageEditAsStream.g.cs @@ -258,7 +258,7 @@ partial void ProcessCreateImageEditAsStreamResponse( yield break; } - var __streamedResponse = global::tryAGI.OpenAI.ImageEditStreamEvent.FromJson(__content, JsonSerializerContext) ?? + var __streamedResponse = global::tryAGI.OpenAI.ImageEditStreamEvent.FromJson(__content, JsonSerializerOptions) ?? throw new global::tryAGI.OpenAI.ApiException( message: $"Response deserialization failed for \"{__content}\" ", statusCode: __response.StatusCode) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageVariation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageVariation.g.cs index 6cc20317..dc1465f8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageVariation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageVariation.g.cs @@ -156,7 +156,7 @@ partial void ProcessCreateImageVariationResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ImagesResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ImagesResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -187,7 +187,7 @@ partial void ProcessCreateImageVariationResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ImagesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ImagesResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.g.cs index 2988a02e..149e752e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.g.cs @@ -34,7 +34,7 @@ public sealed partial class ImagesClient : global::tryAGI.OpenAI.IImagesClient, /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.CreateInvite.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.CreateInvite.g.cs index acdd03bb..27a8656f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.CreateInvite.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.CreateInvite.g.cs @@ -67,7 +67,7 @@ partial void ProcessCreateInviteResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -116,7 +116,7 @@ partial void ProcessCreateInviteResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Invite.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.Invite.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessCreateInviteResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Invite.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Invite.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.DeleteInvite.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.DeleteInvite.g.cs index dd9b48a6..0063be12 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.DeleteInvite.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.DeleteInvite.g.cs @@ -107,7 +107,7 @@ partial void ProcessDeleteInviteResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.InviteDeleteResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.InviteDeleteResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessDeleteInviteResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.InviteDeleteResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.InviteDeleteResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.ListInvites.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.ListInvites.g.cs index 23d0875e..a9d3e494 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.ListInvites.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.ListInvites.g.cs @@ -119,7 +119,7 @@ partial void ProcessListInvitesResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.InviteListResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.InviteListResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -150,7 +150,7 @@ partial void ProcessListInvitesResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.InviteListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.InviteListResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.RetrieveInvite.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.RetrieveInvite.g.cs index 0689304e..c5702abe 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.RetrieveInvite.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.RetrieveInvite.g.cs @@ -107,7 +107,7 @@ partial void ProcessRetrieveInviteResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Invite.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.Invite.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessRetrieveInviteResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Invite.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Invite.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.g.cs index 67c7c47c..dab32686 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class InvitesClient : global::tryAGI.OpenAI.IInvitesClient /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AllOf2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AllOf2.g.cs index 2519fa10..65c51da1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AllOf2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AllOf2.g.cs @@ -11,8 +11,7 @@ public class AllOfJsonConverter : global::System.Text.Json.Serialization global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); @@ -27,27 +26,7 @@ public class AllOfJsonConverter : global::System.Text.Json.Serialization } var __score0 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T1), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score0++; - } - } - } var __score1 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T2), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score1++; - } - } - } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -62,9 +41,7 @@ public class AllOfJsonConverter : global::System.Text.Json.Serialization try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -79,9 +56,7 @@ public class AllOfJsonConverter : global::System.Text.Json.Serialization try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -97,9 +72,7 @@ public class AllOfJsonConverter : global::System.Text.Json.Serialization try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -111,9 +84,7 @@ public class AllOfJsonConverter : global::System.Text.Json.Serialization try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -138,20 +109,15 @@ public override void Write( global::tryAGI.OpenAI.AllOf value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsValue1) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeof(T1), options); } else if (value.IsValue2) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeof(T2), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Annotation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Annotation.g.cs index 92e1eee0..37dcf8d6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Annotation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Annotation.g.cs @@ -12,8 +12,7 @@ public class AnnotationJsonConverter : global::System.Text.Json.Serialization.Js global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -65,9 +64,7 @@ public class AnnotationJsonConverter : global::System.Text.Json.Serialization.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileCitationBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileCitationBody).Name}"); - fileCitation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + fileCitation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -80,9 +77,7 @@ public class AnnotationJsonConverter : global::System.Text.Json.Serialization.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UrlCitationBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UrlCitationBody).Name}"); - urlCitation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + urlCitation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -95,9 +90,7 @@ public class AnnotationJsonConverter : global::System.Text.Json.Serialization.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerFileCitationBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerFileCitationBody).Name}"); - containerFileCitation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + containerFileCitation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -110,9 +103,7 @@ public class AnnotationJsonConverter : global::System.Text.Json.Serialization.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FilePath), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FilePath).Name}"); - filePath = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + filePath = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -127,9 +118,7 @@ public class AnnotationJsonConverter : global::System.Text.Json.Serialization.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileCitationBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileCitationBody).Name}"); - fileCitation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + fileCitation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -140,9 +129,7 @@ public class AnnotationJsonConverter : global::System.Text.Json.Serialization.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UrlCitationBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UrlCitationBody).Name}"); - urlCitation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + urlCitation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -153,9 +140,7 @@ public class AnnotationJsonConverter : global::System.Text.Json.Serialization.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerFileCitationBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerFileCitationBody).Name}"); - containerFileCitation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + containerFileCitation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -166,9 +151,7 @@ public class AnnotationJsonConverter : global::System.Text.Json.Serialization.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FilePath), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FilePath).Name}"); - filePath = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + filePath = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -197,32 +180,23 @@ public override void Write( global::tryAGI.OpenAI.Annotation value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsFileCitation) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileCitationBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileCitationBody).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileCitation!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileCitation, typeof(global::tryAGI.OpenAI.FileCitationBody), options); } else if (value.IsUrlCitation) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UrlCitationBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UrlCitationBody).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.UrlCitation!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.UrlCitation, typeof(global::tryAGI.OpenAI.UrlCitationBody), options); } else if (value.IsContainerFileCitation) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerFileCitationBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerFileCitationBody).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ContainerFileCitation!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ContainerFileCitation, typeof(global::tryAGI.OpenAI.ContainerFileCitationBody), options); } else if (value.IsFilePath) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FilePath), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FilePath).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FilePath!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FilePath, typeof(global::tryAGI.OpenAI.FilePath), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnnotationsItem3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnnotationsItem3.g.cs index 9cd768c0..d3607c6e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnnotationsItem3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnnotationsItem3.g.cs @@ -12,8 +12,7 @@ public class AnnotationsItem3JsonConverter : global::System.Text.Json.Serializat global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -45,9 +44,7 @@ public class AnnotationsItem3JsonConverter : global::System.Text.Json.Serializat { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileAnnotation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileAnnotation).Name}"); - file = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + file = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -60,9 +57,7 @@ public class AnnotationsItem3JsonConverter : global::System.Text.Json.Serializat { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UrlAnnotation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UrlAnnotation).Name}"); - url = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + url = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -77,9 +72,7 @@ public class AnnotationsItem3JsonConverter : global::System.Text.Json.Serializat { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileAnnotation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileAnnotation).Name}"); - file = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + file = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -90,9 +83,7 @@ public class AnnotationsItem3JsonConverter : global::System.Text.Json.Serializat try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UrlAnnotation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UrlAnnotation).Name}"); - url = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + url = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -117,20 +108,15 @@ public override void Write( global::tryAGI.OpenAI.AnnotationsItem3 value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsFile) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileAnnotation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileAnnotation).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.File!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.File, typeof(global::tryAGI.OpenAI.FileAnnotation), options); } else if (value.IsUrl) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UrlAnnotation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UrlAnnotation).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Url!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Url, typeof(global::tryAGI.OpenAI.UrlAnnotation), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnyOf2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnyOf2.g.cs index c2c20089..46cac4a3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnyOf2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnyOf2.g.cs @@ -11,8 +11,7 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serialization global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); @@ -27,27 +26,7 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serialization } var __score0 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T1), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score0++; - } - } - } var __score1 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T2), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score1++; - } - } - } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -62,9 +41,7 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serialization try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -79,9 +56,7 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serialization try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -97,9 +72,7 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serialization try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -111,9 +84,7 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serialization try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -138,20 +109,15 @@ public override void Write( global::tryAGI.OpenAI.AnyOf value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsValue1) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeof(T1), options); } else if (value.IsValue2) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeof(T2), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnyOf3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnyOf3.g.cs index 7c2abd97..907fea92 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnyOf3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnyOf3.g.cs @@ -11,8 +11,7 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serializa global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); @@ -27,38 +26,8 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serializa } var __score0 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T1), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score0++; - } - } - } var __score1 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T2), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score1++; - } - } - } var __score2 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T3), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score2++; - } - } - } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -75,9 +44,7 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serializa try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -92,9 +59,7 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serializa try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -109,9 +74,7 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serializa try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -127,9 +90,7 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serializa try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -141,9 +102,7 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serializa try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -155,9 +114,7 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serializa try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -184,26 +141,19 @@ public override void Write( global::tryAGI.OpenAI.AnyOf value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsValue1) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeof(T1), options); } else if (value.IsValue2) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeof(T2), options); } else if (value.IsValue3) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3, typeof(T3), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParam.g.cs index b8c5a071..4c59e791 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParam.g.cs @@ -12,8 +12,7 @@ public class ApplyPatchOperationParamJsonConverter : global::System.Text.Json.Se global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -52,9 +51,7 @@ public class ApplyPatchOperationParamJsonConverter : global::System.Text.Json.Se { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParam).Name}"); - createFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + createFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -67,9 +64,7 @@ public class ApplyPatchOperationParamJsonConverter : global::System.Text.Json.Se { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParam).Name}"); - deleteFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + deleteFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -82,9 +77,7 @@ public class ApplyPatchOperationParamJsonConverter : global::System.Text.Json.Se { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam).Name}"); - updateFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + updateFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -99,9 +92,7 @@ public class ApplyPatchOperationParamJsonConverter : global::System.Text.Json.Se { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParam).Name}"); - createFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + createFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -112,9 +103,7 @@ public class ApplyPatchOperationParamJsonConverter : global::System.Text.Json.Se try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParam).Name}"); - deleteFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + deleteFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -125,9 +114,7 @@ public class ApplyPatchOperationParamJsonConverter : global::System.Text.Json.Se try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam).Name}"); - updateFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + updateFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -154,26 +141,19 @@ public override void Write( global::tryAGI.OpenAI.ApplyPatchOperationParam value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsCreateFile) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateFile!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateFile, typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParam), options); } else if (value.IsDeleteFile) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.DeleteFile!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.DeleteFile, typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParam), options); } else if (value.IsUpdateFile) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.UpdateFile!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.UpdateFile, typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantStreamEvent.g.cs index 8f58f7fa..d6f6c241 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantStreamEvent.g.cs @@ -12,8 +12,7 @@ public class AssistantStreamEventJsonConverter : global::System.Text.Json.Serial global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -57,9 +56,7 @@ public class AssistantStreamEventJsonConverter : global::System.Text.Json.Serial { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ThreadStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ThreadStreamEvent).Name}"); - thread = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + thread = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -72,9 +69,7 @@ public class AssistantStreamEventJsonConverter : global::System.Text.Json.Serial { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEvent).Name}"); - run = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + run = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -87,9 +82,7 @@ public class AssistantStreamEventJsonConverter : global::System.Text.Json.Serial { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEvent).Name}"); - runStep = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStep = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -102,9 +95,7 @@ public class AssistantStreamEventJsonConverter : global::System.Text.Json.Serial { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEvent).Name}"); - message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -117,9 +108,7 @@ public class AssistantStreamEventJsonConverter : global::System.Text.Json.Serial { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ErrorEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ErrorEvent).Name}"); - error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -132,9 +121,7 @@ public class AssistantStreamEventJsonConverter : global::System.Text.Json.Serial { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.DoneEvent).Name}"); - done = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + done = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -149,9 +136,7 @@ public class AssistantStreamEventJsonConverter : global::System.Text.Json.Serial { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ThreadStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ThreadStreamEvent).Name}"); - thread = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + thread = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -162,9 +147,7 @@ public class AssistantStreamEventJsonConverter : global::System.Text.Json.Serial try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEvent).Name}"); - run = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + run = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -175,9 +158,7 @@ public class AssistantStreamEventJsonConverter : global::System.Text.Json.Serial try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEvent).Name}"); - runStep = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStep = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -188,9 +169,7 @@ public class AssistantStreamEventJsonConverter : global::System.Text.Json.Serial try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEvent).Name}"); - message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -201,9 +180,7 @@ public class AssistantStreamEventJsonConverter : global::System.Text.Json.Serial try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ErrorEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ErrorEvent).Name}"); - error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -214,9 +191,7 @@ public class AssistantStreamEventJsonConverter : global::System.Text.Json.Serial try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.DoneEvent).Name}"); - done = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + done = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -249,44 +224,31 @@ public override void Write( global::tryAGI.OpenAI.AssistantStreamEvent value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsThread) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ThreadStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ThreadStreamEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Thread!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Thread, typeof(global::tryAGI.OpenAI.ThreadStreamEvent), options); } else if (value.IsRun) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Run!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Run, typeof(global::tryAGI.OpenAI.RunStreamEvent), options); } else if (value.IsRunStep) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStep!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStep, typeof(global::tryAGI.OpenAI.RunStepStreamEvent), options); } else if (value.IsMessage) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message, typeof(global::tryAGI.OpenAI.MessageStreamEvent), options); } else if (value.IsError) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ErrorEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ErrorEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Error!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Error, typeof(global::tryAGI.OpenAI.ErrorEvent), options); } else if (value.IsDone) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.DoneEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Done!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Done, typeof(global::tryAGI.OpenAI.DoneEvent), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantsApiResponseFormatOption.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantsApiResponseFormatOption.g.cs index 6f25b14d..87de0ca4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantsApiResponseFormatOption.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantsApiResponseFormatOption.g.cs @@ -12,8 +12,7 @@ public class AssistantsApiResponseFormatOptionJsonConverter : global::System.Tex global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -51,9 +50,7 @@ public class AssistantsApiResponseFormatOptionJsonConverter : global::System.Tex { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum).Name}"); - @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -66,9 +63,7 @@ public class AssistantsApiResponseFormatOptionJsonConverter : global::System.Tex { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatText).Name}"); - text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -81,9 +76,7 @@ public class AssistantsApiResponseFormatOptionJsonConverter : global::System.Tex { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject).Name}"); - jsonObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + jsonObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -96,9 +89,7 @@ public class AssistantsApiResponseFormatOptionJsonConverter : global::System.Tex { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchema), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchema).Name}"); - jsonSchema = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + jsonSchema = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -113,9 +104,7 @@ public class AssistantsApiResponseFormatOptionJsonConverter : global::System.Tex { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum).Name}"); - @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -126,9 +115,7 @@ public class AssistantsApiResponseFormatOptionJsonConverter : global::System.Tex try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatText).Name}"); - text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -139,9 +126,7 @@ public class AssistantsApiResponseFormatOptionJsonConverter : global::System.Tex try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject).Name}"); - jsonObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + jsonObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -152,9 +137,7 @@ public class AssistantsApiResponseFormatOptionJsonConverter : global::System.Tex try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchema), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchema).Name}"); - jsonSchema = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + jsonSchema = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -183,32 +166,23 @@ public override void Write( global::tryAGI.OpenAI.AssistantsApiResponseFormatOption value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsEnum) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum, typeof(global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum), options); } else if (value.IsText) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatText).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text, typeof(global::tryAGI.OpenAI.ResponseFormatText), options); } else if (value.IsJsonObject) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.JsonObject!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.JsonObject, typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject), options); } else if (value.IsJsonSchema) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchema), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchema).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.JsonSchema!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.JsonSchema, typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchema), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantsApiToolChoiceOption.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantsApiToolChoiceOption.g.cs index 18fd6235..1a9f2460 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantsApiToolChoiceOption.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantsApiToolChoiceOption.g.cs @@ -12,8 +12,7 @@ public class AssistantsApiToolChoiceOptionJsonConverter : global::System.Text.Js global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -43,9 +42,7 @@ public class AssistantsApiToolChoiceOptionJsonConverter : global::System.Text.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum).Name}"); - @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -58,9 +55,7 @@ public class AssistantsApiToolChoiceOptionJsonConverter : global::System.Text.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantsNamedToolChoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantsNamedToolChoice).Name}"); - named = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + named = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -75,9 +70,7 @@ public class AssistantsApiToolChoiceOptionJsonConverter : global::System.Text.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum).Name}"); - @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -88,9 +81,7 @@ public class AssistantsApiToolChoiceOptionJsonConverter : global::System.Text.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantsNamedToolChoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantsNamedToolChoice).Name}"); - named = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + named = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -115,20 +106,15 @@ public override void Write( global::tryAGI.OpenAI.AssistantsApiToolChoiceOption value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsEnum) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum, typeof(global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum), options); } else if (value.IsNamed) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantsNamedToolChoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantsNamedToolChoice).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Named!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Named, typeof(global::tryAGI.OpenAI.AssistantsNamedToolChoice), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallsItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallsItem.g.cs index dc450a0f..e4e7bd47 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallsItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallsItem.g.cs @@ -12,8 +12,7 @@ public class ChatCompletionMessageToolCallsItemJsonConverter : global::System.Te global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -47,9 +46,7 @@ public class ChatCompletionMessageToolCallsItemJsonConverter : global::System.Te { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCall).Name}"); - function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -62,9 +59,7 @@ public class ChatCompletionMessageToolCallsItemJsonConverter : global::System.Te { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCall).Name}"); - custom = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + custom = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -79,9 +74,7 @@ public class ChatCompletionMessageToolCallsItemJsonConverter : global::System.Te { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCall).Name}"); - function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -92,9 +85,7 @@ public class ChatCompletionMessageToolCallsItemJsonConverter : global::System.Te try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCall).Name}"); - custom = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + custom = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -119,20 +110,15 @@ public override void Write( global::tryAGI.OpenAI.ChatCompletionMessageToolCallsItem value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsFunction) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function, typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCall), options); } else if (value.IsCustom) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Custom!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Custom, typeof(global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCall), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageContentPart.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageContentPart.g.cs index 32e17562..f902604d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageContentPart.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageContentPart.g.cs @@ -12,8 +12,7 @@ public class ChatCompletionRequestAssistantMessageContentPartJsonConverter : glo global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -45,9 +44,7 @@ public class ChatCompletionRequestAssistantMessageContentPartJsonConverter : glo { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText).Name}"); - text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -60,9 +57,7 @@ public class ChatCompletionRequestAssistantMessageContentPartJsonConverter : glo { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusal), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusal).Name}"); - refusal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + refusal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -77,9 +72,7 @@ public class ChatCompletionRequestAssistantMessageContentPartJsonConverter : glo { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText).Name}"); - text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -90,9 +83,7 @@ public class ChatCompletionRequestAssistantMessageContentPartJsonConverter : glo try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusal), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusal).Name}"); - refusal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + refusal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -117,20 +108,15 @@ public override void Write( global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPart value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsText) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text, typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText), options); } else if (value.IsRefusal) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusal), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusal).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Refusal!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Refusal, typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusal), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessage.g.cs index 0d285835..f3ab2c43 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessage.g.cs @@ -12,8 +12,7 @@ public class ChatCompletionRequestMessageJsonConverter : global::System.Text.Jso global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -75,9 +74,7 @@ public class ChatCompletionRequestMessageJsonConverter : global::System.Text.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessage).Name}"); - developer = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + developer = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -90,9 +87,7 @@ public class ChatCompletionRequestMessageJsonConverter : global::System.Text.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestSystemMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestSystemMessage).Name}"); - system = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + system = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -105,9 +100,7 @@ public class ChatCompletionRequestMessageJsonConverter : global::System.Text.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestUserMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestUserMessage).Name}"); - user = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + user = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -120,9 +113,7 @@ public class ChatCompletionRequestMessageJsonConverter : global::System.Text.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage).Name}"); - assistant = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + assistant = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -135,9 +126,7 @@ public class ChatCompletionRequestMessageJsonConverter : global::System.Text.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestToolMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestToolMessage).Name}"); - tool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + tool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -150,9 +139,7 @@ public class ChatCompletionRequestMessageJsonConverter : global::System.Text.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessage).Name}"); - function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -167,9 +154,7 @@ public class ChatCompletionRequestMessageJsonConverter : global::System.Text.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessage).Name}"); - developer = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + developer = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -180,9 +165,7 @@ public class ChatCompletionRequestMessageJsonConverter : global::System.Text.Jso try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestSystemMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestSystemMessage).Name}"); - system = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + system = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -193,9 +176,7 @@ public class ChatCompletionRequestMessageJsonConverter : global::System.Text.Jso try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestUserMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestUserMessage).Name}"); - user = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + user = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -206,9 +187,7 @@ public class ChatCompletionRequestMessageJsonConverter : global::System.Text.Jso try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage).Name}"); - assistant = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + assistant = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -219,9 +198,7 @@ public class ChatCompletionRequestMessageJsonConverter : global::System.Text.Jso try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestToolMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestToolMessage).Name}"); - tool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + tool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -232,9 +209,7 @@ public class ChatCompletionRequestMessageJsonConverter : global::System.Text.Jso try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessage).Name}"); - function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -267,44 +242,31 @@ public override void Write( global::tryAGI.OpenAI.ChatCompletionRequestMessage value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsDeveloper) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Developer!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Developer, typeof(global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessage), options); } else if (value.IsSystem) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestSystemMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestSystemMessage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.System!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.System, typeof(global::tryAGI.OpenAI.ChatCompletionRequestSystemMessage), options); } else if (value.IsUser) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestUserMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestUserMessage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.User!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.User, typeof(global::tryAGI.OpenAI.ChatCompletionRequestUserMessage), options); } else if (value.IsAssistant) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Assistant!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Assistant, typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage), options); } else if (value.IsTool) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestToolMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestToolMessage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Tool!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Tool, typeof(global::tryAGI.OpenAI.ChatCompletionRequestToolMessage), options); } else if (value.IsFunction) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function, typeof(global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessage), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestSystemMessageContentPart.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestSystemMessageContentPart.g.cs index 7cf0b1b0..dd17ed82 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestSystemMessageContentPart.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestSystemMessageContentPart.g.cs @@ -12,8 +12,7 @@ public class ChatCompletionRequestSystemMessageContentPartJsonConverter : global global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -40,9 +39,7 @@ public class ChatCompletionRequestSystemMessageContentPartJsonConverter : global { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText).Name}"); - textContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + textContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -57,9 +54,7 @@ public class ChatCompletionRequestSystemMessageContentPartJsonConverter : global { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText).Name}"); - textContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + textContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -82,14 +77,11 @@ public override void Write( global::tryAGI.OpenAI.ChatCompletionRequestSystemMessageContentPart value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsTextContentPart) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextContentPart!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextContentPart, typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestToolMessageContentPart.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestToolMessageContentPart.g.cs index 1e04fa0d..0a0eab3c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestToolMessageContentPart.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestToolMessageContentPart.g.cs @@ -12,8 +12,7 @@ public class ChatCompletionRequestToolMessageContentPartJsonConverter : global:: global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -40,9 +39,7 @@ public class ChatCompletionRequestToolMessageContentPartJsonConverter : global:: { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText).Name}"); - textContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + textContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -57,9 +54,7 @@ public class ChatCompletionRequestToolMessageContentPartJsonConverter : global:: { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText).Name}"); - textContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + textContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -82,14 +77,11 @@ public override void Write( global::tryAGI.OpenAI.ChatCompletionRequestToolMessageContentPart value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsTextContentPart) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextContentPart!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextContentPart, typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestUserMessageContentPart.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestUserMessageContentPart.g.cs index 4d16f01f..723959c1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestUserMessageContentPart.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestUserMessageContentPart.g.cs @@ -12,8 +12,7 @@ public class ChatCompletionRequestUserMessageContentPartJsonConverter : global:: global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -55,9 +54,7 @@ public class ChatCompletionRequestUserMessageContentPartJsonConverter : global:: { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText).Name}"); - textContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + textContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -70,9 +67,7 @@ public class ChatCompletionRequestUserMessageContentPartJsonConverter : global:: { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImage).Name}"); - imageContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + imageContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -85,9 +80,7 @@ public class ChatCompletionRequestUserMessageContentPartJsonConverter : global:: { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudio), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudio).Name}"); - audioContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + audioContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -100,9 +93,7 @@ public class ChatCompletionRequestUserMessageContentPartJsonConverter : global:: { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFile), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFile).Name}"); - fileContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + fileContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -117,9 +108,7 @@ public class ChatCompletionRequestUserMessageContentPartJsonConverter : global:: { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText).Name}"); - textContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + textContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -130,9 +119,7 @@ public class ChatCompletionRequestUserMessageContentPartJsonConverter : global:: try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImage).Name}"); - imageContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + imageContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -143,9 +130,7 @@ public class ChatCompletionRequestUserMessageContentPartJsonConverter : global:: try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudio), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudio).Name}"); - audioContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + audioContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -156,9 +141,7 @@ public class ChatCompletionRequestUserMessageContentPartJsonConverter : global:: try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFile), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFile).Name}"); - fileContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + fileContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -187,32 +170,23 @@ public override void Write( global::tryAGI.OpenAI.ChatCompletionRequestUserMessageContentPart value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsTextContentPart) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextContentPart!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextContentPart, typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText), options); } else if (value.IsImageContentPart) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageContentPart!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageContentPart, typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImage), options); } else if (value.IsAudioContentPart) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudio), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudio).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AudioContentPart!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AudioContentPart, typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudio), options); } else if (value.IsFileContentPart) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFile), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFile).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileContentPart!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileContentPart, typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFile), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionToolChoiceOption.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionToolChoiceOption.g.cs index d3c1469c..8b6e51d4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionToolChoiceOption.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionToolChoiceOption.g.cs @@ -12,8 +12,7 @@ public class ChatCompletionToolChoiceOptionJsonConverter : global::System.Text.J global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -53,9 +52,7 @@ public class ChatCompletionToolChoiceOptionJsonConverter : global::System.Text.J { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionToolChoiceOptionEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionToolChoiceOptionEnum).Name}"); - toolChoiceMode = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + toolChoiceMode = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -68,9 +65,7 @@ public class ChatCompletionToolChoiceOptionJsonConverter : global::System.Text.J { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionAllowedToolsChoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionAllowedToolsChoice).Name}"); - allowedTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + allowedTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -83,9 +78,7 @@ public class ChatCompletionToolChoiceOptionJsonConverter : global::System.Text.J { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoice).Name}"); - functionToolChoice = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionToolChoice = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -98,9 +91,7 @@ public class ChatCompletionToolChoiceOptionJsonConverter : global::System.Text.J { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustom), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustom).Name}"); - customToolChoice = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + customToolChoice = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -115,9 +106,7 @@ public class ChatCompletionToolChoiceOptionJsonConverter : global::System.Text.J { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionToolChoiceOptionEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionToolChoiceOptionEnum).Name}"); - toolChoiceMode = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + toolChoiceMode = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -128,9 +117,7 @@ public class ChatCompletionToolChoiceOptionJsonConverter : global::System.Text.J try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionAllowedToolsChoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionAllowedToolsChoice).Name}"); - allowedTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + allowedTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -141,9 +128,7 @@ public class ChatCompletionToolChoiceOptionJsonConverter : global::System.Text.J try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoice).Name}"); - functionToolChoice = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionToolChoice = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -154,9 +139,7 @@ public class ChatCompletionToolChoiceOptionJsonConverter : global::System.Text.J try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustom), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustom).Name}"); - customToolChoice = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + customToolChoice = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -185,32 +168,23 @@ public override void Write( global::tryAGI.OpenAI.ChatCompletionToolChoiceOption value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsToolChoiceMode) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionToolChoiceOptionEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionToolChoiceOptionEnum).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolChoiceMode!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolChoiceMode, typeof(global::tryAGI.OpenAI.ChatCompletionToolChoiceOptionEnum), options); } else if (value.IsAllowedTools) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionAllowedToolsChoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionAllowedToolsChoice).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AllowedTools!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AllowedTools, typeof(global::tryAGI.OpenAI.ChatCompletionAllowedToolsChoice), options); } else if (value.IsFunctionToolChoice) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoice).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolChoice!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolChoice, typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoice), options); } else if (value.IsCustomToolChoice) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustom), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustom).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolChoice!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolChoice, typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustom), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParam.g.cs index a9396b43..b2af0f90 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParam.g.cs @@ -12,8 +12,7 @@ public class ChunkingStrategyRequestParamJsonConverter : global::System.Text.Jso global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -44,9 +43,7 @@ public class ChunkingStrategyRequestParamJsonConverter : global::System.Text.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AutoChunkingStrategyRequestParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AutoChunkingStrategyRequestParam).Name}"); - auto = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + auto = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -59,9 +56,7 @@ public class ChunkingStrategyRequestParamJsonConverter : global::System.Text.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.StaticChunkingStrategyRequestParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.StaticChunkingStrategyRequestParam).Name}"); - @static = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @static = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -76,9 +71,7 @@ public class ChunkingStrategyRequestParamJsonConverter : global::System.Text.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AutoChunkingStrategyRequestParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AutoChunkingStrategyRequestParam).Name}"); - auto = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + auto = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -89,9 +82,7 @@ public class ChunkingStrategyRequestParamJsonConverter : global::System.Text.Jso try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.StaticChunkingStrategyRequestParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.StaticChunkingStrategyRequestParam).Name}"); - @static = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @static = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -116,20 +107,15 @@ public override void Write( global::tryAGI.OpenAI.ChunkingStrategyRequestParam value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsAuto) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AutoChunkingStrategyRequestParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AutoChunkingStrategyRequestParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Auto!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Auto, typeof(global::tryAGI.OpenAI.AutoChunkingStrategyRequestParam), options); } else if (value.IsStatic) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.StaticChunkingStrategyRequestParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.StaticChunkingStrategyRequestParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Static!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Static, typeof(global::tryAGI.OpenAI.StaticChunkingStrategyRequestParam), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ComputerAction.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ComputerAction.g.cs index f219b153..54c1b51d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ComputerAction.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ComputerAction.g.cs @@ -12,8 +12,7 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -90,9 +89,7 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ClickParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ClickParam).Name}"); - click = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + click = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -105,9 +102,7 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DoubleClickAction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.DoubleClickAction).Name}"); - doubleClick = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + doubleClick = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -120,9 +115,7 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DragParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.DragParam).Name}"); - drag = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + drag = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -135,9 +128,7 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.KeyPressAction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.KeyPressAction).Name}"); - keypress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + keypress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -150,9 +141,7 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MoveParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MoveParam).Name}"); - move = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + move = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -165,9 +154,7 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ScreenshotParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ScreenshotParam).Name}"); - screenshot = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + screenshot = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -180,9 +167,7 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ScrollParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ScrollParam).Name}"); - scroll = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + scroll = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -195,9 +180,7 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TypeParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TypeParam).Name}"); - type = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + type = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -210,9 +193,7 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WaitParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WaitParam).Name}"); - wait = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + wait = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -227,9 +208,7 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ClickParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ClickParam).Name}"); - click = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + click = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -240,9 +219,7 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DoubleClickAction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.DoubleClickAction).Name}"); - doubleClick = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + doubleClick = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -253,9 +230,7 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DragParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.DragParam).Name}"); - drag = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + drag = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -266,9 +241,7 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.KeyPressAction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.KeyPressAction).Name}"); - keypress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + keypress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -279,9 +252,7 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MoveParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MoveParam).Name}"); - move = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + move = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -292,9 +263,7 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ScreenshotParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ScreenshotParam).Name}"); - screenshot = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + screenshot = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -305,9 +274,7 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ScrollParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ScrollParam).Name}"); - scroll = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + scroll = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -318,9 +285,7 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TypeParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TypeParam).Name}"); - type = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + type = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -331,9 +296,7 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WaitParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WaitParam).Name}"); - wait = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + wait = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -372,62 +335,43 @@ public override void Write( global::tryAGI.OpenAI.ComputerAction value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsClick) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ClickParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ClickParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Click!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Click, typeof(global::tryAGI.OpenAI.ClickParam), options); } else if (value.IsDoubleClick) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DoubleClickAction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.DoubleClickAction).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.DoubleClick!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.DoubleClick, typeof(global::tryAGI.OpenAI.DoubleClickAction), options); } else if (value.IsDrag) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DragParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.DragParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Drag!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Drag, typeof(global::tryAGI.OpenAI.DragParam), options); } else if (value.IsKeypress) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.KeyPressAction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.KeyPressAction).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Keypress!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Keypress, typeof(global::tryAGI.OpenAI.KeyPressAction), options); } else if (value.IsMove) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MoveParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MoveParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Move!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Move, typeof(global::tryAGI.OpenAI.MoveParam), options); } else if (value.IsScreenshot) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ScreenshotParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ScreenshotParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Screenshot!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Screenshot, typeof(global::tryAGI.OpenAI.ScreenshotParam), options); } else if (value.IsScroll) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ScrollParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ScrollParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Scroll!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Scroll, typeof(global::tryAGI.OpenAI.ScrollParam), options); } else if (value.IsType) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TypeParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TypeParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Type!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Type, typeof(global::tryAGI.OpenAI.TypeParam), options); } else if (value.IsWait) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WaitParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WaitParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Wait!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Wait, typeof(global::tryAGI.OpenAI.WaitParam), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ComputerToolCallOutputResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ComputerToolCallOutputResource.g.cs index d76a7dd0..0f60df9d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ComputerToolCallOutputResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ComputerToolCallOutputResource.g.cs @@ -12,8 +12,7 @@ public class ComputerToolCallOutputResourceJsonConverter : global::System.Text.J global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -50,9 +49,7 @@ public class ComputerToolCallOutputResourceJsonConverter : global::System.Text.J { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutput).Name}"); - computerToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + computerToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -65,9 +62,7 @@ public class ComputerToolCallOutputResourceJsonConverter : global::System.Text.J { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2).Name}"); - computerToolCallOutputResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + computerToolCallOutputResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -82,9 +77,7 @@ public class ComputerToolCallOutputResourceJsonConverter : global::System.Text.J { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutput).Name}"); - computerToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + computerToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -95,9 +88,7 @@ public class ComputerToolCallOutputResourceJsonConverter : global::System.Text.J try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2).Name}"); - computerToolCallOutputResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + computerToolCallOutputResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -122,20 +113,15 @@ public override void Write( global::tryAGI.OpenAI.ComputerToolCallOutputResource value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsComputerToolCallOutput) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerToolCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerToolCallOutput, typeof(global::tryAGI.OpenAI.ComputerToolCallOutput), options); } else if (value.IsComputerToolCallOutputResourceVariant2) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerToolCallOutputResourceVariant2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerToolCallOutputResourceVariant2, typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Content5.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Content5.g.cs index c297e474..ee7f2dfc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Content5.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Content5.g.cs @@ -12,8 +12,7 @@ public class Content5JsonConverter : global::System.Text.Json.Serialization.Json global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); @@ -28,27 +27,7 @@ public class Content5JsonConverter : global::System.Text.Json.Serialization.Json } var __score0 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputContent), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score0++; - } - } - } var __score1 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputContent), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score1++; - } - } - } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -63,9 +42,7 @@ public class Content5JsonConverter : global::System.Text.Json.Serialization.Json try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputContent).Name}"); - inputContentTypes = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputContentTypes = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -80,9 +57,7 @@ public class Content5JsonConverter : global::System.Text.Json.Serialization.Json try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputContent).Name}"); - outputContentTypes = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + outputContentTypes = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -98,9 +73,7 @@ public class Content5JsonConverter : global::System.Text.Json.Serialization.Json try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputContent).Name}"); - inputContentTypes = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputContentTypes = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -112,9 +85,7 @@ public class Content5JsonConverter : global::System.Text.Json.Serialization.Json try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputContent).Name}"); - outputContentTypes = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + outputContentTypes = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -139,20 +110,15 @@ public override void Write( global::tryAGI.OpenAI.Content5 value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsInputContentTypes) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputContentTypes!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputContentTypes, typeof(global::tryAGI.OpenAI.InputContent), options); } else if (value.IsOutputContentTypes) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputContentTypes!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputContentTypes, typeof(global::tryAGI.OpenAI.OutputContent), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentItem3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentItem3.g.cs index 2a89ed0e..ab28b199 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentItem3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentItem3.g.cs @@ -12,8 +12,7 @@ public class ContentItem3JsonConverter : global::System.Text.Json.Serialization. global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -89,9 +88,7 @@ public class ContentItem3JsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputTextContent).Name}"); - inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -104,9 +101,7 @@ public class ContentItem3JsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputTextContent).Name}"); - outputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + outputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -119,9 +114,7 @@ public class ContentItem3JsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TextContent).Name}"); - text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -134,9 +127,7 @@ public class ContentItem3JsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SummaryTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SummaryTextContent).Name}"); - summaryText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + summaryText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -149,9 +140,7 @@ public class ContentItem3JsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningTextContent).Name}"); - reasoningText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + reasoningText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -164,9 +153,7 @@ public class ContentItem3JsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RefusalContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RefusalContent).Name}"); - refusal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + refusal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -179,9 +166,7 @@ public class ContentItem3JsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputImageContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputImageContent).Name}"); - inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -194,9 +179,7 @@ public class ContentItem3JsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerScreenshotContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerScreenshotContent).Name}"); - computerScreenshot = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + computerScreenshot = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -209,9 +192,7 @@ public class ContentItem3JsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputFileContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputFileContent).Name}"); - inputFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -226,9 +207,7 @@ public class ContentItem3JsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputTextContent).Name}"); - inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -239,9 +218,7 @@ public class ContentItem3JsonConverter : global::System.Text.Json.Serialization. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputTextContent).Name}"); - outputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + outputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -252,9 +229,7 @@ public class ContentItem3JsonConverter : global::System.Text.Json.Serialization. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TextContent).Name}"); - text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -265,9 +240,7 @@ public class ContentItem3JsonConverter : global::System.Text.Json.Serialization. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SummaryTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SummaryTextContent).Name}"); - summaryText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + summaryText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -278,9 +251,7 @@ public class ContentItem3JsonConverter : global::System.Text.Json.Serialization. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningTextContent).Name}"); - reasoningText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + reasoningText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -291,9 +262,7 @@ public class ContentItem3JsonConverter : global::System.Text.Json.Serialization. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RefusalContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RefusalContent).Name}"); - refusal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + refusal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -304,9 +273,7 @@ public class ContentItem3JsonConverter : global::System.Text.Json.Serialization. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputImageContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputImageContent).Name}"); - inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -317,9 +284,7 @@ public class ContentItem3JsonConverter : global::System.Text.Json.Serialization. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerScreenshotContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerScreenshotContent).Name}"); - computerScreenshot = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + computerScreenshot = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -330,9 +295,7 @@ public class ContentItem3JsonConverter : global::System.Text.Json.Serialization. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputFileContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputFileContent).Name}"); - inputFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -371,62 +334,43 @@ public override void Write( global::tryAGI.OpenAI.ContentItem3 value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsInputText) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputTextContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputText!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputText, typeof(global::tryAGI.OpenAI.InputTextContent), options); } else if (value.IsOutputText) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputTextContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputText!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputText, typeof(global::tryAGI.OpenAI.OutputTextContent), options); } else if (value.IsText) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TextContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text, typeof(global::tryAGI.OpenAI.TextContent), options); } else if (value.IsSummaryText) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SummaryTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SummaryTextContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SummaryText!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SummaryText, typeof(global::tryAGI.OpenAI.SummaryTextContent), options); } else if (value.IsReasoningText) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningTextContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ReasoningText!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ReasoningText, typeof(global::tryAGI.OpenAI.ReasoningTextContent), options); } else if (value.IsRefusal) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RefusalContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RefusalContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Refusal!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Refusal, typeof(global::tryAGI.OpenAI.RefusalContent), options); } else if (value.IsInputImage) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputImageContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputImageContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputImage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputImage, typeof(global::tryAGI.OpenAI.InputImageContent), options); } else if (value.IsComputerScreenshot) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerScreenshotContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerScreenshotContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerScreenshot!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerScreenshot, typeof(global::tryAGI.OpenAI.ComputerScreenshotContent), options); } else if (value.IsInputFile) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputFileContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputFileContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputFile!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputFile, typeof(global::tryAGI.OpenAI.InputFileContent), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentItem4.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentItem4.g.cs index b9c5aa46..1b493f3c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentItem4.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentItem4.g.cs @@ -12,8 +12,7 @@ public class ContentItem4JsonConverter : global::System.Text.Json.Serialization. global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -45,9 +44,7 @@ public class ContentItem4JsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UserMessageInputText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UserMessageInputText).Name}"); - inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -60,9 +57,7 @@ public class ContentItem4JsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UserMessageQuotedText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UserMessageQuotedText).Name}"); - quotedText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + quotedText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -77,9 +72,7 @@ public class ContentItem4JsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UserMessageInputText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UserMessageInputText).Name}"); - inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -90,9 +83,7 @@ public class ContentItem4JsonConverter : global::System.Text.Json.Serialization. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UserMessageQuotedText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UserMessageQuotedText).Name}"); - quotedText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + quotedText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -117,20 +108,15 @@ public override void Write( global::tryAGI.OpenAI.ContentItem4 value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsInputText) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UserMessageInputText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UserMessageInputText).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputText!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputText, typeof(global::tryAGI.OpenAI.UserMessageInputText), options); } else if (value.IsQuotedText) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UserMessageQuotedText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UserMessageQuotedText).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.QuotedText!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.QuotedText, typeof(global::tryAGI.OpenAI.UserMessageQuotedText), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ConversationItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ConversationItem.g.cs index 637ae34d..2cb38e0c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ConversationItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ConversationItem.g.cs @@ -12,8 +12,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -235,9 +234,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Message), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Message).Name}"); - message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -250,9 +247,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallResource).Name}"); - functionToolCallResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionToolCallResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -265,9 +260,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource).Name}"); - functionToolCallOutputResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionToolCallOutputResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -280,9 +273,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchToolCall).Name}"); - fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -295,9 +286,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchToolCall).Name}"); - webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -310,9 +299,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenToolCall).Name}"); - imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -325,9 +312,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCall).Name}"); - computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -340,9 +325,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource).Name}"); - computerToolCallOutputResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + computerToolCallOutputResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -355,9 +338,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchCall).Name}"); - toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -370,9 +351,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchOutput).Name}"); - toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -385,9 +364,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningItem).Name}"); - reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -400,9 +377,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompactionBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompactionBody).Name}"); - compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -415,9 +390,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall).Name}"); - codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -430,9 +403,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCall).Name}"); - localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -445,9 +416,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput).Name}"); - localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -460,9 +429,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCall).Name}"); - shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -475,9 +442,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutput).Name}"); - shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -490,9 +455,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCall).Name}"); - applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -505,9 +468,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput).Name}"); - applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -520,9 +481,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPListTools).Name}"); - mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -535,9 +494,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalRequest).Name}"); - mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -550,9 +507,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource).Name}"); - mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -565,9 +520,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPToolCall).Name}"); - mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -580,9 +533,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCall).Name}"); - customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -595,9 +546,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutput).Name}"); - customToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + customToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -612,9 +561,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Message), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Message).Name}"); - message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -625,9 +572,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallResource).Name}"); - functionToolCallResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionToolCallResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -638,9 +583,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource).Name}"); - functionToolCallOutputResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionToolCallOutputResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -651,9 +594,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchToolCall).Name}"); - fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -664,9 +605,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchToolCall).Name}"); - webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -677,9 +616,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenToolCall).Name}"); - imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -690,9 +627,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCall).Name}"); - computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -703,9 +638,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource).Name}"); - computerToolCallOutputResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + computerToolCallOutputResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -716,9 +649,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchCall).Name}"); - toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -729,9 +660,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchOutput).Name}"); - toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -742,9 +671,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningItem).Name}"); - reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -755,9 +682,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompactionBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompactionBody).Name}"); - compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -768,9 +693,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall).Name}"); - codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -781,9 +704,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCall).Name}"); - localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -794,9 +715,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput).Name}"); - localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -807,9 +726,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCall).Name}"); - shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -820,9 +737,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutput).Name}"); - shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -833,9 +748,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCall).Name}"); - applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -846,9 +759,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput).Name}"); - applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -859,9 +770,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPListTools).Name}"); - mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -872,9 +781,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalRequest).Name}"); - mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -885,9 +792,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource).Name}"); - mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -898,9 +803,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPToolCall).Name}"); - mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -911,9 +814,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCall).Name}"); - customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -924,9 +825,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutput).Name}"); - customToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + customToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -997,158 +896,107 @@ public override void Write( global::tryAGI.OpenAI.ConversationItem value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsMessage) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Message), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Message).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message, typeof(global::tryAGI.OpenAI.Message), options); } else if (value.IsFunctionToolCallResource) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCallResource!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCallResource, typeof(global::tryAGI.OpenAI.FunctionToolCallResource), options); } else if (value.IsFunctionToolCallOutputResource) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCallOutputResource!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCallOutputResource, typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource), options); } else if (value.IsFileSearchCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchCall, typeof(global::tryAGI.OpenAI.FileSearchToolCall), options); } else if (value.IsWebSearchCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearchCall, typeof(global::tryAGI.OpenAI.WebSearchToolCall), options); } else if (value.IsImageGenerationCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationCall, typeof(global::tryAGI.OpenAI.ImageGenToolCall), options); } else if (value.IsComputerCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerCall, typeof(global::tryAGI.OpenAI.ComputerToolCall), options); } else if (value.IsComputerToolCallOutputResource) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerToolCallOutputResource!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerToolCallOutputResource, typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource), options); } else if (value.IsToolSearchCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchCall, typeof(global::tryAGI.OpenAI.ToolSearchCall), options); } else if (value.IsToolSearchOutput) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchOutput, typeof(global::tryAGI.OpenAI.ToolSearchOutput), options); } else if (value.IsReasoning) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningItem).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Reasoning!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Reasoning, typeof(global::tryAGI.OpenAI.ReasoningItem), options); } else if (value.IsCompaction) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompactionBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompactionBody).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Compaction!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Compaction, typeof(global::tryAGI.OpenAI.CompactionBody), options); } else if (value.IsCodeInterpreterCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreterCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreterCall, typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options); } else if (value.IsLocalShellCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCall, typeof(global::tryAGI.OpenAI.LocalShellToolCall), options); } else if (value.IsLocalShellCallOutput) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCallOutput, typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options); } else if (value.IsShellCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCall, typeof(global::tryAGI.OpenAI.FunctionShellCall), options); } else if (value.IsShellCallOutput) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCallOutput, typeof(global::tryAGI.OpenAI.FunctionShellCallOutput), options); } else if (value.IsApplyPatchCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCall, typeof(global::tryAGI.OpenAI.ApplyPatchToolCall), options); } else if (value.IsApplyPatchCallOutput) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallOutput, typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput), options); } else if (value.IsMcpListTools) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPListTools).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListTools!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListTools, typeof(global::tryAGI.OpenAI.MCPListTools), options); } else if (value.IsMcpApprovalRequest) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalRequest).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalRequest!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalRequest, typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options); } else if (value.IsMcpApprovalResponse) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalResponse!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalResponse, typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource), options); } else if (value.IsMcpCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpCall, typeof(global::tryAGI.OpenAI.MCPToolCall), options); } else if (value.IsCustomToolCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCall, typeof(global::tryAGI.OpenAI.CustomToolCall), options); } else if (value.IsCustomToolCallOutput) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCallOutput, typeof(global::tryAGI.OpenAI.CustomToolCallOutput), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ConversationParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ConversationParam.g.cs index ddc03bd6..e0a69091 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ConversationParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ConversationParam.g.cs @@ -12,8 +12,7 @@ public class ConversationParamJsonConverter : global::System.Text.Json.Serializa global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -42,9 +41,7 @@ public class ConversationParamJsonConverter : global::System.Text.Json.Serializa { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - conversationId = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationId = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -57,9 +54,7 @@ public class ConversationParamJsonConverter : global::System.Text.Json.Serializa { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ConversationParam2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ConversationParam2).Name}"); - conversationObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -74,9 +69,7 @@ public class ConversationParamJsonConverter : global::System.Text.Json.Serializa { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - conversationId = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationId = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -87,9 +80,7 @@ public class ConversationParamJsonConverter : global::System.Text.Json.Serializa try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ConversationParam2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ConversationParam2).Name}"); - conversationObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -114,20 +105,15 @@ public override void Write( global::tryAGI.OpenAI.ConversationParam value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsConversationId) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationId!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationId, typeof(string), options); } else if (value.IsConversationObject) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ConversationParam2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ConversationParam2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationObject!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationObject, typeof(global::tryAGI.OpenAI.ConversationParam2), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequest.g.cs index 9248c800..9ea14245 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequest.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequest.g.cs @@ -12,8 +12,7 @@ public class CreateChatCompletionRequestJsonConverter : global::System.Text.Json global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -68,9 +67,7 @@ public class CreateChatCompletionRequestJsonConverter : global::System.Text.Json { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateModelResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateModelResponseProperties).Name}"); - modelResponseProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + modelResponseProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -83,9 +80,7 @@ public class CreateChatCompletionRequestJsonConverter : global::System.Text.Json { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2).Name}"); - createChatCompletionRequestVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + createChatCompletionRequestVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -100,9 +95,7 @@ public class CreateChatCompletionRequestJsonConverter : global::System.Text.Json { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateModelResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateModelResponseProperties).Name}"); - modelResponseProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + modelResponseProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -113,9 +106,7 @@ public class CreateChatCompletionRequestJsonConverter : global::System.Text.Json try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2).Name}"); - createChatCompletionRequestVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + createChatCompletionRequestVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -140,20 +131,15 @@ public override void Write( global::tryAGI.OpenAI.CreateChatCompletionRequest value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsModelResponseProperties) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateModelResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateModelResponseProperties).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModelResponseProperties!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModelResponseProperties, typeof(global::tryAGI.OpenAI.CreateModelResponseProperties), options); } else if (value.IsCreateChatCompletionRequestVariant2) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateChatCompletionRequestVariant2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateChatCompletionRequestVariant2, typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateEvalItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateEvalItem.g.cs index 7a581286..cdf99f62 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateEvalItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateEvalItem.g.cs @@ -12,8 +12,7 @@ public class CreateEvalItemJsonConverter : global::System.Text.Json.Serializatio global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -46,9 +45,7 @@ public class CreateEvalItemJsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateEvalItemSimpleInputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateEvalItemSimpleInputMessage).Name}"); - simpleInputMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + simpleInputMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -61,9 +58,7 @@ public class CreateEvalItemJsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalItem).Name}"); - evalMessageObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + evalMessageObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -78,9 +73,7 @@ public class CreateEvalItemJsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateEvalItemSimpleInputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateEvalItemSimpleInputMessage).Name}"); - simpleInputMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + simpleInputMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -91,9 +84,7 @@ public class CreateEvalItemJsonConverter : global::System.Text.Json.Serializatio try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalItem).Name}"); - evalMessageObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + evalMessageObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -118,20 +109,15 @@ public override void Write( global::tryAGI.OpenAI.CreateEvalItem value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsSimpleInputMessage) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateEvalItemSimpleInputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateEvalItemSimpleInputMessage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SimpleInputMessage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SimpleInputMessage, typeof(global::tryAGI.OpenAI.CreateEvalItemSimpleInputMessage), options); } else if (value.IsEvalMessageObject) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalItem).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.EvalMessageObject!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.EvalMessageObject, typeof(global::tryAGI.OpenAI.EvalItem), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateModelResponseProperties.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateModelResponseProperties.g.cs index a6cc9224..769a0ad9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateModelResponseProperties.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateModelResponseProperties.g.cs @@ -12,8 +12,7 @@ public class CreateModelResponsePropertiesJsonConverter : global::System.Text.Js global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -51,9 +50,7 @@ public class CreateModelResponsePropertiesJsonConverter : global::System.Text.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelResponseProperties).Name}"); - modelResponseProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + modelResponseProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -66,9 +63,7 @@ public class CreateModelResponsePropertiesJsonConverter : global::System.Text.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2).Name}"); - createModelResponsePropertiesVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + createModelResponsePropertiesVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -83,9 +78,7 @@ public class CreateModelResponsePropertiesJsonConverter : global::System.Text.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelResponseProperties).Name}"); - modelResponseProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + modelResponseProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -96,9 +89,7 @@ public class CreateModelResponsePropertiesJsonConverter : global::System.Text.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2).Name}"); - createModelResponsePropertiesVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + createModelResponsePropertiesVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -123,20 +114,15 @@ public override void Write( global::tryAGI.OpenAI.CreateModelResponseProperties value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsModelResponseProperties) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelResponseProperties).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModelResponseProperties!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModelResponseProperties, typeof(global::tryAGI.OpenAI.ModelResponseProperties), options); } else if (value.IsCreateModelResponsePropertiesVariant2) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateModelResponsePropertiesVariant2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateModelResponsePropertiesVariant2, typeof(global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateResponse.g.cs index 7f02d5d3..5cf1f01b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateResponse.g.cs @@ -12,8 +12,7 @@ public class CreateResponseJsonConverter : global::System.Text.Json.Serializatio global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -64,9 +63,7 @@ public class CreateResponseJsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateModelResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateModelResponseProperties).Name}"); - modelProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + modelProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -79,9 +76,7 @@ public class CreateResponseJsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseProperties).Name}"); - properties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + properties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -94,9 +89,7 @@ public class CreateResponseJsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateResponseVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateResponseVariant3).Name}"); - createResponseVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + createResponseVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -111,9 +104,7 @@ public class CreateResponseJsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateModelResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateModelResponseProperties).Name}"); - modelProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + modelProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -124,9 +115,7 @@ public class CreateResponseJsonConverter : global::System.Text.Json.Serializatio try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseProperties).Name}"); - properties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + properties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -137,9 +126,7 @@ public class CreateResponseJsonConverter : global::System.Text.Json.Serializatio try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateResponseVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateResponseVariant3).Name}"); - createResponseVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + createResponseVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -166,26 +153,19 @@ public override void Write( global::tryAGI.OpenAI.CreateResponse value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsModelProperties) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateModelResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateModelResponseProperties).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModelProperties!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModelProperties, typeof(global::tryAGI.OpenAI.CreateModelResponseProperties), options); } else if (value.IsProperties) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseProperties).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Properties!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Properties, typeof(global::tryAGI.OpenAI.ResponseProperties), options); } else if (value.IsCreateResponseVariant3) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateResponseVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateResponseVariant3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateResponseVariant3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateResponseVariant3, typeof(global::tryAGI.OpenAI.CreateResponseVariant3), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEvent.g.cs index 5582f3ec..7ddaf151 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEvent.g.cs @@ -12,8 +12,7 @@ public class CreateSpeechResponseStreamEventJsonConverter : global::System.Text. global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -45,9 +44,7 @@ public class CreateSpeechResponseStreamEventJsonConverter : global::System.Text. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpeechAudioDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpeechAudioDeltaEvent).Name}"); - speechAudioDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + speechAudioDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -60,9 +57,7 @@ public class CreateSpeechResponseStreamEventJsonConverter : global::System.Text. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpeechAudioDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpeechAudioDoneEvent).Name}"); - speechAudioDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + speechAudioDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -77,9 +72,7 @@ public class CreateSpeechResponseStreamEventJsonConverter : global::System.Text. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpeechAudioDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpeechAudioDeltaEvent).Name}"); - speechAudioDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + speechAudioDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -90,9 +83,7 @@ public class CreateSpeechResponseStreamEventJsonConverter : global::System.Text. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpeechAudioDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpeechAudioDoneEvent).Name}"); - speechAudioDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + speechAudioDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -117,20 +108,15 @@ public override void Write( global::tryAGI.OpenAI.CreateSpeechResponseStreamEvent value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsSpeechAudioDelta) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpeechAudioDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpeechAudioDeltaEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SpeechAudioDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SpeechAudioDelta, typeof(global::tryAGI.OpenAI.SpeechAudioDeltaEvent), options); } else if (value.IsSpeechAudioDone) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpeechAudioDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpeechAudioDoneEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SpeechAudioDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SpeechAudioDone, typeof(global::tryAGI.OpenAI.SpeechAudioDoneEvent), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonUsage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonUsage.g.cs index 8197f6dc..118753b8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonUsage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonUsage.g.cs @@ -12,8 +12,7 @@ public class CreateTranscriptionResponseDiarizedJsonUsageJsonConverter : global: global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -48,9 +47,7 @@ public class CreateTranscriptionResponseDiarizedJsonUsageJsonConverter : global: { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextUsageTokens), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextUsageTokens).Name}"); - tokens = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + tokens = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -63,9 +60,7 @@ public class CreateTranscriptionResponseDiarizedJsonUsageJsonConverter : global: { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextUsageDuration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextUsageDuration).Name}"); - duration = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + duration = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -80,9 +75,7 @@ public class CreateTranscriptionResponseDiarizedJsonUsageJsonConverter : global: { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextUsageTokens), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextUsageTokens).Name}"); - tokens = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + tokens = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -93,9 +86,7 @@ public class CreateTranscriptionResponseDiarizedJsonUsageJsonConverter : global: try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextUsageDuration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextUsageDuration).Name}"); - duration = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + duration = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -120,20 +111,15 @@ public override void Write( global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsage value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsTokens) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextUsageTokens), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextUsageTokens).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Tokens!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Tokens, typeof(global::tryAGI.OpenAI.TranscriptTextUsageTokens), options); } else if (value.IsDuration) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextUsageDuration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextUsageDuration).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Duration!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Duration, typeof(global::tryAGI.OpenAI.TranscriptTextUsageDuration), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseStreamEvent.g.cs index e3618e62..cf4c0514 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseStreamEvent.g.cs @@ -12,8 +12,7 @@ public class CreateTranscriptionResponseStreamEventJsonConverter : global::Syste global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -58,9 +57,7 @@ public class CreateTranscriptionResponseStreamEventJsonConverter : global::Syste { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextSegmentEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextSegmentEvent).Name}"); - transcriptTextSegment = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + transcriptTextSegment = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -73,9 +70,7 @@ public class CreateTranscriptionResponseStreamEventJsonConverter : global::Syste { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextDeltaEvent).Name}"); - transcriptTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + transcriptTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -88,9 +83,7 @@ public class CreateTranscriptionResponseStreamEventJsonConverter : global::Syste { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextDoneEvent).Name}"); - transcriptTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + transcriptTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -105,9 +98,7 @@ public class CreateTranscriptionResponseStreamEventJsonConverter : global::Syste { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextSegmentEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextSegmentEvent).Name}"); - transcriptTextSegment = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + transcriptTextSegment = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -118,9 +109,7 @@ public class CreateTranscriptionResponseStreamEventJsonConverter : global::Syste try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextDeltaEvent).Name}"); - transcriptTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + transcriptTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -131,9 +120,7 @@ public class CreateTranscriptionResponseStreamEventJsonConverter : global::Syste try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextDoneEvent).Name}"); - transcriptTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + transcriptTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -160,26 +147,19 @@ public override void Write( global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEvent value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsTranscriptTextSegment) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextSegmentEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextSegmentEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TranscriptTextSegment!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.TranscriptTextSegment, typeof(global::tryAGI.OpenAI.TranscriptTextSegmentEvent), options); } else if (value.IsTranscriptTextDelta) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextDeltaEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TranscriptTextDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.TranscriptTextDelta, typeof(global::tryAGI.OpenAI.TranscriptTextDeltaEvent), options); } else if (value.IsTranscriptTextDone) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextDoneEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TranscriptTextDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.TranscriptTextDone, typeof(global::tryAGI.OpenAI.TranscriptTextDoneEvent), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CustomToolCallOutputResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CustomToolCallOutputResource.g.cs index 17bb774a..545aab9f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CustomToolCallOutputResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CustomToolCallOutputResource.g.cs @@ -12,8 +12,7 @@ public class CustomToolCallOutputResourceJsonConverter : global::System.Text.Jso global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -48,9 +47,7 @@ public class CustomToolCallOutputResourceJsonConverter : global::System.Text.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutput).Name}"); - customToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + customToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -63,9 +60,7 @@ public class CustomToolCallOutputResourceJsonConverter : global::System.Text.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutputResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutputResourceVariant2).Name}"); - customToolCallOutputResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + customToolCallOutputResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -80,9 +75,7 @@ public class CustomToolCallOutputResourceJsonConverter : global::System.Text.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutput).Name}"); - customToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + customToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -93,9 +86,7 @@ public class CustomToolCallOutputResourceJsonConverter : global::System.Text.Jso try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutputResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutputResourceVariant2).Name}"); - customToolCallOutputResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + customToolCallOutputResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -120,20 +111,15 @@ public override void Write( global::tryAGI.OpenAI.CustomToolCallOutputResource value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsCustomToolCallOutput) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCallOutput, typeof(global::tryAGI.OpenAI.CustomToolCallOutput), options); } else if (value.IsCustomToolCallOutputResourceVariant2) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutputResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutputResourceVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCallOutputResourceVariant2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCallOutputResourceVariant2, typeof(global::tryAGI.OpenAI.CustomToolCallOutputResourceVariant2), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CustomToolCallResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CustomToolCallResource.g.cs index 489412fc..97760ccf 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CustomToolCallResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CustomToolCallResource.g.cs @@ -12,8 +12,7 @@ public class CustomToolCallResourceJsonConverter : global::System.Text.Json.Seri global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -50,9 +49,7 @@ public class CustomToolCallResourceJsonConverter : global::System.Text.Json.Seri { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCall).Name}"); - customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -65,9 +62,7 @@ public class CustomToolCallResourceJsonConverter : global::System.Text.Json.Seri { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallResourceVariant2).Name}"); - customToolCallResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + customToolCallResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -82,9 +77,7 @@ public class CustomToolCallResourceJsonConverter : global::System.Text.Json.Seri { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCall).Name}"); - customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -95,9 +88,7 @@ public class CustomToolCallResourceJsonConverter : global::System.Text.Json.Seri try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallResourceVariant2).Name}"); - customToolCallResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + customToolCallResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -122,20 +113,15 @@ public override void Write( global::tryAGI.OpenAI.CustomToolCallResource value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsCustomToolCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCall, typeof(global::tryAGI.OpenAI.CustomToolCall), options); } else if (value.IsCustomToolCallResourceVariant2) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallResourceVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCallResourceVariant2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCallResourceVariant2, typeof(global::tryAGI.OpenAI.CustomToolCallResourceVariant2), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DeletedConversation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DeletedConversation.g.cs index c2e0e4bd..08330d12 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DeletedConversation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DeletedConversation.g.cs @@ -12,8 +12,7 @@ public class DeletedConversationJsonConverter : global::System.Text.Json.Seriali global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -41,9 +40,7 @@ public class DeletedConversationJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DeletedConversationResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.DeletedConversationResource).Name}"); - resource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + resource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -58,9 +55,7 @@ public class DeletedConversationJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DeletedConversationResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.DeletedConversationResource).Name}"); - resource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + resource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -83,14 +78,11 @@ public override void Write( global::tryAGI.OpenAI.DeletedConversation value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsResource) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DeletedConversationResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.DeletedConversationResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Resource!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Resource, typeof(global::tryAGI.OpenAI.DeletedConversationResource), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant1.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant1.g.cs index ef3ce75b..de77aaa0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant1.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant1.g.cs @@ -12,8 +12,7 @@ public class EnvironmentVariant1JsonConverter : global::System.Text.Json.Seriali global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -53,9 +52,7 @@ public class EnvironmentVariant1JsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerAutoParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerAutoParam).Name}"); - containerAuto = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + containerAuto = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -68,9 +65,7 @@ public class EnvironmentVariant1JsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalEnvironmentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalEnvironmentParam).Name}"); - local = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + local = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -83,9 +78,7 @@ public class EnvironmentVariant1JsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerReferenceParam).Name}"); - containerReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + containerReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -100,9 +93,7 @@ public class EnvironmentVariant1JsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerAutoParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerAutoParam).Name}"); - containerAuto = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + containerAuto = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -113,9 +104,7 @@ public class EnvironmentVariant1JsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalEnvironmentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalEnvironmentParam).Name}"); - local = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + local = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -126,9 +115,7 @@ public class EnvironmentVariant1JsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerReferenceParam).Name}"); - containerReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + containerReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -155,26 +142,19 @@ public override void Write( global::tryAGI.OpenAI.EnvironmentVariant1 value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsContainerAuto) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerAutoParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerAutoParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ContainerAuto!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ContainerAuto, typeof(global::tryAGI.OpenAI.ContainerAutoParam), options); } else if (value.IsLocal) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalEnvironmentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalEnvironmentParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Local!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Local, typeof(global::tryAGI.OpenAI.LocalEnvironmentParam), options); } else if (value.IsContainerReference) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerReferenceParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ContainerReference!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ContainerReference, typeof(global::tryAGI.OpenAI.ContainerReferenceParam), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant12.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant12.g.cs index e00981e9..e9c883ec 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant12.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant12.g.cs @@ -12,8 +12,7 @@ public class EnvironmentVariant12JsonConverter : global::System.Text.Json.Serial global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -44,9 +43,7 @@ public class EnvironmentVariant12JsonConverter : global::System.Text.Json.Serial { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalEnvironmentResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalEnvironmentResource).Name}"); - local = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + local = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -59,9 +56,7 @@ public class EnvironmentVariant12JsonConverter : global::System.Text.Json.Serial { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerReferenceResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerReferenceResource).Name}"); - containerReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + containerReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -76,9 +71,7 @@ public class EnvironmentVariant12JsonConverter : global::System.Text.Json.Serial { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalEnvironmentResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalEnvironmentResource).Name}"); - local = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + local = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -89,9 +82,7 @@ public class EnvironmentVariant12JsonConverter : global::System.Text.Json.Serial try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerReferenceResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerReferenceResource).Name}"); - containerReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + containerReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -116,20 +107,15 @@ public override void Write( global::tryAGI.OpenAI.EnvironmentVariant12 value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsLocal) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalEnvironmentResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalEnvironmentResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Local!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Local, typeof(global::tryAGI.OpenAI.LocalEnvironmentResource), options); } else if (value.IsContainerReference) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerReferenceResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerReferenceResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ContainerReference!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ContainerReference, typeof(global::tryAGI.OpenAI.ContainerReferenceResource), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant13.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant13.g.cs index 82cf582b..88470e22 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant13.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant13.g.cs @@ -12,8 +12,7 @@ public class EnvironmentVariant13JsonConverter : global::System.Text.Json.Serial global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -45,9 +44,7 @@ public class EnvironmentVariant13JsonConverter : global::System.Text.Json.Serial { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalEnvironmentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalEnvironmentParam).Name}"); - local = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + local = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -60,9 +57,7 @@ public class EnvironmentVariant13JsonConverter : global::System.Text.Json.Serial { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerReferenceParam).Name}"); - containerReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + containerReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -77,9 +72,7 @@ public class EnvironmentVariant13JsonConverter : global::System.Text.Json.Serial { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalEnvironmentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalEnvironmentParam).Name}"); - local = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + local = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -90,9 +83,7 @@ public class EnvironmentVariant13JsonConverter : global::System.Text.Json.Serial try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerReferenceParam).Name}"); - containerReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + containerReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -117,20 +108,15 @@ public override void Write( global::tryAGI.OpenAI.EnvironmentVariant13 value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsLocal) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalEnvironmentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalEnvironmentParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Local!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Local, typeof(global::tryAGI.OpenAI.LocalEnvironmentParam), options); } else if (value.IsContainerReference) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerReferenceParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ContainerReference!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ContainerReference, typeof(global::tryAGI.OpenAI.ContainerReferenceParam), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderLabelModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderLabelModel.g.cs index 0043a3ba..a9be703c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderLabelModel.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderLabelModel.g.cs @@ -12,8 +12,7 @@ public class EvalGraderLabelModelJsonConverter : global::System.Text.Json.Serial global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -44,9 +43,7 @@ public class EvalGraderLabelModelJsonConverter : global::System.Text.Json.Serial { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderLabelModel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderLabelModel).Name}"); - labelModelGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + labelModelGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -61,9 +58,7 @@ public class EvalGraderLabelModelJsonConverter : global::System.Text.Json.Serial { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderLabelModel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderLabelModel).Name}"); - labelModelGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + labelModelGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -86,14 +81,11 @@ public override void Write( global::tryAGI.OpenAI.EvalGraderLabelModel value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsLabelModelGrader) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderLabelModel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderLabelModel).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.LabelModelGrader!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.LabelModelGrader, typeof(global::tryAGI.OpenAI.GraderLabelModel), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderPython.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderPython.g.cs index fc6ef2c5..1e6d5c52 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderPython.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderPython.g.cs @@ -12,8 +12,7 @@ public class EvalGraderPythonJsonConverter : global::System.Text.Json.Serializat global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -46,9 +45,7 @@ public class EvalGraderPythonJsonConverter : global::System.Text.Json.Serializat { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderPython), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderPython).Name}"); - pythonGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + pythonGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -61,9 +58,7 @@ public class EvalGraderPythonJsonConverter : global::System.Text.Json.Serializat { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalGraderPythonVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalGraderPythonVariant2).Name}"); - evalGraderPythonVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + evalGraderPythonVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -78,9 +73,7 @@ public class EvalGraderPythonJsonConverter : global::System.Text.Json.Serializat { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderPython), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderPython).Name}"); - pythonGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + pythonGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -91,9 +84,7 @@ public class EvalGraderPythonJsonConverter : global::System.Text.Json.Serializat try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalGraderPythonVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalGraderPythonVariant2).Name}"); - evalGraderPythonVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + evalGraderPythonVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -118,20 +109,15 @@ public override void Write( global::tryAGI.OpenAI.EvalGraderPython value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsPythonGrader) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderPython), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderPython).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PythonGrader!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PythonGrader, typeof(global::tryAGI.OpenAI.GraderPython), options); } else if (value.IsEvalGraderPythonVariant2) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalGraderPythonVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalGraderPythonVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.EvalGraderPythonVariant2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.EvalGraderPythonVariant2, typeof(global::tryAGI.OpenAI.EvalGraderPythonVariant2), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderScoreModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderScoreModel.g.cs index eb1f7c21..906b7647 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderScoreModel.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderScoreModel.g.cs @@ -12,8 +12,7 @@ public class EvalGraderScoreModelJsonConverter : global::System.Text.Json.Serial global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -48,9 +47,7 @@ public class EvalGraderScoreModelJsonConverter : global::System.Text.Json.Serial { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderScoreModel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderScoreModel).Name}"); - scoreModelGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + scoreModelGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -63,9 +60,7 @@ public class EvalGraderScoreModelJsonConverter : global::System.Text.Json.Serial { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalGraderScoreModelVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalGraderScoreModelVariant2).Name}"); - evalGraderScoreModelVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + evalGraderScoreModelVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -80,9 +75,7 @@ public class EvalGraderScoreModelJsonConverter : global::System.Text.Json.Serial { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderScoreModel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderScoreModel).Name}"); - scoreModelGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + scoreModelGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -93,9 +86,7 @@ public class EvalGraderScoreModelJsonConverter : global::System.Text.Json.Serial try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalGraderScoreModelVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalGraderScoreModelVariant2).Name}"); - evalGraderScoreModelVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + evalGraderScoreModelVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -120,20 +111,15 @@ public override void Write( global::tryAGI.OpenAI.EvalGraderScoreModel value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsScoreModelGrader) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderScoreModel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderScoreModel).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ScoreModelGrader!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ScoreModelGrader, typeof(global::tryAGI.OpenAI.GraderScoreModel), options); } else if (value.IsEvalGraderScoreModelVariant2) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalGraderScoreModelVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalGraderScoreModelVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.EvalGraderScoreModelVariant2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.EvalGraderScoreModelVariant2, typeof(global::tryAGI.OpenAI.EvalGraderScoreModelVariant2), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderStringCheck.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderStringCheck.g.cs index 47e7c086..bb3e10ca 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderStringCheck.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderStringCheck.g.cs @@ -12,8 +12,7 @@ public class EvalGraderStringCheckJsonConverter : global::System.Text.Json.Seria global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -43,9 +42,7 @@ public class EvalGraderStringCheckJsonConverter : global::System.Text.Json.Seria { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderStringCheck), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderStringCheck).Name}"); - stringCheckGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + stringCheckGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -60,9 +57,7 @@ public class EvalGraderStringCheckJsonConverter : global::System.Text.Json.Seria { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderStringCheck), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderStringCheck).Name}"); - stringCheckGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + stringCheckGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -85,14 +80,11 @@ public override void Write( global::tryAGI.OpenAI.EvalGraderStringCheck value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsStringCheckGrader) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderStringCheck), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderStringCheck).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.StringCheckGrader!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.StringCheckGrader, typeof(global::tryAGI.OpenAI.GraderStringCheck), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderTextSimilarity.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderTextSimilarity.g.cs index 32e16153..a199de03 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderTextSimilarity.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderTextSimilarity.g.cs @@ -12,8 +12,7 @@ public class EvalGraderTextSimilarityJsonConverter : global::System.Text.Json.Se global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -47,9 +46,7 @@ public class EvalGraderTextSimilarityJsonConverter : global::System.Text.Json.Se { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderTextSimilarity), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderTextSimilarity).Name}"); - textSimilarityGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + textSimilarityGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -62,9 +59,7 @@ public class EvalGraderTextSimilarityJsonConverter : global::System.Text.Json.Se { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2).Name}"); - evalGraderTextSimilarityVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + evalGraderTextSimilarityVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -79,9 +74,7 @@ public class EvalGraderTextSimilarityJsonConverter : global::System.Text.Json.Se { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderTextSimilarity), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderTextSimilarity).Name}"); - textSimilarityGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + textSimilarityGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -92,9 +85,7 @@ public class EvalGraderTextSimilarityJsonConverter : global::System.Text.Json.Se try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2).Name}"); - evalGraderTextSimilarityVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + evalGraderTextSimilarityVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -119,20 +110,15 @@ public override void Write( global::tryAGI.OpenAI.EvalGraderTextSimilarity value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsTextSimilarityGrader) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderTextSimilarity), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderTextSimilarity).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextSimilarityGrader!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextSimilarityGrader, typeof(global::tryAGI.OpenAI.GraderTextSimilarity), options); } else if (value.IsEvalGraderTextSimilarityVariant2) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.EvalGraderTextSimilarityVariant2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.EvalGraderTextSimilarityVariant2, typeof(global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalItemContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalItemContent.g.cs index c4cf1b3a..6fe36061 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalItemContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalItemContent.g.cs @@ -12,8 +12,7 @@ public class EvalItemContentJsonConverter : global::System.Text.Json.Serializati global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); @@ -28,27 +27,7 @@ public class EvalItemContentJsonConverter : global::System.Text.Json.Serializati } var __score0 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalItemContentItem), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score0++; - } - } - } var __score1 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score1++; - } - } - } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -63,9 +42,7 @@ public class EvalItemContentJsonConverter : global::System.Text.Json.Serializati try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalItemContentItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalItemContentItem).Name}"); - evalContentItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + evalContentItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -80,9 +57,7 @@ public class EvalItemContentJsonConverter : global::System.Text.Json.Serializati try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); - anArrayOfInputTextOutputTextInputImageAndInputAudio = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + anArrayOfInputTextOutputTextInputImageAndInputAudio = global::System.Text.Json.JsonSerializer.Deserialize>(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -98,9 +73,7 @@ public class EvalItemContentJsonConverter : global::System.Text.Json.Serializati try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalItemContentItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalItemContentItem).Name}"); - evalContentItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + evalContentItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -112,9 +85,7 @@ public class EvalItemContentJsonConverter : global::System.Text.Json.Serializati try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); - anArrayOfInputTextOutputTextInputImageAndInputAudio = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + anArrayOfInputTextOutputTextInputImageAndInputAudio = global::System.Text.Json.JsonSerializer.Deserialize>(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -139,20 +110,15 @@ public override void Write( global::tryAGI.OpenAI.EvalItemContent value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsEvalContentItem) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalItemContentItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalItemContentItem).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.EvalContentItem!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.EvalContentItem, typeof(global::tryAGI.OpenAI.EvalItemContentItem), options); } else if (value.IsAnArrayOfInputTextOutputTextInputImageAndInputAudio) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo?> ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AnArrayOfInputTextOutputTextInputImageAndInputAudio!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AnArrayOfInputTextOutputTextInputImageAndInputAudio, typeof(global::System.Collections.Generic.IList), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalItemContentItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalItemContentItem.g.cs index 0d63d0d5..46f6628c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalItemContentItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalItemContentItem.g.cs @@ -12,8 +12,7 @@ public class EvalItemContentItemJsonConverter : global::System.Text.Json.Seriali global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -59,9 +58,7 @@ public class EvalItemContentItemJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - textInput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + textInput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -74,9 +71,7 @@ public class EvalItemContentItemJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputTextContent).Name}"); - inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -89,9 +84,7 @@ public class EvalItemContentItemJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalItemContentOutputText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalItemContentOutputText).Name}"); - outputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + outputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -104,9 +97,7 @@ public class EvalItemContentItemJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalItemInputImage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalItemInputImage).Name}"); - inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -119,9 +110,7 @@ public class EvalItemContentItemJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputAudio), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputAudio).Name}"); - inputAudio = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputAudio = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -136,9 +125,7 @@ public class EvalItemContentItemJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - textInput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + textInput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -149,9 +136,7 @@ public class EvalItemContentItemJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputTextContent).Name}"); - inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -162,9 +147,7 @@ public class EvalItemContentItemJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalItemContentOutputText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalItemContentOutputText).Name}"); - outputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + outputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -175,9 +158,7 @@ public class EvalItemContentItemJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalItemInputImage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalItemInputImage).Name}"); - inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -188,9 +169,7 @@ public class EvalItemContentItemJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputAudio), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputAudio).Name}"); - inputAudio = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputAudio = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -221,38 +200,27 @@ public override void Write( global::tryAGI.OpenAI.EvalItemContentItem value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsTextInput) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextInput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextInput, typeof(string), options); } else if (value.IsInputText) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputTextContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputText!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputText, typeof(global::tryAGI.OpenAI.InputTextContent), options); } else if (value.IsOutputText) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalItemContentOutputText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalItemContentOutputText).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputText!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputText, typeof(global::tryAGI.OpenAI.EvalItemContentOutputText), options); } else if (value.IsInputImage) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalItemInputImage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalItemInputImage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputImage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputImage, typeof(global::tryAGI.OpenAI.EvalItemInputImage), options); } else if (value.IsInputAudio) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputAudio), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputAudio).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudio!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudio, typeof(global::tryAGI.OpenAI.InputAudio), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Filters2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Filters2.g.cs index a272827a..fa8d8507 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Filters2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Filters2.g.cs @@ -12,8 +12,7 @@ public class Filters2JsonConverter : global::System.Text.Json.Serialization.Json global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -46,9 +45,7 @@ public class Filters2JsonConverter : global::System.Text.Json.Serialization.Json { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComparisonFilter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComparisonFilter).Name}"); - comparisonFilter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + comparisonFilter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -61,9 +58,7 @@ public class Filters2JsonConverter : global::System.Text.Json.Serialization.Json { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompoundFilter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompoundFilter).Name}"); - compoundFilter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + compoundFilter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -78,9 +73,7 @@ public class Filters2JsonConverter : global::System.Text.Json.Serialization.Json { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComparisonFilter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComparisonFilter).Name}"); - comparisonFilter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + comparisonFilter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -91,9 +84,7 @@ public class Filters2JsonConverter : global::System.Text.Json.Serialization.Json try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompoundFilter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompoundFilter).Name}"); - compoundFilter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + compoundFilter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -118,20 +109,15 @@ public override void Write( global::tryAGI.OpenAI.Filters2 value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsComparisonFilter) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComparisonFilter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComparisonFilter).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComparisonFilter!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComparisonFilter, typeof(global::tryAGI.OpenAI.ComparisonFilter), options); } else if (value.IsCompoundFilter) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompoundFilter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompoundFilter).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CompoundFilter!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CompoundFilter, typeof(global::tryAGI.OpenAI.CompoundFilter), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FiltersItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FiltersItem.g.cs index 0fbc5bd3..21fc916c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FiltersItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FiltersItem.g.cs @@ -12,8 +12,7 @@ public class FiltersItemJsonConverter : global::System.Text.Json.Serialization.J global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -44,9 +43,7 @@ public class FiltersItemJsonConverter : global::System.Text.Json.Serialization.J { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComparisonFilter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComparisonFilter).Name}"); - comparisonFilter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + comparisonFilter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -59,9 +56,7 @@ public class FiltersItemJsonConverter : global::System.Text.Json.Serialization.J { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - compoundFilterVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + compoundFilterVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -76,9 +71,7 @@ public class FiltersItemJsonConverter : global::System.Text.Json.Serialization.J { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComparisonFilter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComparisonFilter).Name}"); - comparisonFilter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + comparisonFilter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -89,9 +82,7 @@ public class FiltersItemJsonConverter : global::System.Text.Json.Serialization.J try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - compoundFilterVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + compoundFilterVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -116,20 +107,15 @@ public override void Write( global::tryAGI.OpenAI.FiltersItem value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsComparisonFilter) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComparisonFilter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComparisonFilter).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComparisonFilter!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComparisonFilter, typeof(global::tryAGI.OpenAI.ComparisonFilter), options); } else if (value.IsCompoundFilterVariant2) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CompoundFilterVariant2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CompoundFilterVariant2, typeof(object), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FineTuneChatCompletionRequestAssistantMessage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FineTuneChatCompletionRequestAssistantMessage.g.cs index 0ebfb528..cfad8ea6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FineTuneChatCompletionRequestAssistantMessage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FineTuneChatCompletionRequestAssistantMessage.g.cs @@ -12,8 +12,7 @@ public class FineTuneChatCompletionRequestAssistantMessageJsonConverter : global global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -49,9 +48,7 @@ public class FineTuneChatCompletionRequestAssistantMessageJsonConverter : global { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessageAssistantMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessageAssistantMessage).Name}"); - assistantMessage1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + assistantMessage1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -64,9 +61,7 @@ public class FineTuneChatCompletionRequestAssistantMessageJsonConverter : global { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage).Name}"); - assistantMessage2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + assistantMessage2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -81,9 +76,7 @@ public class FineTuneChatCompletionRequestAssistantMessageJsonConverter : global { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessageAssistantMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessageAssistantMessage).Name}"); - assistantMessage1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + assistantMessage1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -94,9 +87,7 @@ public class FineTuneChatCompletionRequestAssistantMessageJsonConverter : global try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage).Name}"); - assistantMessage2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + assistantMessage2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -121,20 +112,15 @@ public override void Write( global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessage value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsAssistantMessage1) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessageAssistantMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessageAssistantMessage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssistantMessage1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssistantMessage1, typeof(global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessageAssistantMessage), options); } else if (value.IsAssistantMessage2) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssistantMessage2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssistantMessage2, typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Format2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Format2.g.cs index aa05712e..efd76b33 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Format2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Format2.g.cs @@ -12,8 +12,7 @@ public class Format2JsonConverter : global::System.Text.Json.Serialization.JsonC global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -45,9 +44,7 @@ public class Format2JsonConverter : global::System.Text.Json.Serialization.JsonC { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomTextFormatParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomTextFormatParam).Name}"); - text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -60,9 +57,7 @@ public class Format2JsonConverter : global::System.Text.Json.Serialization.JsonC { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomGrammarFormatParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomGrammarFormatParam).Name}"); - grammar = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + grammar = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -77,9 +72,7 @@ public class Format2JsonConverter : global::System.Text.Json.Serialization.JsonC { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomTextFormatParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomTextFormatParam).Name}"); - text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -90,9 +83,7 @@ public class Format2JsonConverter : global::System.Text.Json.Serialization.JsonC try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomGrammarFormatParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomGrammarFormatParam).Name}"); - grammar = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + grammar = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -117,20 +108,15 @@ public override void Write( global::tryAGI.OpenAI.Format2 value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsText) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomTextFormatParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomTextFormatParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text, typeof(global::tryAGI.OpenAI.CustomTextFormatParam), options); } else if (value.IsGrammar) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomGrammarFormatParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomGrammarFormatParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Grammar!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Grammar, typeof(global::tryAGI.OpenAI.CustomGrammarFormatParam), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionAndCustomToolCallOutput.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionAndCustomToolCallOutput.g.cs index dddb86e0..a3f5774c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionAndCustomToolCallOutput.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionAndCustomToolCallOutput.g.cs @@ -12,8 +12,7 @@ public class FunctionAndCustomToolCallOutputJsonConverter : global::System.Text. global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -55,9 +54,7 @@ public class FunctionAndCustomToolCallOutputJsonConverter : global::System.Text. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputTextContent).Name}"); - inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -70,9 +67,7 @@ public class FunctionAndCustomToolCallOutputJsonConverter : global::System.Text. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputImageContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputImageContent).Name}"); - inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -85,9 +80,7 @@ public class FunctionAndCustomToolCallOutputJsonConverter : global::System.Text. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputFileContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputFileContent).Name}"); - inputFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -102,9 +95,7 @@ public class FunctionAndCustomToolCallOutputJsonConverter : global::System.Text. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputTextContent).Name}"); - inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -115,9 +106,7 @@ public class FunctionAndCustomToolCallOutputJsonConverter : global::System.Text. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputImageContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputImageContent).Name}"); - inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -128,9 +117,7 @@ public class FunctionAndCustomToolCallOutputJsonConverter : global::System.Text. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputFileContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputFileContent).Name}"); - inputFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -157,26 +144,19 @@ public override void Write( global::tryAGI.OpenAI.FunctionAndCustomToolCallOutput value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsInputText) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputTextContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputText!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputText, typeof(global::tryAGI.OpenAI.InputTextContent), options); } else if (value.IsInputImage) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputImageContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputImageContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputImage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputImage, typeof(global::tryAGI.OpenAI.InputImageContent), options); } else if (value.IsInputFile) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputFileContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputFileContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputFile!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputFile, typeof(global::tryAGI.OpenAI.InputFileContent), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParam.g.cs index ab8e431f..dc072052 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParam.g.cs @@ -12,8 +12,7 @@ public class FunctionShellCallOutputOutcomeParamJsonConverter : global::System.T global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -44,9 +43,7 @@ public class FunctionShellCallOutputOutcomeParamJsonConverter : global::System.T { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParam).Name}"); - timeout = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + timeout = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -59,9 +56,7 @@ public class FunctionShellCallOutputOutcomeParamJsonConverter : global::System.T { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParam).Name}"); - exit = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + exit = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -76,9 +71,7 @@ public class FunctionShellCallOutputOutcomeParamJsonConverter : global::System.T { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParam).Name}"); - timeout = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + timeout = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -89,9 +82,7 @@ public class FunctionShellCallOutputOutcomeParamJsonConverter : global::System.T try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParam).Name}"); - exit = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + exit = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -116,20 +107,15 @@ public override void Write( global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParam value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsTimeout) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Timeout!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Timeout, typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParam), options); } else if (value.IsExit) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Exit!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Exit, typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParam), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionToolCallOutputResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionToolCallOutputResource.g.cs index e9e03f5f..195aa506 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionToolCallOutputResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionToolCallOutputResource.g.cs @@ -12,8 +12,7 @@ public class FunctionToolCallOutputResourceJsonConverter : global::System.Text.J global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -49,9 +48,7 @@ public class FunctionToolCallOutputResourceJsonConverter : global::System.Text.J { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutput).Name}"); - functionToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -64,9 +61,7 @@ public class FunctionToolCallOutputResourceJsonConverter : global::System.Text.J { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2).Name}"); - functionToolCallOutputResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionToolCallOutputResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -81,9 +76,7 @@ public class FunctionToolCallOutputResourceJsonConverter : global::System.Text.J { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutput).Name}"); - functionToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -94,9 +87,7 @@ public class FunctionToolCallOutputResourceJsonConverter : global::System.Text.J try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2).Name}"); - functionToolCallOutputResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionToolCallOutputResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -121,20 +112,15 @@ public override void Write( global::tryAGI.OpenAI.FunctionToolCallOutputResource value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsFunctionToolCallOutput) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCallOutput, typeof(global::tryAGI.OpenAI.FunctionToolCallOutput), options); } else if (value.IsFunctionToolCallOutputResourceVariant2) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCallOutputResourceVariant2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCallOutputResourceVariant2, typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionToolCallResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionToolCallResource.g.cs index 4a06d7af..cf40a3cd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionToolCallResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionToolCallResource.g.cs @@ -12,8 +12,7 @@ public class FunctionToolCallResourceJsonConverter : global::System.Text.Json.Se global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -51,9 +50,7 @@ public class FunctionToolCallResourceJsonConverter : global::System.Text.Json.Se { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCall).Name}"); - functionToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -66,9 +63,7 @@ public class FunctionToolCallResourceJsonConverter : global::System.Text.Json.Se { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallResourceVariant2).Name}"); - functionToolCallResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionToolCallResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -83,9 +78,7 @@ public class FunctionToolCallResourceJsonConverter : global::System.Text.Json.Se { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCall).Name}"); - functionToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -96,9 +89,7 @@ public class FunctionToolCallResourceJsonConverter : global::System.Text.Json.Se try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallResourceVariant2).Name}"); - functionToolCallResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionToolCallResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -123,20 +114,15 @@ public override void Write( global::tryAGI.OpenAI.FunctionToolCallResource value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsFunctionToolCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCall, typeof(global::tryAGI.OpenAI.FunctionToolCall), options); } else if (value.IsFunctionToolCallResourceVariant2) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallResourceVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCallResourceVariant2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCallResourceVariant2, typeof(global::tryAGI.OpenAI.FunctionToolCallResourceVariant2), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageEditStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageEditStreamEvent.g.cs index d02c26f7..c86d9de0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageEditStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageEditStreamEvent.g.cs @@ -12,8 +12,7 @@ public class ImageEditStreamEventJsonConverter : global::System.Text.Json.Serial global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -57,9 +56,7 @@ public class ImageEditStreamEventJsonConverter : global::System.Text.Json.Serial { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageEditPartialImageEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageEditPartialImageEvent).Name}"); - imageEditPartialImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + imageEditPartialImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -72,9 +69,7 @@ public class ImageEditStreamEventJsonConverter : global::System.Text.Json.Serial { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageEditCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageEditCompletedEvent).Name}"); - imageEditCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + imageEditCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -89,9 +84,7 @@ public class ImageEditStreamEventJsonConverter : global::System.Text.Json.Serial { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageEditPartialImageEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageEditPartialImageEvent).Name}"); - imageEditPartialImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + imageEditPartialImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -102,9 +95,7 @@ public class ImageEditStreamEventJsonConverter : global::System.Text.Json.Serial try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageEditCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageEditCompletedEvent).Name}"); - imageEditCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + imageEditCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -129,20 +120,15 @@ public override void Write( global::tryAGI.OpenAI.ImageEditStreamEvent value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsImageEditPartialImage) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageEditPartialImageEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageEditPartialImageEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageEditPartialImage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageEditPartialImage, typeof(global::tryAGI.OpenAI.ImageEditPartialImageEvent), options); } else if (value.IsImageEditCompleted) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageEditCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageEditCompletedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageEditCompleted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageEditCompleted, typeof(global::tryAGI.OpenAI.ImageEditCompletedEvent), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageGenStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageGenStreamEvent.g.cs index 3f704507..9a5340d0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageGenStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageGenStreamEvent.g.cs @@ -12,8 +12,7 @@ public class ImageGenStreamEventJsonConverter : global::System.Text.Json.Seriali global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -57,9 +56,7 @@ public class ImageGenStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenPartialImageEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenPartialImageEvent).Name}"); - imageGenerationPartialImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + imageGenerationPartialImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -72,9 +69,7 @@ public class ImageGenStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenCompletedEvent).Name}"); - imageGenerationCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + imageGenerationCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -89,9 +84,7 @@ public class ImageGenStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenPartialImageEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenPartialImageEvent).Name}"); - imageGenerationPartialImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + imageGenerationPartialImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -102,9 +95,7 @@ public class ImageGenStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenCompletedEvent).Name}"); - imageGenerationCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + imageGenerationCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -129,20 +120,15 @@ public override void Write( global::tryAGI.OpenAI.ImageGenStreamEvent value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsImageGenerationPartialImage) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenPartialImageEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenPartialImageEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationPartialImage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationPartialImage, typeof(global::tryAGI.OpenAI.ImageGenPartialImageEvent), options); } else if (value.IsImageGenerationCompleted) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenCompletedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationCompleted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationCompleted, typeof(global::tryAGI.OpenAI.ImageGenCompletedEvent), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputContent.g.cs index f0231854..fca34ce5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputContent.g.cs @@ -12,8 +12,7 @@ public class InputContentJsonConverter : global::System.Text.Json.Serialization. global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -55,9 +54,7 @@ public class InputContentJsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputTextContent).Name}"); - inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -70,9 +67,7 @@ public class InputContentJsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputImageContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputImageContent).Name}"); - inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -85,9 +80,7 @@ public class InputContentJsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputFileContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputFileContent).Name}"); - inputFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -102,9 +95,7 @@ public class InputContentJsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputTextContent).Name}"); - inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -115,9 +106,7 @@ public class InputContentJsonConverter : global::System.Text.Json.Serialization. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputImageContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputImageContent).Name}"); - inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -128,9 +117,7 @@ public class InputContentJsonConverter : global::System.Text.Json.Serialization. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputFileContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputFileContent).Name}"); - inputFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -157,26 +144,19 @@ public override void Write( global::tryAGI.OpenAI.InputContent value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsInputText) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputTextContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputText!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputText, typeof(global::tryAGI.OpenAI.InputTextContent), options); } else if (value.IsInputImage) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputImageContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputImageContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputImage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputImage, typeof(global::tryAGI.OpenAI.InputImageContent), options); } else if (value.IsInputFile) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputFileContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputFileContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputFile!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputFile, typeof(global::tryAGI.OpenAI.InputFileContent), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputItem.g.cs index 2bed7a56..cc47b2c6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputItem.g.cs @@ -12,8 +12,7 @@ public class InputItemJsonConverter : global::System.Text.Json.Serialization.Jso global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -50,9 +49,7 @@ public class InputItemJsonConverter : global::System.Text.Json.Serialization.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EasyInputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EasyInputMessage).Name}"); - message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -65,9 +62,7 @@ public class InputItemJsonConverter : global::System.Text.Json.Serialization.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Item), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Item).Name}"); - item = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + item = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -80,9 +75,7 @@ public class InputItemJsonConverter : global::System.Text.Json.Serialization.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ItemReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ItemReferenceParam).Name}"); - itemReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + itemReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -97,9 +90,7 @@ public class InputItemJsonConverter : global::System.Text.Json.Serialization.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EasyInputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EasyInputMessage).Name}"); - message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -110,9 +101,7 @@ public class InputItemJsonConverter : global::System.Text.Json.Serialization.Jso try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Item), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Item).Name}"); - item = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + item = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -123,9 +112,7 @@ public class InputItemJsonConverter : global::System.Text.Json.Serialization.Jso try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ItemReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ItemReferenceParam).Name}"); - itemReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + itemReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -152,26 +139,19 @@ public override void Write( global::tryAGI.OpenAI.InputItem value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsMessage) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EasyInputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EasyInputMessage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message, typeof(global::tryAGI.OpenAI.EasyInputMessage), options); } else if (value.IsItem) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Item), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Item).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Item!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Item, typeof(global::tryAGI.OpenAI.Item), options); } else if (value.IsItemReference) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ItemReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ItemReferenceParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ItemReference!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ItemReference, typeof(global::tryAGI.OpenAI.ItemReferenceParam), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputMessageResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputMessageResource.g.cs index d161ba9c..12b59afe 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputMessageResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputMessageResource.g.cs @@ -12,8 +12,7 @@ public class InputMessageResourceJsonConverter : global::System.Text.Json.Serial global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -46,9 +45,7 @@ public class InputMessageResourceJsonConverter : global::System.Text.Json.Serial { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputMessage).Name}"); - inputMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -61,9 +58,7 @@ public class InputMessageResourceJsonConverter : global::System.Text.Json.Serial { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputMessageResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputMessageResourceVariant2).Name}"); - inputMessageResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputMessageResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -78,9 +73,7 @@ public class InputMessageResourceJsonConverter : global::System.Text.Json.Serial { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputMessage).Name}"); - inputMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -91,9 +84,7 @@ public class InputMessageResourceJsonConverter : global::System.Text.Json.Serial try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputMessageResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputMessageResourceVariant2).Name}"); - inputMessageResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputMessageResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -118,20 +109,15 @@ public override void Write( global::tryAGI.OpenAI.InputMessageResource value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsInputMessage) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputMessage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputMessage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputMessage, typeof(global::tryAGI.OpenAI.InputMessage), options); } else if (value.IsInputMessageResourceVariant2) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputMessageResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputMessageResourceVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputMessageResourceVariant2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputMessageResourceVariant2, typeof(global::tryAGI.OpenAI.InputMessageResourceVariant2), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputParam.g.cs index 6e041f55..d39fcae0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputParam.g.cs @@ -12,8 +12,7 @@ public class InputParamJsonConverter : global::System.Text.Json.Serialization.Js global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); @@ -28,27 +27,7 @@ public class InputParamJsonConverter : global::System.Text.Json.Serialization.Js } var __score0 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score0++; - } - } - } var __score1 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score1++; - } - } - } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -63,9 +42,7 @@ public class InputParamJsonConverter : global::System.Text.Json.Serialization.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - textInput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + textInput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -80,9 +57,7 @@ public class InputParamJsonConverter : global::System.Text.Json.Serialization.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); - inputItemList = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputItemList = global::System.Text.Json.JsonSerializer.Deserialize>(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -98,9 +73,7 @@ public class InputParamJsonConverter : global::System.Text.Json.Serialization.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - textInput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + textInput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -112,9 +85,7 @@ public class InputParamJsonConverter : global::System.Text.Json.Serialization.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); - inputItemList = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputItemList = global::System.Text.Json.JsonSerializer.Deserialize>(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -139,20 +110,15 @@ public override void Write( global::tryAGI.OpenAI.InputParam value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsTextInput) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextInput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextInput, typeof(string), options); } else if (value.IsInputItemList) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo?> ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputItemList!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputItemList, typeof(global::System.Collections.Generic.IList), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Item.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Item.g.cs index cbe22eee..ba903ce4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Item.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Item.g.cs @@ -12,8 +12,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -253,9 +252,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputMessage).Name}"); - message1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + message1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -268,9 +265,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputMessage).Name}"); - message2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + message2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -283,9 +278,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchToolCall).Name}"); - fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -298,9 +291,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCall).Name}"); - computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -313,9 +304,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerCallOutputItemParam).Name}"); - computerCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + computerCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -328,9 +317,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchToolCall).Name}"); - webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -343,9 +330,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCall).Name}"); - functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -358,9 +343,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionCallOutputItemParam).Name}"); - functionCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -373,9 +356,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchCallItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchCallItemParam).Name}"); - toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -388,9 +369,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchOutputItemParam).Name}"); - toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -403,9 +382,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningItem).Name}"); - reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -418,9 +395,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompactionSummaryItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompactionSummaryItemParam).Name}"); - compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -433,9 +408,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenToolCall).Name}"); - imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -448,9 +421,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall).Name}"); - codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -463,9 +434,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCall).Name}"); - localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -478,9 +447,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput).Name}"); - localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -493,9 +460,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallItemParam).Name}"); - shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -508,9 +473,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutputItemParam).Name}"); - shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -523,9 +486,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallItemParam).Name}"); - applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -538,9 +499,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParam).Name}"); - applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -553,9 +512,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPListTools).Name}"); - mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -568,9 +525,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalRequest).Name}"); - mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -583,9 +538,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalResponse).Name}"); - mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -598,9 +551,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPToolCall).Name}"); - mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -613,9 +564,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutput).Name}"); - customToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + customToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -628,9 +577,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCall).Name}"); - customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -645,9 +592,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputMessage).Name}"); - message1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + message1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -658,9 +603,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputMessage).Name}"); - message2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + message2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -671,9 +614,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchToolCall).Name}"); - fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -684,9 +625,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCall).Name}"); - computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -697,9 +636,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerCallOutputItemParam).Name}"); - computerCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + computerCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -710,9 +647,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchToolCall).Name}"); - webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -723,9 +658,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCall).Name}"); - functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -736,9 +669,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionCallOutputItemParam).Name}"); - functionCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -749,9 +680,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchCallItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchCallItemParam).Name}"); - toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -762,9 +691,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchOutputItemParam).Name}"); - toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -775,9 +702,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningItem).Name}"); - reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -788,9 +713,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompactionSummaryItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompactionSummaryItemParam).Name}"); - compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -801,9 +724,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenToolCall).Name}"); - imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -814,9 +735,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall).Name}"); - codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -827,9 +746,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCall).Name}"); - localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -840,9 +757,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput).Name}"); - localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -853,9 +768,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallItemParam).Name}"); - shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -866,9 +779,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutputItemParam).Name}"); - shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -879,9 +790,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallItemParam).Name}"); - applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -892,9 +801,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParam).Name}"); - applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -905,9 +812,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPListTools).Name}"); - mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -918,9 +823,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalRequest).Name}"); - mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -931,9 +834,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalResponse).Name}"); - mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -944,9 +845,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPToolCall).Name}"); - mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -957,9 +856,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutput).Name}"); - customToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + customToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -970,9 +867,7 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCall).Name}"); - customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1045,164 +940,111 @@ public override void Write( global::tryAGI.OpenAI.Item value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsMessage1) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputMessage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message1, typeof(global::tryAGI.OpenAI.InputMessage), options); } else if (value.IsMessage2) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputMessage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message2, typeof(global::tryAGI.OpenAI.OutputMessage), options); } else if (value.IsFileSearchCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchCall, typeof(global::tryAGI.OpenAI.FileSearchToolCall), options); } else if (value.IsComputerCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerCall, typeof(global::tryAGI.OpenAI.ComputerToolCall), options); } else if (value.IsComputerCallOutput) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerCallOutputItemParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerCallOutput, typeof(global::tryAGI.OpenAI.ComputerCallOutputItemParam), options); } else if (value.IsWebSearchCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearchCall, typeof(global::tryAGI.OpenAI.WebSearchToolCall), options); } else if (value.IsFunctionCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCall, typeof(global::tryAGI.OpenAI.FunctionToolCall), options); } else if (value.IsFunctionCallOutput) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionCallOutputItemParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCallOutput, typeof(global::tryAGI.OpenAI.FunctionCallOutputItemParam), options); } else if (value.IsToolSearchCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchCallItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchCallItemParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchCall, typeof(global::tryAGI.OpenAI.ToolSearchCallItemParam), options); } else if (value.IsToolSearchOutput) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchOutputItemParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchOutput, typeof(global::tryAGI.OpenAI.ToolSearchOutputItemParam), options); } else if (value.IsReasoning) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningItem).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Reasoning!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Reasoning, typeof(global::tryAGI.OpenAI.ReasoningItem), options); } else if (value.IsCompaction) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompactionSummaryItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompactionSummaryItemParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Compaction!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Compaction, typeof(global::tryAGI.OpenAI.CompactionSummaryItemParam), options); } else if (value.IsImageGenerationCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationCall, typeof(global::tryAGI.OpenAI.ImageGenToolCall), options); } else if (value.IsCodeInterpreterCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreterCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreterCall, typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options); } else if (value.IsLocalShellCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCall, typeof(global::tryAGI.OpenAI.LocalShellToolCall), options); } else if (value.IsLocalShellCallOutput) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCallOutput, typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options); } else if (value.IsShellCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallItemParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCall, typeof(global::tryAGI.OpenAI.FunctionShellCallItemParam), options); } else if (value.IsShellCallOutput) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutputItemParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCallOutput, typeof(global::tryAGI.OpenAI.FunctionShellCallOutputItemParam), options); } else if (value.IsApplyPatchCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallItemParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCall, typeof(global::tryAGI.OpenAI.ApplyPatchToolCallItemParam), options); } else if (value.IsApplyPatchCallOutput) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallOutput, typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParam), options); } else if (value.IsMcpListTools) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPListTools).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListTools!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListTools, typeof(global::tryAGI.OpenAI.MCPListTools), options); } else if (value.IsMcpApprovalRequest) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalRequest).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalRequest!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalRequest, typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options); } else if (value.IsMcpApprovalResponse) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalResponse).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalResponse!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalResponse, typeof(global::tryAGI.OpenAI.MCPApprovalResponse), options); } else if (value.IsMcpCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpCall, typeof(global::tryAGI.OpenAI.MCPToolCall), options); } else if (value.IsCustomToolCallOutput) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCallOutput, typeof(global::tryAGI.OpenAI.CustomToolCallOutput), options); } else if (value.IsCustomToolCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCall, typeof(global::tryAGI.OpenAI.CustomToolCall), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemField.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemField.g.cs index 246e3fc6..112b4edd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemField.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemField.g.cs @@ -12,8 +12,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -247,9 +246,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Message), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Message).Name}"); - message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -262,9 +259,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCall).Name}"); - functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -277,9 +272,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchCall).Name}"); - toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -292,9 +285,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchOutput).Name}"); - toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -307,9 +298,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutput).Name}"); - functionCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -322,9 +311,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchToolCall).Name}"); - fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -337,9 +324,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchToolCall).Name}"); - webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -352,9 +337,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenToolCall).Name}"); - imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -367,9 +350,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCall).Name}"); - computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -382,9 +363,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource).Name}"); - computerToolCallOutputResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + computerToolCallOutputResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -397,9 +376,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningItem).Name}"); - reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -412,9 +389,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompactionBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompactionBody).Name}"); - compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -427,9 +402,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall).Name}"); - codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -442,9 +415,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCall).Name}"); - localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -457,9 +428,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput).Name}"); - localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -472,9 +441,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCall).Name}"); - shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -487,9 +454,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutput).Name}"); - shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -502,9 +467,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCall).Name}"); - applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -517,9 +480,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput).Name}"); - applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -532,9 +493,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPListTools).Name}"); - mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -547,9 +506,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalRequest).Name}"); - mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -562,9 +519,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource).Name}"); - mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -577,9 +532,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPToolCall).Name}"); - mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -592,9 +545,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCall).Name}"); - customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -607,9 +558,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutput).Name}"); - customToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + customToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -624,9 +573,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Message), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Message).Name}"); - message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -637,9 +584,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCall).Name}"); - functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -650,9 +595,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchCall).Name}"); - toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -663,9 +606,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchOutput).Name}"); - toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -676,9 +617,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutput).Name}"); - functionCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -689,9 +628,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchToolCall).Name}"); - fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -702,9 +639,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchToolCall).Name}"); - webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -715,9 +650,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenToolCall).Name}"); - imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -728,9 +661,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCall).Name}"); - computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -741,9 +672,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource).Name}"); - computerToolCallOutputResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + computerToolCallOutputResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -754,9 +683,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningItem).Name}"); - reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -767,9 +694,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompactionBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompactionBody).Name}"); - compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -780,9 +705,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall).Name}"); - codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -793,9 +716,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCall).Name}"); - localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -806,9 +727,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput).Name}"); - localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -819,9 +738,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCall).Name}"); - shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -832,9 +749,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutput).Name}"); - shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -845,9 +760,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCall).Name}"); - applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -858,9 +771,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput).Name}"); - applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -871,9 +782,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPListTools).Name}"); - mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -884,9 +793,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalRequest).Name}"); - mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -897,9 +804,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource).Name}"); - mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -910,9 +815,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPToolCall).Name}"); - mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -923,9 +826,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCall).Name}"); - customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -936,9 +837,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutput).Name}"); - customToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + customToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1009,158 +908,107 @@ public override void Write( global::tryAGI.OpenAI.ItemField value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsMessage) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Message), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Message).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message, typeof(global::tryAGI.OpenAI.Message), options); } else if (value.IsFunctionCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCall, typeof(global::tryAGI.OpenAI.FunctionToolCall), options); } else if (value.IsToolSearchCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchCall, typeof(global::tryAGI.OpenAI.ToolSearchCall), options); } else if (value.IsToolSearchOutput) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchOutput, typeof(global::tryAGI.OpenAI.ToolSearchOutput), options); } else if (value.IsFunctionCallOutput) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCallOutput, typeof(global::tryAGI.OpenAI.FunctionToolCallOutput), options); } else if (value.IsFileSearchCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchCall, typeof(global::tryAGI.OpenAI.FileSearchToolCall), options); } else if (value.IsWebSearchCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearchCall, typeof(global::tryAGI.OpenAI.WebSearchToolCall), options); } else if (value.IsImageGenerationCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationCall, typeof(global::tryAGI.OpenAI.ImageGenToolCall), options); } else if (value.IsComputerCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerCall, typeof(global::tryAGI.OpenAI.ComputerToolCall), options); } else if (value.IsComputerToolCallOutputResource) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerToolCallOutputResource!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerToolCallOutputResource, typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource), options); } else if (value.IsReasoning) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningItem).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Reasoning!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Reasoning, typeof(global::tryAGI.OpenAI.ReasoningItem), options); } else if (value.IsCompaction) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompactionBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompactionBody).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Compaction!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Compaction, typeof(global::tryAGI.OpenAI.CompactionBody), options); } else if (value.IsCodeInterpreterCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreterCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreterCall, typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options); } else if (value.IsLocalShellCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCall, typeof(global::tryAGI.OpenAI.LocalShellToolCall), options); } else if (value.IsLocalShellCallOutput) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCallOutput, typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options); } else if (value.IsShellCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCall, typeof(global::tryAGI.OpenAI.FunctionShellCall), options); } else if (value.IsShellCallOutput) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCallOutput, typeof(global::tryAGI.OpenAI.FunctionShellCallOutput), options); } else if (value.IsApplyPatchCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCall, typeof(global::tryAGI.OpenAI.ApplyPatchToolCall), options); } else if (value.IsApplyPatchCallOutput) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallOutput, typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput), options); } else if (value.IsMcpListTools) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPListTools).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListTools!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListTools, typeof(global::tryAGI.OpenAI.MCPListTools), options); } else if (value.IsMcpApprovalRequest) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalRequest).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalRequest!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalRequest, typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options); } else if (value.IsMcpApprovalResponse) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalResponse!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalResponse, typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource), options); } else if (value.IsMcpCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpCall, typeof(global::tryAGI.OpenAI.MCPToolCall), options); } else if (value.IsCustomToolCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCall, typeof(global::tryAGI.OpenAI.CustomToolCall), options); } else if (value.IsCustomToolCallOutput) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCallOutput, typeof(global::tryAGI.OpenAI.CustomToolCallOutput), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemResource.g.cs index d5f61c25..d15bc7c6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemResource.g.cs @@ -12,8 +12,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -228,9 +227,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputMessageResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputMessageResource).Name}"); - inputMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -243,9 +240,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputMessage).Name}"); - message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -258,9 +253,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchToolCall).Name}"); - fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -273,9 +266,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCall).Name}"); - computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -288,9 +279,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource).Name}"); - computerToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + computerToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -303,9 +292,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchToolCall).Name}"); - webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -318,9 +305,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallResource).Name}"); - functionToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -333,9 +318,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource).Name}"); - functionToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -348,9 +331,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchCall).Name}"); - toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -363,9 +344,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchOutput).Name}"); - toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -378,9 +357,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningItem).Name}"); - reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -393,9 +370,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompactionBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompactionBody).Name}"); - compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -408,9 +383,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenToolCall).Name}"); - imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -423,9 +396,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall).Name}"); - codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -438,9 +409,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCall).Name}"); - localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -453,9 +422,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput).Name}"); - localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -468,9 +435,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCall).Name}"); - shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -483,9 +448,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutput).Name}"); - shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -498,9 +461,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCall).Name}"); - applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -513,9 +474,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput).Name}"); - applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -528,9 +487,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPListTools).Name}"); - mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -543,9 +500,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalRequest).Name}"); - mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -558,9 +513,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource).Name}"); - mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -573,9 +526,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPToolCall).Name}"); - mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -588,9 +539,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallResource).Name}"); - responseCustomToolCallItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseCustomToolCallItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -603,9 +552,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutputResource).Name}"); - responseCustomToolCallOutputItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseCustomToolCallOutputItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -620,9 +567,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputMessageResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputMessageResource).Name}"); - inputMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -633,9 +578,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputMessage).Name}"); - message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -646,9 +589,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchToolCall).Name}"); - fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -659,9 +600,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCall).Name}"); - computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -672,9 +611,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource).Name}"); - computerToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + computerToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -685,9 +622,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchToolCall).Name}"); - webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -698,9 +633,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallResource).Name}"); - functionToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -711,9 +644,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource).Name}"); - functionToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -724,9 +655,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchCall).Name}"); - toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -737,9 +666,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchOutput).Name}"); - toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -750,9 +677,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningItem).Name}"); - reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -763,9 +688,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompactionBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompactionBody).Name}"); - compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -776,9 +699,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenToolCall).Name}"); - imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -789,9 +710,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall).Name}"); - codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -802,9 +721,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCall).Name}"); - localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -815,9 +732,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput).Name}"); - localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -828,9 +743,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCall).Name}"); - shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -841,9 +754,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutput).Name}"); - shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -854,9 +765,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCall).Name}"); - applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -867,9 +776,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput).Name}"); - applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -880,9 +787,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPListTools).Name}"); - mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -893,9 +798,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalRequest).Name}"); - mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -906,9 +809,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource).Name}"); - mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -919,9 +820,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPToolCall).Name}"); - mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -932,9 +831,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallResource).Name}"); - responseCustomToolCallItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseCustomToolCallItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -945,9 +842,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutputResource).Name}"); - responseCustomToolCallOutputItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseCustomToolCallOutputItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1020,164 +915,111 @@ public override void Write( global::tryAGI.OpenAI.ItemResource value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsInputMessage) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputMessageResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputMessageResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputMessage!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputMessage, typeof(global::tryAGI.OpenAI.InputMessageResource), options); } else if (value.IsMessage) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputMessage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message, typeof(global::tryAGI.OpenAI.OutputMessage), options); } else if (value.IsFileSearchCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchCall, typeof(global::tryAGI.OpenAI.FileSearchToolCall), options); } else if (value.IsComputerCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerCall, typeof(global::tryAGI.OpenAI.ComputerToolCall), options); } else if (value.IsComputerToolCallOutput) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerToolCallOutput!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerToolCallOutput, typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource), options); } else if (value.IsWebSearchCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearchCall, typeof(global::tryAGI.OpenAI.WebSearchToolCall), options); } else if (value.IsFunctionToolCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCall!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCall, typeof(global::tryAGI.OpenAI.FunctionToolCallResource), options); } else if (value.IsFunctionToolCallOutput) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCallOutput!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCallOutput, typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource), options); } else if (value.IsToolSearchCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchCall, typeof(global::tryAGI.OpenAI.ToolSearchCall), options); } else if (value.IsToolSearchOutput) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchOutput, typeof(global::tryAGI.OpenAI.ToolSearchOutput), options); } else if (value.IsReasoning) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningItem).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Reasoning!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Reasoning, typeof(global::tryAGI.OpenAI.ReasoningItem), options); } else if (value.IsCompaction) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompactionBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompactionBody).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Compaction!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Compaction, typeof(global::tryAGI.OpenAI.CompactionBody), options); } else if (value.IsImageGenerationCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationCall, typeof(global::tryAGI.OpenAI.ImageGenToolCall), options); } else if (value.IsCodeInterpreterCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreterCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreterCall, typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options); } else if (value.IsLocalShellCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCall, typeof(global::tryAGI.OpenAI.LocalShellToolCall), options); } else if (value.IsLocalShellCallOutput) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCallOutput, typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options); } else if (value.IsShellCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCall, typeof(global::tryAGI.OpenAI.FunctionShellCall), options); } else if (value.IsShellCallOutput) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCallOutput, typeof(global::tryAGI.OpenAI.FunctionShellCallOutput), options); } else if (value.IsApplyPatchCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCall, typeof(global::tryAGI.OpenAI.ApplyPatchToolCall), options); } else if (value.IsApplyPatchCallOutput) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallOutput, typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput), options); } else if (value.IsMcpListTools) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPListTools).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListTools!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListTools, typeof(global::tryAGI.OpenAI.MCPListTools), options); } else if (value.IsMcpApprovalRequest) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalRequest).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalRequest!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalRequest, typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options); } else if (value.IsMcpApprovalResponse) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalResponse!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalResponse, typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource), options); } else if (value.IsMcpCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpCall, typeof(global::tryAGI.OpenAI.MCPToolCall), options); } else if (value.IsResponseCustomToolCallItem) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCustomToolCallItem!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCustomToolCallItem, typeof(global::tryAGI.OpenAI.CustomToolCallResource), options); } else if (value.IsResponseCustomToolCallOutputItem) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutputResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCustomToolCallOutputItem!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCustomToolCallOutputItem, typeof(global::tryAGI.OpenAI.CustomToolCallOutputResource), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.MessageStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.MessageStreamEvent.g.cs index f6266cd7..746366a9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.MessageStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.MessageStreamEvent.g.cs @@ -12,8 +12,7 @@ public class MessageStreamEventJsonConverter : global::System.Text.Json.Serializ global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -60,9 +59,7 @@ public class MessageStreamEventJsonConverter : global::System.Text.Json.Serializ { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEventVariant1).Name}"); - messageStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + messageStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -75,9 +72,7 @@ public class MessageStreamEventJsonConverter : global::System.Text.Json.Serializ { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEventVariant2).Name}"); - messageStreamEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + messageStreamEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -90,9 +85,7 @@ public class MessageStreamEventJsonConverter : global::System.Text.Json.Serializ { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEventVariant3).Name}"); - messageStreamEventVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + messageStreamEventVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -105,9 +98,7 @@ public class MessageStreamEventJsonConverter : global::System.Text.Json.Serializ { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEventVariant4).Name}"); - messageStreamEventVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + messageStreamEventVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -120,9 +111,7 @@ public class MessageStreamEventJsonConverter : global::System.Text.Json.Serializ { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEventVariant5).Name}"); - messageStreamEventVariant5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + messageStreamEventVariant5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -137,9 +126,7 @@ public class MessageStreamEventJsonConverter : global::System.Text.Json.Serializ { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEventVariant1).Name}"); - messageStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + messageStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -150,9 +137,7 @@ public class MessageStreamEventJsonConverter : global::System.Text.Json.Serializ try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEventVariant2).Name}"); - messageStreamEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + messageStreamEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -163,9 +148,7 @@ public class MessageStreamEventJsonConverter : global::System.Text.Json.Serializ try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEventVariant3).Name}"); - messageStreamEventVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + messageStreamEventVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -176,9 +159,7 @@ public class MessageStreamEventJsonConverter : global::System.Text.Json.Serializ try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEventVariant4).Name}"); - messageStreamEventVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + messageStreamEventVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -189,9 +170,7 @@ public class MessageStreamEventJsonConverter : global::System.Text.Json.Serializ try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEventVariant5).Name}"); - messageStreamEventVariant5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + messageStreamEventVariant5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -222,38 +201,27 @@ public override void Write( global::tryAGI.OpenAI.MessageStreamEvent value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsMessageStreamEventVariant1) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEventVariant1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageStreamEventVariant1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageStreamEventVariant1, typeof(global::tryAGI.OpenAI.MessageStreamEventVariant1), options); } else if (value.IsMessageStreamEventVariant2) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEventVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageStreamEventVariant2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageStreamEventVariant2, typeof(global::tryAGI.OpenAI.MessageStreamEventVariant2), options); } else if (value.IsMessageStreamEventVariant3) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEventVariant3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageStreamEventVariant3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageStreamEventVariant3, typeof(global::tryAGI.OpenAI.MessageStreamEventVariant3), options); } else if (value.IsMessageStreamEventVariant4) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEventVariant4).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageStreamEventVariant4!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageStreamEventVariant4, typeof(global::tryAGI.OpenAI.MessageStreamEventVariant4), options); } else if (value.IsMessageStreamEventVariant5) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEventVariant5).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageStreamEventVariant5!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageStreamEventVariant5, typeof(global::tryAGI.OpenAI.MessageStreamEventVariant5), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIds.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIds.g.cs index 21cfa9b0..12d6b518 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIds.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIds.g.cs @@ -12,8 +12,7 @@ public class ModelIdsJsonConverter : global::System.Text.Json.Serialization.Json global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); @@ -28,27 +27,7 @@ public class ModelIdsJsonConverter : global::System.Text.Json.Serialization.Json } var __score0 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsShared), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score0++; - } - } - } var __score1 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsResponses), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score1++; - } - } - } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -63,9 +42,7 @@ public class ModelIdsJsonConverter : global::System.Text.Json.Serialization.Json try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsShared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsShared).Name}"); - shared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + shared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -80,9 +57,7 @@ public class ModelIdsJsonConverter : global::System.Text.Json.Serialization.Json try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsResponses), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsResponses).Name}"); - responses = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responses = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -98,9 +73,7 @@ public class ModelIdsJsonConverter : global::System.Text.Json.Serialization.Json try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsShared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsShared).Name}"); - shared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + shared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -112,9 +85,7 @@ public class ModelIdsJsonConverter : global::System.Text.Json.Serialization.Json try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsResponses), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsResponses).Name}"); - responses = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responses = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -139,20 +110,15 @@ public override void Write( global::tryAGI.OpenAI.ModelIds value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsShared) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsShared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsShared).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Shared!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Shared, typeof(global::tryAGI.OpenAI.ModelIdsShared), options); } else if (value.IsResponses) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsResponses), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsResponses).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Responses!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Responses, typeof(global::tryAGI.OpenAI.ModelIdsResponses), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsCompaction.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsCompaction.g.cs index 1f401254..74cd755a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsCompaction.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsCompaction.g.cs @@ -12,8 +12,7 @@ public class ModelIdsCompactionJsonConverter : global::System.Text.Json.Serializ global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); @@ -28,38 +27,8 @@ public class ModelIdsCompactionJsonConverter : global::System.Text.Json.Serializ } var __score0 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsResponses), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score0++; - } - } - } var __score1 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score1++; - } - } - } var __score2 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(object), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score2++; - } - } - } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -76,9 +45,7 @@ public class ModelIdsCompactionJsonConverter : global::System.Text.Json.Serializ try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsResponses), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsResponses).Name}"); - responses = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responses = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -93,9 +60,7 @@ public class ModelIdsCompactionJsonConverter : global::System.Text.Json.Serializ try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - modelIdsCompactionVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + modelIdsCompactionVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -110,9 +75,7 @@ public class ModelIdsCompactionJsonConverter : global::System.Text.Json.Serializ try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - modelIdsCompactionVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + modelIdsCompactionVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -128,9 +91,7 @@ public class ModelIdsCompactionJsonConverter : global::System.Text.Json.Serializ try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsResponses), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsResponses).Name}"); - responses = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responses = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -142,9 +103,7 @@ public class ModelIdsCompactionJsonConverter : global::System.Text.Json.Serializ try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - modelIdsCompactionVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + modelIdsCompactionVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -156,9 +115,7 @@ public class ModelIdsCompactionJsonConverter : global::System.Text.Json.Serializ try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - modelIdsCompactionVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + modelIdsCompactionVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -185,26 +142,19 @@ public override void Write( global::tryAGI.OpenAI.ModelIdsCompaction value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsResponses) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsResponses), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsResponses).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Responses!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Responses, typeof(global::tryAGI.OpenAI.ModelIdsResponses), options); } else if (value.IsModelIdsCompactionVariant2) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModelIdsCompactionVariant2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModelIdsCompactionVariant2, typeof(string), options); } else if (value.IsModelIdsCompactionVariant3) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModelIdsCompactionVariant3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModelIdsCompactionVariant3, typeof(object), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsResponses.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsResponses.g.cs index 29c77427..e2e46447 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsResponses.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsResponses.g.cs @@ -12,8 +12,7 @@ public class ModelIdsResponsesJsonConverter : global::System.Text.Json.Serializa global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); @@ -28,27 +27,7 @@ public class ModelIdsResponsesJsonConverter : global::System.Text.Json.Serializa } var __score0 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsShared), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score0++; - } - } - } var __score1 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsResponsesEnum), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score1++; - } - } - } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -63,9 +42,7 @@ public class ModelIdsResponsesJsonConverter : global::System.Text.Json.Serializa try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsShared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsShared).Name}"); - shared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + shared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -80,9 +57,7 @@ public class ModelIdsResponsesJsonConverter : global::System.Text.Json.Serializa try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsResponsesEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsResponsesEnum).Name}"); - responsesOnlyModel = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responsesOnlyModel = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -98,9 +73,7 @@ public class ModelIdsResponsesJsonConverter : global::System.Text.Json.Serializa try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsShared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsShared).Name}"); - shared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + shared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -112,9 +85,7 @@ public class ModelIdsResponsesJsonConverter : global::System.Text.Json.Serializa try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsResponsesEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsResponsesEnum).Name}"); - responsesOnlyModel = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responsesOnlyModel = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -139,20 +110,15 @@ public override void Write( global::tryAGI.OpenAI.ModelIdsResponses value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsShared) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsShared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsShared).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Shared!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Shared, typeof(global::tryAGI.OpenAI.ModelIdsShared), options); } else if (value.IsResponsesOnlyModel) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsResponsesEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsResponsesEnum).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponsesOnlyModel!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponsesOnlyModel, typeof(global::tryAGI.OpenAI.ModelIdsResponsesEnum), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsShared.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsShared.g.cs index 2e30b412..b34a5ff8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsShared.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsShared.g.cs @@ -12,8 +12,7 @@ public class ModelIdsSharedJsonConverter : global::System.Text.Json.Serializatio global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); @@ -28,27 +27,7 @@ public class ModelIdsSharedJsonConverter : global::System.Text.Json.Serializatio } var __score0 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score0++; - } - } - } var __score1 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsSharedEnum), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score1++; - } - } - } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -63,9 +42,7 @@ public class ModelIdsSharedJsonConverter : global::System.Text.Json.Serializatio try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - modelIdsSharedVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + modelIdsSharedVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -80,9 +57,7 @@ public class ModelIdsSharedJsonConverter : global::System.Text.Json.Serializatio try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsSharedEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsSharedEnum).Name}"); - @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -98,9 +73,7 @@ public class ModelIdsSharedJsonConverter : global::System.Text.Json.Serializatio try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - modelIdsSharedVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + modelIdsSharedVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -112,9 +85,7 @@ public class ModelIdsSharedJsonConverter : global::System.Text.Json.Serializatio try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsSharedEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsSharedEnum).Name}"); - @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -139,20 +110,15 @@ public override void Write( global::tryAGI.OpenAI.ModelIdsShared value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsModelIdsSharedVariant1) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModelIdsSharedVariant1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModelIdsSharedVariant1, typeof(string), options); } else if (value.IsEnum) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsSharedEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsSharedEnum).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum, typeof(global::tryAGI.OpenAI.ModelIdsSharedEnum), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy.g.cs index 1ba9ca7f..88fd5767 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy.g.cs @@ -12,8 +12,7 @@ public class NetworkPolicyJsonConverter : global::System.Text.Json.Serialization global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -45,9 +44,7 @@ public class NetworkPolicyJsonConverter : global::System.Text.Json.Serialization { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam).Name}"); - disabled = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + disabled = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -60,9 +57,7 @@ public class NetworkPolicyJsonConverter : global::System.Text.Json.Serialization { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam).Name}"); - allowlist = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + allowlist = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -77,9 +72,7 @@ public class NetworkPolicyJsonConverter : global::System.Text.Json.Serialization { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam).Name}"); - disabled = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + disabled = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -90,9 +83,7 @@ public class NetworkPolicyJsonConverter : global::System.Text.Json.Serialization try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam).Name}"); - allowlist = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + allowlist = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -117,20 +108,15 @@ public override void Write( global::tryAGI.OpenAI.NetworkPolicy value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsDisabled) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Disabled!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Disabled, typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam), options); } else if (value.IsAllowlist) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Allowlist!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Allowlist, typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy2.g.cs index 99deecbe..256a9451 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy2.g.cs @@ -12,8 +12,7 @@ public class NetworkPolicy2JsonConverter : global::System.Text.Json.Serializatio global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -45,9 +44,7 @@ public class NetworkPolicy2JsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam).Name}"); - disabled = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + disabled = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -60,9 +57,7 @@ public class NetworkPolicy2JsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam).Name}"); - allowlist = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + allowlist = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -77,9 +72,7 @@ public class NetworkPolicy2JsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam).Name}"); - disabled = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + disabled = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -90,9 +83,7 @@ public class NetworkPolicy2JsonConverter : global::System.Text.Json.Serializatio try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam).Name}"); - allowlist = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + allowlist = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -117,20 +108,15 @@ public override void Write( global::tryAGI.OpenAI.NetworkPolicy2 value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsDisabled) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Disabled!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Disabled, typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam), options); } else if (value.IsAllowlist) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Allowlist!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Allowlist, typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy3.g.cs index 1b6282bf..81ab97fc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy3.g.cs @@ -12,8 +12,7 @@ public class NetworkPolicy3JsonConverter : global::System.Text.Json.Serializatio global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -45,9 +44,7 @@ public class NetworkPolicy3JsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam).Name}"); - disabled = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + disabled = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -60,9 +57,7 @@ public class NetworkPolicy3JsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam).Name}"); - allowlist = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + allowlist = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -77,9 +72,7 @@ public class NetworkPolicy3JsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam).Name}"); - disabled = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + disabled = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -90,9 +83,7 @@ public class NetworkPolicy3JsonConverter : global::System.Text.Json.Serializatio try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam).Name}"); - allowlist = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + allowlist = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -117,20 +108,15 @@ public override void Write( global::tryAGI.OpenAI.NetworkPolicy3 value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsDisabled) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Disabled!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Disabled, typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam), options); } else if (value.IsAllowlist) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Allowlist!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Allowlist, typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf2.g.cs index 877e4810..b26989c7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf2.g.cs @@ -11,8 +11,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); @@ -27,27 +26,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization } var __score0 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T1), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score0++; - } - } - } var __score1 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T2), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score1++; - } - } - } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -62,9 +41,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -79,9 +56,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -97,9 +72,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -111,9 +84,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -138,20 +109,15 @@ public override void Write( global::tryAGI.OpenAI.OneOf value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsValue1) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeof(T1), options); } else if (value.IsValue2) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeof(T2), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf3.g.cs index a6d62768..118cc2a0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf3.g.cs @@ -11,8 +11,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); @@ -27,38 +26,8 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa } var __score0 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T1), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score0++; - } - } - } var __score1 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T2), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score1++; - } - } - } var __score2 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T3), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score2++; - } - } - } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -75,9 +44,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -92,9 +59,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -109,9 +74,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -127,9 +90,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -141,9 +102,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -155,9 +114,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -184,26 +141,19 @@ public override void Write( global::tryAGI.OpenAI.OneOf value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsValue1) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeof(T1), options); } else if (value.IsValue2) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeof(T2), options); } else if (value.IsValue3) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3, typeof(T3), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf4.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf4.g.cs index adf47b45..3836087e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf4.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf4.g.cs @@ -11,8 +11,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); @@ -27,49 +26,9 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria } var __score0 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T1), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score0++; - } - } - } var __score1 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T2), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score1++; - } - } - } var __score2 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T3), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score2++; - } - } - } var __score3 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T4), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score3++; - } - } - } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -88,9 +47,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -105,9 +62,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -122,9 +77,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -139,9 +92,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -157,9 +108,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -171,9 +120,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -185,9 +132,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -199,9 +144,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -230,32 +173,23 @@ public override void Write( global::tryAGI.OpenAI.OneOf value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsValue1) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeof(T1), options); } else if (value.IsValue2) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeof(T2), options); } else if (value.IsValue3) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3, typeof(T3), options); } else if (value.IsValue4) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4, typeof(T4), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf5.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf5.g.cs index 296892e0..8775739f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf5.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf5.g.cs @@ -11,8 +11,7 @@ public class OneOfJsonConverter : global::System.Text.Json.S global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); @@ -27,60 +26,10 @@ public class OneOfJsonConverter : global::System.Text.Json.S } var __score0 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T1), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score0++; - } - } - } var __score1 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T2), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score1++; - } - } - } var __score2 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T3), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score2++; - } - } - } var __score3 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T4), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score3++; - } - } - } var __score4 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T5), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score4++; - } - } - } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -101,9 +50,7 @@ public class OneOfJsonConverter : global::System.Text.Json.S try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -118,9 +65,7 @@ public class OneOfJsonConverter : global::System.Text.Json.S try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -135,9 +80,7 @@ public class OneOfJsonConverter : global::System.Text.Json.S try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -152,9 +95,7 @@ public class OneOfJsonConverter : global::System.Text.Json.S try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -169,9 +110,7 @@ public class OneOfJsonConverter : global::System.Text.Json.S try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); - value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -187,9 +126,7 @@ public class OneOfJsonConverter : global::System.Text.Json.S try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -201,9 +138,7 @@ public class OneOfJsonConverter : global::System.Text.Json.S try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -215,9 +150,7 @@ public class OneOfJsonConverter : global::System.Text.Json.S try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -229,9 +162,7 @@ public class OneOfJsonConverter : global::System.Text.Json.S try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -243,9 +174,7 @@ public class OneOfJsonConverter : global::System.Text.Json.S try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); - value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -276,38 +205,27 @@ public override void Write( global::tryAGI.OpenAI.OneOf value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsValue1) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeof(T1), options); } else if (value.IsValue2) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeof(T2), options); } else if (value.IsValue3) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3, typeof(T3), options); } else if (value.IsValue4) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4, typeof(T4), options); } else if (value.IsValue5) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value5!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value5, typeof(T5), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf9.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf9.g.cs index 93431303..410b6dd0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf9.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf9.g.cs @@ -11,8 +11,7 @@ public class OneOfJsonConverter : global::Sy global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); @@ -27,104 +26,14 @@ public class OneOfJsonConverter : global::Sy } var __score0 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T1), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score0++; - } - } - } var __score1 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T2), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score1++; - } - } - } var __score2 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T3), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score2++; - } - } - } var __score3 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T4), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score3++; - } - } - } var __score4 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T5), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score4++; - } - } - } var __score5 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T6), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score5++; - } - } - } var __score6 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T7), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score6++; - } - } - } var __score7 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T8), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score7++; - } - } - } var __score8 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T9), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score8++; - } - } - } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -153,9 +62,7 @@ public class OneOfJsonConverter : global::Sy try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -170,9 +77,7 @@ public class OneOfJsonConverter : global::Sy try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -187,9 +92,7 @@ public class OneOfJsonConverter : global::Sy try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -204,9 +107,7 @@ public class OneOfJsonConverter : global::Sy try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -221,9 +122,7 @@ public class OneOfJsonConverter : global::Sy try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); - value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -238,9 +137,7 @@ public class OneOfJsonConverter : global::Sy try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T6).Name}"); - value6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -255,9 +152,7 @@ public class OneOfJsonConverter : global::Sy try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T7).Name}"); - value7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -272,9 +167,7 @@ public class OneOfJsonConverter : global::Sy try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T8).Name}"); - value8 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value8 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -289,9 +182,7 @@ public class OneOfJsonConverter : global::Sy try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T9).Name}"); - value9 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value9 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -307,9 +198,7 @@ public class OneOfJsonConverter : global::Sy try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -321,9 +210,7 @@ public class OneOfJsonConverter : global::Sy try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -335,9 +222,7 @@ public class OneOfJsonConverter : global::Sy try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -349,9 +234,7 @@ public class OneOfJsonConverter : global::Sy try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -363,9 +246,7 @@ public class OneOfJsonConverter : global::Sy try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); - value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -377,9 +258,7 @@ public class OneOfJsonConverter : global::Sy try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T6).Name}"); - value6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -391,9 +270,7 @@ public class OneOfJsonConverter : global::Sy try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T7).Name}"); - value7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -405,9 +282,7 @@ public class OneOfJsonConverter : global::Sy try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T8).Name}"); - value8 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value8 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -419,9 +294,7 @@ public class OneOfJsonConverter : global::Sy try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T9).Name}"); - value9 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value9 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -460,62 +333,43 @@ public override void Write( global::tryAGI.OpenAI.OneOf value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsValue1) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeof(T1), options); } else if (value.IsValue2) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeof(T2), options); } else if (value.IsValue3) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3, typeof(T3), options); } else if (value.IsValue4) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4, typeof(T4), options); } else if (value.IsValue5) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value5!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value5, typeof(T5), options); } else if (value.IsValue6) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T6).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value6!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value6, typeof(T6), options); } else if (value.IsValue7) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T7).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value7!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value7, typeof(T7), options); } else if (value.IsValue8) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T8).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value8!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value8, typeof(T8), options); } else if (value.IsValue9) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T9).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value9!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value9, typeof(T9), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Operation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Operation.g.cs index 4427c578..457c63b5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Operation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Operation.g.cs @@ -12,8 +12,7 @@ public class OperationJsonConverter : global::System.Text.Json.Serialization.Jso global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -52,9 +51,7 @@ public class OperationJsonConverter : global::System.Text.Json.Serialization.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperation).Name}"); - createFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + createFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -67,9 +64,7 @@ public class OperationJsonConverter : global::System.Text.Json.Serialization.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperation).Name}"); - deleteFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + deleteFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -82,9 +77,7 @@ public class OperationJsonConverter : global::System.Text.Json.Serialization.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation).Name}"); - updateFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + updateFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -99,9 +92,7 @@ public class OperationJsonConverter : global::System.Text.Json.Serialization.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperation).Name}"); - createFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + createFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -112,9 +103,7 @@ public class OperationJsonConverter : global::System.Text.Json.Serialization.Jso try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperation).Name}"); - deleteFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + deleteFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -125,9 +114,7 @@ public class OperationJsonConverter : global::System.Text.Json.Serialization.Jso try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation).Name}"); - updateFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + updateFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -154,26 +141,19 @@ public override void Write( global::tryAGI.OpenAI.Operation value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsCreateFile) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperation).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateFile!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateFile, typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperation), options); } else if (value.IsDeleteFile) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperation).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.DeleteFile!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.DeleteFile, typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperation), options); } else if (value.IsUpdateFile) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.UpdateFile!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.UpdateFile, typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Outcome.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Outcome.g.cs index 80b59eff..f029cace 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Outcome.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Outcome.g.cs @@ -12,8 +12,7 @@ public class OutcomeJsonConverter : global::System.Text.Json.Serialization.JsonC global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -44,9 +43,7 @@ public class OutcomeJsonConverter : global::System.Text.Json.Serialization.JsonC { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcome), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcome).Name}"); - timeout = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + timeout = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -59,9 +56,7 @@ public class OutcomeJsonConverter : global::System.Text.Json.Serialization.JsonC { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome).Name}"); - exit = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + exit = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -76,9 +71,7 @@ public class OutcomeJsonConverter : global::System.Text.Json.Serialization.JsonC { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcome), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcome).Name}"); - timeout = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + timeout = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -89,9 +82,7 @@ public class OutcomeJsonConverter : global::System.Text.Json.Serialization.JsonC try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome).Name}"); - exit = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + exit = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -116,20 +107,15 @@ public override void Write( global::tryAGI.OpenAI.Outcome value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsTimeout) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcome), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcome).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Timeout!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Timeout, typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcome), options); } else if (value.IsExit) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Exit!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Exit, typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputContent.g.cs index e75988a0..55eba725 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputContent.g.cs @@ -12,8 +12,7 @@ public class OutputContentJsonConverter : global::System.Text.Json.Serialization global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -52,9 +51,7 @@ public class OutputContentJsonConverter : global::System.Text.Json.Serialization { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputTextContent).Name}"); - outputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + outputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -67,9 +64,7 @@ public class OutputContentJsonConverter : global::System.Text.Json.Serialization { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RefusalContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RefusalContent).Name}"); - refusal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + refusal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -82,9 +77,7 @@ public class OutputContentJsonConverter : global::System.Text.Json.Serialization { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningTextContent).Name}"); - reasoningText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + reasoningText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -99,9 +92,7 @@ public class OutputContentJsonConverter : global::System.Text.Json.Serialization { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputTextContent).Name}"); - outputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + outputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -112,9 +103,7 @@ public class OutputContentJsonConverter : global::System.Text.Json.Serialization try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RefusalContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RefusalContent).Name}"); - refusal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + refusal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -125,9 +114,7 @@ public class OutputContentJsonConverter : global::System.Text.Json.Serialization try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningTextContent).Name}"); - reasoningText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + reasoningText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -154,26 +141,19 @@ public override void Write( global::tryAGI.OpenAI.OutputContent value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsOutputText) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputTextContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputText!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputText, typeof(global::tryAGI.OpenAI.OutputTextContent), options); } else if (value.IsRefusal) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RefusalContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RefusalContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Refusal!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Refusal, typeof(global::tryAGI.OpenAI.RefusalContent), options); } else if (value.IsReasoningText) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningTextContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ReasoningText!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ReasoningText, typeof(global::tryAGI.OpenAI.ReasoningTextContent), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputItem.g.cs index 374368dd..ccddd85b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputItem.g.cs @@ -12,8 +12,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -238,9 +237,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputMessage).Name}"); - message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -253,9 +250,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchToolCall).Name}"); - fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -268,9 +263,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCall).Name}"); - functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -283,9 +276,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource).Name}"); - functionToolCallResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionToolCallResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -298,9 +289,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchToolCall).Name}"); - webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -313,9 +302,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCall).Name}"); - computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -328,9 +315,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource).Name}"); - computerToolCallResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + computerToolCallResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -343,9 +328,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningItem).Name}"); - reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -358,9 +341,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchCall).Name}"); - toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -373,9 +354,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchOutput).Name}"); - toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -388,9 +367,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompactionBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompactionBody).Name}"); - compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -403,9 +380,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenToolCall).Name}"); - imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -418,9 +393,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall).Name}"); - codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -433,9 +406,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCall).Name}"); - localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -448,9 +419,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput).Name}"); - localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -463,9 +432,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCall).Name}"); - shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -478,9 +445,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutput).Name}"); - shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -493,9 +458,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCall).Name}"); - applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -508,9 +471,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput).Name}"); - applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -523,9 +484,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPToolCall).Name}"); - mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -538,9 +497,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPListTools).Name}"); - mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -553,9 +510,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalRequest).Name}"); - mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -568,9 +523,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource).Name}"); - mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -583,9 +536,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCall).Name}"); - customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -598,9 +549,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutputResource).Name}"); - responseCustomToolCallOutputItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseCustomToolCallOutputItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -615,9 +564,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputMessage).Name}"); - message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -628,9 +575,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchToolCall).Name}"); - fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -641,9 +586,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCall).Name}"); - functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -654,9 +597,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource).Name}"); - functionToolCallResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionToolCallResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -667,9 +608,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchToolCall).Name}"); - webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -680,9 +619,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCall).Name}"); - computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -693,9 +630,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource).Name}"); - computerToolCallResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + computerToolCallResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -706,9 +641,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningItem).Name}"); - reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -719,9 +652,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchCall).Name}"); - toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -732,9 +663,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchOutput).Name}"); - toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -745,9 +674,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompactionBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompactionBody).Name}"); - compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -758,9 +685,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenToolCall).Name}"); - imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -771,9 +696,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall).Name}"); - codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -784,9 +707,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCall).Name}"); - localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -797,9 +718,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput).Name}"); - localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -810,9 +729,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCall).Name}"); - shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -823,9 +740,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutput).Name}"); - shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -836,9 +751,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCall).Name}"); - applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -849,9 +762,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput).Name}"); - applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -862,9 +773,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPToolCall).Name}"); - mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -875,9 +784,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPListTools).Name}"); - mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -888,9 +795,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalRequest).Name}"); - mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -901,9 +806,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource).Name}"); - mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -914,9 +817,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCall).Name}"); - customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -927,9 +828,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutputResource).Name}"); - responseCustomToolCallOutputItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseCustomToolCallOutputItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1000,158 +899,107 @@ public override void Write( global::tryAGI.OpenAI.OutputItem value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsMessage) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputMessage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message, typeof(global::tryAGI.OpenAI.OutputMessage), options); } else if (value.IsFileSearchCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchCall, typeof(global::tryAGI.OpenAI.FileSearchToolCall), options); } else if (value.IsFunctionCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCall, typeof(global::tryAGI.OpenAI.FunctionToolCall), options); } else if (value.IsFunctionToolCallResource) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCallResource!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCallResource, typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource), options); } else if (value.IsWebSearchCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearchCall, typeof(global::tryAGI.OpenAI.WebSearchToolCall), options); } else if (value.IsComputerCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerCall, typeof(global::tryAGI.OpenAI.ComputerToolCall), options); } else if (value.IsComputerToolCallResource) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerToolCallResource!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerToolCallResource, typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource), options); } else if (value.IsReasoning) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningItem).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Reasoning!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Reasoning, typeof(global::tryAGI.OpenAI.ReasoningItem), options); } else if (value.IsToolSearchCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchCall, typeof(global::tryAGI.OpenAI.ToolSearchCall), options); } else if (value.IsToolSearchOutput) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchOutput, typeof(global::tryAGI.OpenAI.ToolSearchOutput), options); } else if (value.IsCompaction) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompactionBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompactionBody).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Compaction!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Compaction, typeof(global::tryAGI.OpenAI.CompactionBody), options); } else if (value.IsImageGenerationCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationCall, typeof(global::tryAGI.OpenAI.ImageGenToolCall), options); } else if (value.IsCodeInterpreterCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreterCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreterCall, typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options); } else if (value.IsLocalShellCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCall, typeof(global::tryAGI.OpenAI.LocalShellToolCall), options); } else if (value.IsLocalShellCallOutput) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCallOutput, typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options); } else if (value.IsShellCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCall, typeof(global::tryAGI.OpenAI.FunctionShellCall), options); } else if (value.IsShellCallOutput) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCallOutput, typeof(global::tryAGI.OpenAI.FunctionShellCallOutput), options); } else if (value.IsApplyPatchCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCall, typeof(global::tryAGI.OpenAI.ApplyPatchToolCall), options); } else if (value.IsApplyPatchCallOutput) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallOutput, typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput), options); } else if (value.IsMcpCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpCall, typeof(global::tryAGI.OpenAI.MCPToolCall), options); } else if (value.IsMcpListTools) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPListTools).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListTools!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListTools, typeof(global::tryAGI.OpenAI.MCPListTools), options); } else if (value.IsMcpApprovalRequest) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalRequest).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalRequest!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalRequest, typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options); } else if (value.IsMcpApprovalResponse) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalResponse!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalResponse, typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource), options); } else if (value.IsCustomToolCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCall, typeof(global::tryAGI.OpenAI.CustomToolCall), options); } else if (value.IsResponseCustomToolCallOutputItem) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutputResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCustomToolCallOutputItem!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCustomToolCallOutputItem, typeof(global::tryAGI.OpenAI.CustomToolCallOutputResource), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputMessageContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputMessageContent.g.cs index d0607b0a..f180f2c7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputMessageContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputMessageContent.g.cs @@ -12,8 +12,7 @@ public class OutputMessageContentJsonConverter : global::System.Text.Json.Serial global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -47,9 +46,7 @@ public class OutputMessageContentJsonConverter : global::System.Text.Json.Serial { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputTextContent).Name}"); - outputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + outputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -62,9 +59,7 @@ public class OutputMessageContentJsonConverter : global::System.Text.Json.Serial { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RefusalContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RefusalContent).Name}"); - refusal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + refusal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -79,9 +74,7 @@ public class OutputMessageContentJsonConverter : global::System.Text.Json.Serial { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputTextContent).Name}"); - outputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + outputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -92,9 +85,7 @@ public class OutputMessageContentJsonConverter : global::System.Text.Json.Serial try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RefusalContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RefusalContent).Name}"); - refusal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + refusal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -119,20 +110,15 @@ public override void Write( global::tryAGI.OpenAI.OutputMessageContent value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsOutputText) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputTextContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputText!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputText, typeof(global::tryAGI.OpenAI.OutputTextContent), options); } else if (value.IsRefusal) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RefusalContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RefusalContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Refusal!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Refusal, typeof(global::tryAGI.OpenAI.RefusalContent), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputVariant2Item.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputVariant2Item.g.cs index c1c41e50..38a467c7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputVariant2Item.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputVariant2Item.g.cs @@ -12,8 +12,7 @@ public class OutputVariant2ItemJsonConverter : global::System.Text.Json.Serializ global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -55,9 +54,7 @@ public class OutputVariant2ItemJsonConverter : global::System.Text.Json.Serializ { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputTextContentParam).Name}"); - inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -70,9 +67,7 @@ public class OutputVariant2ItemJsonConverter : global::System.Text.Json.Serializ { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputImageContentParamAutoParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputImageContentParamAutoParam).Name}"); - inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -85,9 +80,7 @@ public class OutputVariant2ItemJsonConverter : global::System.Text.Json.Serializ { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputFileContentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputFileContentParam).Name}"); - inputFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -102,9 +95,7 @@ public class OutputVariant2ItemJsonConverter : global::System.Text.Json.Serializ { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputTextContentParam).Name}"); - inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -115,9 +106,7 @@ public class OutputVariant2ItemJsonConverter : global::System.Text.Json.Serializ try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputImageContentParamAutoParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputImageContentParamAutoParam).Name}"); - inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -128,9 +117,7 @@ public class OutputVariant2ItemJsonConverter : global::System.Text.Json.Serializ try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputFileContentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputFileContentParam).Name}"); - inputFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -157,26 +144,19 @@ public override void Write( global::tryAGI.OpenAI.OutputVariant2Item value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsInputText) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputTextContentParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputText!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputText, typeof(global::tryAGI.OpenAI.InputTextContentParam), options); } else if (value.IsInputImage) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputImageContentParamAutoParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputImageContentParamAutoParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputImage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputImage, typeof(global::tryAGI.OpenAI.InputImageContentParamAutoParam), options); } else if (value.IsInputFile) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputFileContentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputFileContentParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputFile!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputFile, typeof(global::tryAGI.OpenAI.InputFileContentParam), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputsVariant1Item.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputsVariant1Item.g.cs index 8a09a3a8..aad93b0d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputsVariant1Item.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputsVariant1Item.g.cs @@ -12,8 +12,7 @@ public class OutputsVariant1ItemJsonConverter : global::System.Text.Json.Seriali global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -45,9 +44,7 @@ public class OutputsVariant1ItemJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterOutputLogs), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterOutputLogs).Name}"); - logs = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + logs = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -60,9 +57,7 @@ public class OutputsVariant1ItemJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterOutputImage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterOutputImage).Name}"); - image = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + image = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -77,9 +72,7 @@ public class OutputsVariant1ItemJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterOutputLogs), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterOutputLogs).Name}"); - logs = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + logs = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -90,9 +83,7 @@ public class OutputsVariant1ItemJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterOutputImage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterOutputImage).Name}"); - image = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + image = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -117,20 +108,15 @@ public override void Write( global::tryAGI.OpenAI.OutputsVariant1Item value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsLogs) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterOutputLogs), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterOutputLogs).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Logs!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Logs, typeof(global::tryAGI.OpenAI.CodeInterpreterOutputLogs), options); } else if (value.IsImage) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterOutputImage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterOutputImage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Image!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Image, typeof(global::tryAGI.OpenAI.CodeInterpreterOutputImage), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeAudioFormats.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeAudioFormats.g.cs index 75ffdbdd..e6b8e122 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeAudioFormats.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeAudioFormats.g.cs @@ -12,8 +12,7 @@ public class RealtimeAudioFormatsJsonConverter : global::System.Text.Json.Serial global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -48,9 +47,7 @@ public class RealtimeAudioFormatsJsonConverter : global::System.Text.Json.Serial { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmAudioFormat), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmAudioFormat).Name}"); - pcmAudioFormat = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + pcmAudioFormat = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -63,9 +60,7 @@ public class RealtimeAudioFormatsJsonConverter : global::System.Text.Json.Serial { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmuAudioFormat), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmuAudioFormat).Name}"); - pcmuAudioFormat = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + pcmuAudioFormat = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -78,9 +73,7 @@ public class RealtimeAudioFormatsJsonConverter : global::System.Text.Json.Serial { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioFormat), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioFormat).Name}"); - pcmaAudioFormat = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + pcmaAudioFormat = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -95,9 +88,7 @@ public class RealtimeAudioFormatsJsonConverter : global::System.Text.Json.Serial { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmAudioFormat), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmAudioFormat).Name}"); - pcmAudioFormat = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + pcmAudioFormat = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -108,9 +99,7 @@ public class RealtimeAudioFormatsJsonConverter : global::System.Text.Json.Serial try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmuAudioFormat), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmuAudioFormat).Name}"); - pcmuAudioFormat = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + pcmuAudioFormat = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -121,9 +110,7 @@ public class RealtimeAudioFormatsJsonConverter : global::System.Text.Json.Serial try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioFormat), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioFormat).Name}"); - pcmaAudioFormat = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + pcmaAudioFormat = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -150,26 +137,19 @@ public override void Write( global::tryAGI.OpenAI.RealtimeAudioFormats value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsPcmAudioFormat) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmAudioFormat), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmAudioFormat).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PcmAudioFormat!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PcmAudioFormat, typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmAudioFormat), options); } else if (value.IsPcmuAudioFormat) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmuAudioFormat), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmuAudioFormat).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PcmuAudioFormat!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PcmuAudioFormat, typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmuAudioFormat), options); } else if (value.IsPcmaAudioFormat) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioFormat), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioFormat).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PcmaAudioFormat!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PcmaAudioFormat, typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioFormat), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeClientEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeClientEvent.g.cs index 611a0d0f..1c416f30 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeClientEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeClientEvent.g.cs @@ -12,8 +12,7 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -101,9 +100,7 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreate).Name}"); - conversationItemCreate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationItemCreate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -116,9 +113,7 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemDelete), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemDelete).Name}"); - conversationItemDelete = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationItemDelete = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -131,9 +126,7 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieve), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieve).Name}"); - conversationItemRetrieve = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationItemRetrieve = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -146,9 +139,7 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncate).Name}"); - conversationItemTruncate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationItemTruncate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -161,9 +152,7 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppend), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppend).Name}"); - inputAudioBufferAppend = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputAudioBufferAppend = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -176,9 +165,7 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClear), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClear).Name}"); - inputAudioBufferClear = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputAudioBufferClear = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -191,9 +178,7 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClear), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClear).Name}"); - outputAudioBufferClear = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + outputAudioBufferClear = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -206,9 +191,7 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommit), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommit).Name}"); - inputAudioBufferCommit = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputAudioBufferCommit = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -221,9 +204,7 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCancel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCancel).Name}"); - responseCancel = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseCancel = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -236,9 +217,7 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCreate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCreate).Name}"); - responseCreate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseCreate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -251,9 +230,7 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate).Name}"); - sessionUpdate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + sessionUpdate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -268,9 +245,7 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreate).Name}"); - conversationItemCreate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationItemCreate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -281,9 +256,7 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemDelete), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemDelete).Name}"); - conversationItemDelete = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationItemDelete = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -294,9 +267,7 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieve), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieve).Name}"); - conversationItemRetrieve = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationItemRetrieve = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -307,9 +278,7 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncate).Name}"); - conversationItemTruncate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationItemTruncate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -320,9 +289,7 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppend), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppend).Name}"); - inputAudioBufferAppend = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputAudioBufferAppend = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -333,9 +300,7 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClear), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClear).Name}"); - inputAudioBufferClear = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputAudioBufferClear = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -346,9 +311,7 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClear), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClear).Name}"); - outputAudioBufferClear = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + outputAudioBufferClear = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -359,9 +322,7 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommit), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommit).Name}"); - inputAudioBufferCommit = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputAudioBufferCommit = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -372,9 +333,7 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCancel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCancel).Name}"); - responseCancel = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseCancel = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -385,9 +344,7 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCreate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCreate).Name}"); - responseCreate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseCreate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -398,9 +355,7 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate).Name}"); - sessionUpdate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + sessionUpdate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -443,74 +398,51 @@ public override void Write( global::tryAGI.OpenAI.RealtimeClientEvent value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsConversationItemCreate) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreate).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemCreate!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemCreate, typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreate), options); } else if (value.IsConversationItemDelete) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemDelete), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemDelete).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemDelete!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemDelete, typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemDelete), options); } else if (value.IsConversationItemRetrieve) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieve), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieve).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemRetrieve!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemRetrieve, typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieve), options); } else if (value.IsConversationItemTruncate) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncate).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemTruncate!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemTruncate, typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncate), options); } else if (value.IsInputAudioBufferAppend) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppend), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppend).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferAppend!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferAppend, typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppend), options); } else if (value.IsInputAudioBufferClear) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClear), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClear).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferClear!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferClear, typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClear), options); } else if (value.IsOutputAudioBufferClear) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClear), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClear).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputAudioBufferClear!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputAudioBufferClear, typeof(global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClear), options); } else if (value.IsInputAudioBufferCommit) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommit), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommit).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferCommit!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferCommit, typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommit), options); } else if (value.IsResponseCancel) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCancel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCancel).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCancel!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCancel, typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCancel), options); } else if (value.IsResponseCreate) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCreate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCreate).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCreate!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCreate, typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCreate), options); } else if (value.IsSessionUpdate) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionUpdate!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionUpdate, typeof(global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeConversationItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeConversationItem.g.cs index 77be0431..daec5097 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeConversationItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeConversationItem.g.cs @@ -12,8 +12,7 @@ public class RealtimeConversationItemJsonConverter : global::System.Text.Json.Se global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -115,9 +114,7 @@ public class RealtimeConversationItemJsonConverter : global::System.Text.Json.Se { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageSystem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageSystem).Name}"); - message1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + message1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -130,9 +127,7 @@ public class RealtimeConversationItemJsonConverter : global::System.Text.Json.Se { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageUser), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageUser).Name}"); - message2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + message2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -145,9 +140,7 @@ public class RealtimeConversationItemJsonConverter : global::System.Text.Json.Se { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistant), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistant).Name}"); - message3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + message3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -160,9 +153,7 @@ public class RealtimeConversationItemJsonConverter : global::System.Text.Json.Se { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCall).Name}"); - functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -175,9 +166,7 @@ public class RealtimeConversationItemJsonConverter : global::System.Text.Json.Se { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutput).Name}"); - functionCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -190,9 +179,7 @@ public class RealtimeConversationItemJsonConverter : global::System.Text.Json.Se { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalResponse).Name}"); - mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -205,9 +192,7 @@ public class RealtimeConversationItemJsonConverter : global::System.Text.Json.Se { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeMCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeMCPListTools).Name}"); - mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -220,9 +205,7 @@ public class RealtimeConversationItemJsonConverter : global::System.Text.Json.Se { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeMCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeMCPToolCall).Name}"); - mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -235,9 +218,7 @@ public class RealtimeConversationItemJsonConverter : global::System.Text.Json.Se { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalRequest).Name}"); - mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -252,9 +233,7 @@ public class RealtimeConversationItemJsonConverter : global::System.Text.Json.Se { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageSystem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageSystem).Name}"); - message1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + message1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -265,9 +244,7 @@ public class RealtimeConversationItemJsonConverter : global::System.Text.Json.Se try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageUser), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageUser).Name}"); - message2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + message2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -278,9 +255,7 @@ public class RealtimeConversationItemJsonConverter : global::System.Text.Json.Se try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistant), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistant).Name}"); - message3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + message3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -291,9 +266,7 @@ public class RealtimeConversationItemJsonConverter : global::System.Text.Json.Se try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCall).Name}"); - functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -304,9 +277,7 @@ public class RealtimeConversationItemJsonConverter : global::System.Text.Json.Se try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutput).Name}"); - functionCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -317,9 +288,7 @@ public class RealtimeConversationItemJsonConverter : global::System.Text.Json.Se try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalResponse).Name}"); - mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -330,9 +299,7 @@ public class RealtimeConversationItemJsonConverter : global::System.Text.Json.Se try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeMCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeMCPListTools).Name}"); - mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -343,9 +310,7 @@ public class RealtimeConversationItemJsonConverter : global::System.Text.Json.Se try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeMCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeMCPToolCall).Name}"); - mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -356,9 +321,7 @@ public class RealtimeConversationItemJsonConverter : global::System.Text.Json.Se try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalRequest).Name}"); - mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -397,62 +360,43 @@ public override void Write( global::tryAGI.OpenAI.RealtimeConversationItem value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsMessage1) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageSystem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageSystem).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message1, typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageSystem), options); } else if (value.IsMessage2) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageUser), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageUser).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message2, typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageUser), options); } else if (value.IsMessage3) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistant), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistant).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message3, typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistant), options); } else if (value.IsFunctionCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCall, typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCall), options); } else if (value.IsFunctionCallOutput) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCallOutput, typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutput), options); } else if (value.IsMcpApprovalResponse) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalResponse).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalResponse!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalResponse, typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalResponse), options); } else if (value.IsMcpListTools) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeMCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeMCPListTools).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListTools!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListTools, typeof(global::tryAGI.OpenAI.RealtimeMCPListTools), options); } else if (value.IsMcpCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeMCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeMCPToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpCall, typeof(global::tryAGI.OpenAI.RealtimeMCPToolCall), options); } else if (value.IsMcpApprovalRequest) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalRequest).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalRequest!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalRequest, typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalRequest), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeServerEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeServerEvent.g.cs index 641dc4ef..26767cf3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeServerEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeServerEvent.g.cs @@ -12,8 +12,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -389,9 +388,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationCreated).Name}"); - conversationCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -404,9 +401,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreated).Name}"); - conversationItemCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationItemCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -419,9 +414,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeleted).Name}"); - conversationItemDeleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationItemDeleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -434,9 +427,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted).Name}"); - conversationItemInputAudioTranscriptionCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationItemInputAudioTranscriptionCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -449,9 +440,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta).Name}"); - conversationItemInputAudioTranscriptionDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationItemInputAudioTranscriptionDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -464,9 +453,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed).Name}"); - conversationItemInputAudioTranscriptionFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationItemInputAudioTranscriptionFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -479,9 +466,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrieved), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrieved).Name}"); - conversationItemRetrieved = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationItemRetrieved = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -494,9 +479,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncated).Name}"); - conversationItemTruncated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationItemTruncated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -509,9 +492,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventError), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventError).Name}"); - error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -524,9 +505,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCleared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCleared).Name}"); - inputAudioBufferCleared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputAudioBufferCleared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -539,9 +518,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommitted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommitted).Name}"); - inputAudioBufferCommitted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputAudioBufferCommitted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -554,9 +531,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceived), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceived).Name}"); - inputAudioBufferDtmfEventReceived = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputAudioBufferDtmfEventReceived = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -569,9 +544,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted).Name}"); - inputAudioBufferSpeechStarted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputAudioBufferSpeechStarted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -584,9 +557,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped).Name}"); - inputAudioBufferSpeechStopped = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputAudioBufferSpeechStopped = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -599,9 +570,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdated).Name}"); - rateLimitsUpdated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + rateLimitsUpdated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -614,9 +583,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDelta).Name}"); - responseOutputAudioDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseOutputAudioDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -629,9 +596,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDone).Name}"); - responseOutputAudioDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseOutputAudioDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -644,9 +609,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDelta).Name}"); - responseOutputAudioTranscriptDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseOutputAudioTranscriptDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -659,9 +622,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDone).Name}"); - responseOutputAudioTranscriptDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseOutputAudioTranscriptDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -674,9 +635,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAdded).Name}"); - responseContentPartAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseContentPartAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -689,9 +648,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDone).Name}"); - responseContentPartDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseContentPartDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -704,9 +661,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseCreated).Name}"); - responseCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -719,9 +674,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseDone).Name}"); - responseDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -734,9 +687,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta).Name}"); - responseFunctionCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseFunctionCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -749,9 +700,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone).Name}"); - responseFunctionCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseFunctionCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -764,9 +713,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAdded).Name}"); - responseOutputItemAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseOutputItemAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -779,9 +726,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDone).Name}"); - responseOutputItemDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseOutputItemDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -794,9 +739,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDelta).Name}"); - responseOutputTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseOutputTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -809,9 +752,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDone).Name}"); - responseOutputTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseOutputTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -824,9 +765,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionCreated).Name}"); - sessionCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + sessionCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -839,9 +778,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionUpdated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionUpdated).Name}"); - sessionUpdated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + sessionUpdated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -854,9 +791,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStarted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStarted).Name}"); - outputAudioBufferStarted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + outputAudioBufferStarted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -869,9 +804,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStopped), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStopped).Name}"); - outputAudioBufferStopped = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + outputAudioBufferStopped = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -884,9 +817,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferCleared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferCleared).Name}"); - outputAudioBufferCleared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + outputAudioBufferCleared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -899,9 +830,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemAdded).Name}"); - conversationItemAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationItemAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -914,9 +843,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDone).Name}"); - conversationItemDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationItemDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -929,9 +856,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggered), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggered).Name}"); - inputAudioBufferTimeoutTriggered = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputAudioBufferTimeoutTriggered = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -944,9 +869,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegment), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegment).Name}"); - conversationItemInputAudioTranscriptionSegment = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationItemInputAudioTranscriptionSegment = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -959,9 +882,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgress), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgress).Name}"); - mcpListToolsInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpListToolsInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -974,9 +895,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompleted).Name}"); - mcpListToolsCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpListToolsCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -989,9 +908,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailed).Name}"); - mcpListToolsFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpListToolsFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1004,9 +921,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDelta).Name}"); - responseMcpCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseMcpCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1019,9 +934,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDone).Name}"); - responseMcpCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseMcpCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1034,9 +947,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgress), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgress).Name}"); - responseMcpCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseMcpCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1049,9 +960,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompleted).Name}"); - responseMcpCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseMcpCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1064,9 +973,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailed).Name}"); - responseMcpCallFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseMcpCallFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1081,9 +988,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationCreated).Name}"); - conversationCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1094,9 +999,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreated).Name}"); - conversationItemCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationItemCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1107,9 +1010,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeleted).Name}"); - conversationItemDeleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationItemDeleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1120,9 +1021,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted).Name}"); - conversationItemInputAudioTranscriptionCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationItemInputAudioTranscriptionCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1133,9 +1032,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta).Name}"); - conversationItemInputAudioTranscriptionDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationItemInputAudioTranscriptionDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1146,9 +1043,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed).Name}"); - conversationItemInputAudioTranscriptionFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationItemInputAudioTranscriptionFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1159,9 +1054,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrieved), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrieved).Name}"); - conversationItemRetrieved = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationItemRetrieved = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1172,9 +1065,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncated).Name}"); - conversationItemTruncated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationItemTruncated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1185,9 +1076,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventError), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventError).Name}"); - error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1198,9 +1087,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCleared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCleared).Name}"); - inputAudioBufferCleared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputAudioBufferCleared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1211,9 +1098,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommitted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommitted).Name}"); - inputAudioBufferCommitted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputAudioBufferCommitted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1224,9 +1109,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceived), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceived).Name}"); - inputAudioBufferDtmfEventReceived = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputAudioBufferDtmfEventReceived = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1237,9 +1120,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted).Name}"); - inputAudioBufferSpeechStarted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputAudioBufferSpeechStarted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1250,9 +1131,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped).Name}"); - inputAudioBufferSpeechStopped = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputAudioBufferSpeechStopped = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1263,9 +1142,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdated).Name}"); - rateLimitsUpdated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + rateLimitsUpdated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1276,9 +1153,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDelta).Name}"); - responseOutputAudioDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseOutputAudioDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1289,9 +1164,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDone).Name}"); - responseOutputAudioDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseOutputAudioDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1302,9 +1175,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDelta).Name}"); - responseOutputAudioTranscriptDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseOutputAudioTranscriptDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1315,9 +1186,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDone).Name}"); - responseOutputAudioTranscriptDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseOutputAudioTranscriptDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1328,9 +1197,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAdded).Name}"); - responseContentPartAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseContentPartAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1341,9 +1208,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDone).Name}"); - responseContentPartDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseContentPartDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1354,9 +1219,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseCreated).Name}"); - responseCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1367,9 +1230,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseDone).Name}"); - responseDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1380,9 +1241,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta).Name}"); - responseFunctionCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseFunctionCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1393,9 +1252,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone).Name}"); - responseFunctionCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseFunctionCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1406,9 +1263,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAdded).Name}"); - responseOutputItemAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseOutputItemAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1419,9 +1274,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDone).Name}"); - responseOutputItemDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseOutputItemDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1432,9 +1285,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDelta).Name}"); - responseOutputTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseOutputTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1445,9 +1296,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDone).Name}"); - responseOutputTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseOutputTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1458,9 +1307,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionCreated).Name}"); - sessionCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + sessionCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1471,9 +1318,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionUpdated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionUpdated).Name}"); - sessionUpdated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + sessionUpdated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1484,9 +1329,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStarted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStarted).Name}"); - outputAudioBufferStarted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + outputAudioBufferStarted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1497,9 +1340,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStopped), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStopped).Name}"); - outputAudioBufferStopped = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + outputAudioBufferStopped = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1510,9 +1351,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferCleared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferCleared).Name}"); - outputAudioBufferCleared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + outputAudioBufferCleared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1523,9 +1362,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemAdded).Name}"); - conversationItemAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationItemAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1536,9 +1373,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDone).Name}"); - conversationItemDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationItemDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1549,9 +1384,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggered), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggered).Name}"); - inputAudioBufferTimeoutTriggered = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputAudioBufferTimeoutTriggered = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1562,9 +1395,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegment), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegment).Name}"); - conversationItemInputAudioTranscriptionSegment = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationItemInputAudioTranscriptionSegment = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1575,9 +1406,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgress), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgress).Name}"); - mcpListToolsInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpListToolsInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1588,9 +1417,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompleted).Name}"); - mcpListToolsCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpListToolsCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1601,9 +1428,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailed).Name}"); - mcpListToolsFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpListToolsFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1614,9 +1439,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDelta).Name}"); - responseMcpCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseMcpCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1627,9 +1450,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDone).Name}"); - responseMcpCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseMcpCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1640,9 +1461,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgress), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgress).Name}"); - responseMcpCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseMcpCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1653,9 +1472,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompleted).Name}"); - responseMcpCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseMcpCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1666,9 +1483,7 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailed).Name}"); - responseMcpCallFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseMcpCallFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1781,284 +1596,191 @@ public override void Write( global::tryAGI.OpenAI.RealtimeServerEvent value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsConversationCreated) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationCreated).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationCreated!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationCreated, typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationCreated), options); } else if (value.IsConversationItemCreated) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreated).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemCreated!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemCreated, typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreated), options); } else if (value.IsConversationItemDeleted) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeleted).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemDeleted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemDeleted, typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeleted), options); } else if (value.IsConversationItemInputAudioTranscriptionCompleted) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemInputAudioTranscriptionCompleted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemInputAudioTranscriptionCompleted, typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted), options); } else if (value.IsConversationItemInputAudioTranscriptionDelta) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemInputAudioTranscriptionDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemInputAudioTranscriptionDelta, typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta), options); } else if (value.IsConversationItemInputAudioTranscriptionFailed) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemInputAudioTranscriptionFailed!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemInputAudioTranscriptionFailed, typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed), options); } else if (value.IsConversationItemRetrieved) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrieved), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrieved).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemRetrieved!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemRetrieved, typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrieved), options); } else if (value.IsConversationItemTruncated) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncated).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemTruncated!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemTruncated, typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncated), options); } else if (value.IsError) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventError), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventError).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Error!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Error, typeof(global::tryAGI.OpenAI.RealtimeServerEventError), options); } else if (value.IsInputAudioBufferCleared) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCleared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCleared).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferCleared!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferCleared, typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCleared), options); } else if (value.IsInputAudioBufferCommitted) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommitted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommitted).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferCommitted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferCommitted, typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommitted), options); } else if (value.IsInputAudioBufferDtmfEventReceived) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceived), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceived).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferDtmfEventReceived!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferDtmfEventReceived, typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceived), options); } else if (value.IsInputAudioBufferSpeechStarted) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferSpeechStarted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferSpeechStarted, typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted), options); } else if (value.IsInputAudioBufferSpeechStopped) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferSpeechStopped!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferSpeechStopped, typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped), options); } else if (value.IsRateLimitsUpdated) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdated).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RateLimitsUpdated!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RateLimitsUpdated, typeof(global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdated), options); } else if (value.IsResponseOutputAudioDelta) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputAudioDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputAudioDelta, typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDelta), options); } else if (value.IsResponseOutputAudioDone) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDone).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputAudioDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputAudioDone, typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDone), options); } else if (value.IsResponseOutputAudioTranscriptDelta) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputAudioTranscriptDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputAudioTranscriptDelta, typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDelta), options); } else if (value.IsResponseOutputAudioTranscriptDone) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDone).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputAudioTranscriptDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputAudioTranscriptDone, typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDone), options); } else if (value.IsResponseContentPartAdded) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAdded).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseContentPartAdded!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseContentPartAdded, typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAdded), options); } else if (value.IsResponseContentPartDone) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDone).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseContentPartDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseContentPartDone, typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDone), options); } else if (value.IsResponseCreated) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseCreated).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCreated!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCreated, typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseCreated), options); } else if (value.IsResponseDone) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseDone).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseDone, typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseDone), options); } else if (value.IsResponseFunctionCallArgumentsDelta) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFunctionCallArgumentsDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFunctionCallArgumentsDelta, typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta), options); } else if (value.IsResponseFunctionCallArgumentsDone) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFunctionCallArgumentsDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFunctionCallArgumentsDone, typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone), options); } else if (value.IsResponseOutputItemAdded) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAdded).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputItemAdded!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputItemAdded, typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAdded), options); } else if (value.IsResponseOutputItemDone) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDone).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputItemDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputItemDone, typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDone), options); } else if (value.IsResponseOutputTextDelta) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputTextDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputTextDelta, typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDelta), options); } else if (value.IsResponseOutputTextDone) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDone).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputTextDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputTextDone, typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDone), options); } else if (value.IsSessionCreated) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionCreated).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionCreated!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionCreated, typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionCreated), options); } else if (value.IsSessionUpdated) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionUpdated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionUpdated).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionUpdated!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionUpdated, typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionUpdated), options); } else if (value.IsOutputAudioBufferStarted) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStarted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStarted).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputAudioBufferStarted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputAudioBufferStarted, typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStarted), options); } else if (value.IsOutputAudioBufferStopped) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStopped), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStopped).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputAudioBufferStopped!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputAudioBufferStopped, typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStopped), options); } else if (value.IsOutputAudioBufferCleared) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferCleared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferCleared).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputAudioBufferCleared!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputAudioBufferCleared, typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferCleared), options); } else if (value.IsConversationItemAdded) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemAdded).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemAdded!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemAdded, typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemAdded), options); } else if (value.IsConversationItemDone) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDone).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemDone, typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDone), options); } else if (value.IsInputAudioBufferTimeoutTriggered) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggered), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggered).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferTimeoutTriggered!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferTimeoutTriggered, typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggered), options); } else if (value.IsConversationItemInputAudioTranscriptionSegment) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegment), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegment).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemInputAudioTranscriptionSegment!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemInputAudioTranscriptionSegment, typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegment), options); } else if (value.IsMcpListToolsInProgress) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgress), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgress).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListToolsInProgress!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListToolsInProgress, typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgress), options); } else if (value.IsMcpListToolsCompleted) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompleted).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListToolsCompleted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListToolsCompleted, typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompleted), options); } else if (value.IsMcpListToolsFailed) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailed).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListToolsFailed!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListToolsFailed, typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailed), options); } else if (value.IsResponseMcpCallArgumentsDelta) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallArgumentsDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallArgumentsDelta, typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDelta), options); } else if (value.IsResponseMcpCallArgumentsDone) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDone).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallArgumentsDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallArgumentsDone, typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDone), options); } else if (value.IsResponseMcpCallInProgress) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgress), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgress).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallInProgress!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallInProgress, typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgress), options); } else if (value.IsResponseMcpCallCompleted) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompleted).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallCompleted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallCompleted, typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompleted), options); } else if (value.IsResponseMcpCallFailed) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailed).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallFailed!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallFailed, typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailed), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTruncation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTruncation.g.cs index 355034f2..3063a666 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTruncation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTruncation.g.cs @@ -12,8 +12,7 @@ public class RealtimeTruncationJsonConverter : global::System.Text.Json.Serializ global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -44,9 +43,7 @@ public class RealtimeTruncationJsonConverter : global::System.Text.Json.Serializ { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTruncationEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTruncationEnum).Name}"); - @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -59,9 +56,7 @@ public class RealtimeTruncationJsonConverter : global::System.Text.Json.Serializ { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTruncationEnum2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTruncationEnum2).Name}"); - retentionRatioTruncation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + retentionRatioTruncation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -76,9 +71,7 @@ public class RealtimeTruncationJsonConverter : global::System.Text.Json.Serializ { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTruncationEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTruncationEnum).Name}"); - @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -89,9 +82,7 @@ public class RealtimeTruncationJsonConverter : global::System.Text.Json.Serializ try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTruncationEnum2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTruncationEnum2).Name}"); - retentionRatioTruncation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + retentionRatioTruncation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -116,20 +107,15 @@ public override void Write( global::tryAGI.OpenAI.RealtimeTruncation value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsEnum) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTruncationEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTruncationEnum).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum, typeof(global::tryAGI.OpenAI.RealtimeTruncationEnum), options); } else if (value.IsRetentionRatioTruncation) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTruncationEnum2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTruncationEnum2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RetentionRatioTruncation!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RetentionRatioTruncation, typeof(global::tryAGI.OpenAI.RealtimeTruncationEnum2), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs index 7a791d49..4bcc1c90 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs @@ -12,8 +12,7 @@ public class RealtimeTurnDetectionRealtimeTurnDetection1JsonConverter : global:: global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -52,9 +51,7 @@ public class RealtimeTurnDetectionRealtimeTurnDetection1JsonConverter : global:: { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad).Name}"); - serverVad = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + serverVad = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -67,9 +64,7 @@ public class RealtimeTurnDetectionRealtimeTurnDetection1JsonConverter : global:: { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad).Name}"); - semanticVad = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + semanticVad = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -84,9 +79,7 @@ public class RealtimeTurnDetectionRealtimeTurnDetection1JsonConverter : global:: { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad).Name}"); - serverVad = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + serverVad = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -97,9 +90,7 @@ public class RealtimeTurnDetectionRealtimeTurnDetection1JsonConverter : global:: try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad).Name}"); - semanticVad = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + semanticVad = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -124,20 +115,15 @@ public override void Write( global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1 value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsServerVad) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ServerVad!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ServerVad, typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad), options); } else if (value.IsSemanticVad) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SemanticVad!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SemanticVad, typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Response.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Response.g.cs index 99e77bbf..fddeffae 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Response.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Response.g.cs @@ -12,8 +12,7 @@ public class ResponseJsonConverter : global::System.Text.Json.Serialization.Json global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -77,9 +76,7 @@ public class ResponseJsonConverter : global::System.Text.Json.Serialization.Json { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelResponseProperties).Name}"); - modelProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + modelProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -92,9 +89,7 @@ public class ResponseJsonConverter : global::System.Text.Json.Serialization.Json { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseProperties).Name}"); - properties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + properties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -107,9 +102,7 @@ public class ResponseJsonConverter : global::System.Text.Json.Serialization.Json { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseVariant3).Name}"); - responseVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -124,9 +117,7 @@ public class ResponseJsonConverter : global::System.Text.Json.Serialization.Json { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelResponseProperties).Name}"); - modelProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + modelProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -137,9 +128,7 @@ public class ResponseJsonConverter : global::System.Text.Json.Serialization.Json try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseProperties).Name}"); - properties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + properties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -150,9 +139,7 @@ public class ResponseJsonConverter : global::System.Text.Json.Serialization.Json try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseVariant3).Name}"); - responseVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -179,26 +166,19 @@ public override void Write( global::tryAGI.OpenAI.Response value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsModelProperties) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelResponseProperties).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModelProperties!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModelProperties, typeof(global::tryAGI.OpenAI.ModelResponseProperties), options); } else if (value.IsProperties) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseProperties).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Properties!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Properties, typeof(global::tryAGI.OpenAI.ResponseProperties), options); } else if (value.IsResponseVariant3) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseVariant3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseVariant3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseVariant3, typeof(global::tryAGI.OpenAI.ResponseVariant3), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseFormat.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseFormat.g.cs index 457366a9..f52f0cc7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseFormat.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseFormat.g.cs @@ -12,8 +12,7 @@ public class ResponseFormatJsonConverter : global::System.Text.Json.Serializatio global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -48,9 +47,7 @@ public class ResponseFormatJsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatText).Name}"); - text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -63,9 +60,7 @@ public class ResponseFormatJsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchema), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchema).Name}"); - jsonSchema = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + jsonSchema = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -78,9 +73,7 @@ public class ResponseFormatJsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject).Name}"); - jsonObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + jsonObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -95,9 +88,7 @@ public class ResponseFormatJsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatText).Name}"); - text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -108,9 +99,7 @@ public class ResponseFormatJsonConverter : global::System.Text.Json.Serializatio try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchema), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchema).Name}"); - jsonSchema = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + jsonSchema = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -121,9 +110,7 @@ public class ResponseFormatJsonConverter : global::System.Text.Json.Serializatio try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject).Name}"); - jsonObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + jsonObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -150,26 +137,19 @@ public override void Write( global::tryAGI.OpenAI.ResponseFormat value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsText) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatText).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text, typeof(global::tryAGI.OpenAI.ResponseFormatText), options); } else if (value.IsJsonSchema) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchema), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchema).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.JsonSchema!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.JsonSchema, typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchema), options); } else if (value.IsJsonObject) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.JsonObject!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.JsonObject, typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseStreamEvent.g.cs index 8d271516..dc850ac8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseStreamEvent.g.cs @@ -12,8 +12,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -435,9 +434,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseAudioDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseAudioDeltaEvent).Name}"); - responseAudioDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseAudioDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -450,9 +447,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseAudioDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseAudioDoneEvent).Name}"); - responseAudioDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseAudioDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -465,9 +460,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEvent).Name}"); - responseAudioTranscriptDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseAudioTranscriptDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -480,9 +473,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEvent).Name}"); - responseAudioTranscriptDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseAudioTranscriptDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -495,9 +486,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent).Name}"); - responseCodeInterpreterCallCodeDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseCodeInterpreterCallCodeDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -510,9 +499,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent).Name}"); - responseCodeInterpreterCallCodeDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseCodeInterpreterCallCodeDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -525,9 +512,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent).Name}"); - responseCodeInterpreterCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseCodeInterpreterCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -540,9 +525,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent).Name}"); - responseCodeInterpreterCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseCodeInterpreterCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -555,9 +538,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent).Name}"); - responseCodeInterpreterCallInterpreting = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseCodeInterpreterCallInterpreting = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -570,9 +551,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCompletedEvent).Name}"); - responseCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -585,9 +564,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseContentPartAddedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseContentPartAddedEvent).Name}"); - responseContentPartAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseContentPartAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -600,9 +577,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseContentPartDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseContentPartDoneEvent).Name}"); - responseContentPartDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseContentPartDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -615,9 +590,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCreatedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCreatedEvent).Name}"); - responseCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -630,9 +603,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseErrorEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseErrorEvent).Name}"); - error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -645,9 +616,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent).Name}"); - responseFileSearchCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseFileSearchCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -660,9 +629,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent).Name}"); - responseFileSearchCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseFileSearchCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -675,9 +642,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEvent).Name}"); - responseFileSearchCallSearching = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseFileSearchCallSearching = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -690,9 +655,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEvent).Name}"); - responseFunctionCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseFunctionCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -705,9 +668,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEvent).Name}"); - responseFunctionCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseFunctionCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -720,9 +681,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseInProgressEvent).Name}"); - responseInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -735,9 +694,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFailedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFailedEvent).Name}"); - responseFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -750,9 +707,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseIncompleteEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseIncompleteEvent).Name}"); - responseIncomplete = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseIncomplete = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -765,9 +720,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseOutputItemAddedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseOutputItemAddedEvent).Name}"); - responseOutputItemAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseOutputItemAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -780,9 +733,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseOutputItemDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseOutputItemDoneEvent).Name}"); - responseOutputItemDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseOutputItemDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -795,9 +746,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEvent).Name}"); - responseReasoningSummaryPartAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseReasoningSummaryPartAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -810,9 +759,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEvent).Name}"); - responseReasoningSummaryPartDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseReasoningSummaryPartDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -825,9 +772,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent).Name}"); - responseReasoningSummaryTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseReasoningSummaryTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -840,9 +785,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent).Name}"); - responseReasoningSummaryTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseReasoningSummaryTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -855,9 +798,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent).Name}"); - responseReasoningTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseReasoningTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -870,9 +811,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent).Name}"); - responseReasoningTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseReasoningTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -885,9 +824,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseRefusalDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseRefusalDeltaEvent).Name}"); - responseRefusalDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseRefusalDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -900,9 +837,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseRefusalDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseRefusalDoneEvent).Name}"); - responseRefusalDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseRefusalDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -915,9 +850,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseTextDeltaEvent).Name}"); - responseOutputTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseOutputTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -930,9 +863,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseTextDoneEvent).Name}"); - responseOutputTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseOutputTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -945,9 +876,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEvent).Name}"); - responseWebSearchCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseWebSearchCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -960,9 +889,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEvent).Name}"); - responseWebSearchCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseWebSearchCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -975,9 +902,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEvent).Name}"); - responseWebSearchCallSearching = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseWebSearchCallSearching = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -990,9 +915,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseImageGenCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseImageGenCallCompletedEvent).Name}"); - responseImageGenerationCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseImageGenerationCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1005,9 +928,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEvent).Name}"); - responseImageGenerationCallGenerating = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseImageGenerationCallGenerating = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1020,9 +941,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseImageGenCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseImageGenCallInProgressEvent).Name}"); - responseImageGenerationCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseImageGenerationCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1035,9 +954,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEvent).Name}"); - responseImageGenerationCallPartialImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseImageGenerationCallPartialImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1050,9 +967,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEvent).Name}"); - responseMcpCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseMcpCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1065,9 +980,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEvent).Name}"); - responseMcpCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseMcpCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1080,9 +993,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPCallCompletedEvent).Name}"); - responseMcpCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseMcpCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1095,9 +1006,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallFailedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPCallFailedEvent).Name}"); - responseMcpCallFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseMcpCallFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1110,9 +1019,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPCallInProgressEvent).Name}"); - responseMcpCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseMcpCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1125,9 +1032,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEvent).Name}"); - responseMcpListToolsCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseMcpListToolsCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1140,9 +1045,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent).Name}"); - responseMcpListToolsFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseMcpListToolsFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1155,9 +1058,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEvent).Name}"); - responseMcpListToolsInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseMcpListToolsInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1170,9 +1071,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent).Name}"); - responseOutputTextAnnotationAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseOutputTextAnnotationAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1185,9 +1084,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseQueuedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseQueuedEvent).Name}"); - responseQueued = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseQueued = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1200,9 +1097,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEvent).Name}"); - responseCustomToolCallInputDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseCustomToolCallInputDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1215,9 +1110,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent).Name}"); - responseCustomToolCallInputDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseCustomToolCallInputDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1232,9 +1125,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseAudioDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseAudioDeltaEvent).Name}"); - responseAudioDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseAudioDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1245,9 +1136,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseAudioDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseAudioDoneEvent).Name}"); - responseAudioDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseAudioDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1258,9 +1147,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEvent).Name}"); - responseAudioTranscriptDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseAudioTranscriptDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1271,9 +1158,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEvent).Name}"); - responseAudioTranscriptDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseAudioTranscriptDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1284,9 +1169,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent).Name}"); - responseCodeInterpreterCallCodeDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseCodeInterpreterCallCodeDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1297,9 +1180,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent).Name}"); - responseCodeInterpreterCallCodeDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseCodeInterpreterCallCodeDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1310,9 +1191,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent).Name}"); - responseCodeInterpreterCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseCodeInterpreterCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1323,9 +1202,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent).Name}"); - responseCodeInterpreterCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseCodeInterpreterCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1336,9 +1213,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent).Name}"); - responseCodeInterpreterCallInterpreting = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseCodeInterpreterCallInterpreting = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1349,9 +1224,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCompletedEvent).Name}"); - responseCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1362,9 +1235,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseContentPartAddedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseContentPartAddedEvent).Name}"); - responseContentPartAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseContentPartAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1375,9 +1246,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseContentPartDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseContentPartDoneEvent).Name}"); - responseContentPartDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseContentPartDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1388,9 +1257,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCreatedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCreatedEvent).Name}"); - responseCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1401,9 +1268,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseErrorEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseErrorEvent).Name}"); - error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1414,9 +1279,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent).Name}"); - responseFileSearchCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseFileSearchCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1427,9 +1290,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent).Name}"); - responseFileSearchCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseFileSearchCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1440,9 +1301,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEvent).Name}"); - responseFileSearchCallSearching = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseFileSearchCallSearching = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1453,9 +1312,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEvent).Name}"); - responseFunctionCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseFunctionCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1466,9 +1323,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEvent).Name}"); - responseFunctionCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseFunctionCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1479,9 +1334,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseInProgressEvent).Name}"); - responseInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1492,9 +1345,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFailedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFailedEvent).Name}"); - responseFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1505,9 +1356,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseIncompleteEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseIncompleteEvent).Name}"); - responseIncomplete = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseIncomplete = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1518,9 +1367,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseOutputItemAddedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseOutputItemAddedEvent).Name}"); - responseOutputItemAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseOutputItemAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1531,9 +1378,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseOutputItemDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseOutputItemDoneEvent).Name}"); - responseOutputItemDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseOutputItemDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1544,9 +1389,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEvent).Name}"); - responseReasoningSummaryPartAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseReasoningSummaryPartAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1557,9 +1400,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEvent).Name}"); - responseReasoningSummaryPartDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseReasoningSummaryPartDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1570,9 +1411,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent).Name}"); - responseReasoningSummaryTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseReasoningSummaryTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1583,9 +1422,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent).Name}"); - responseReasoningSummaryTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseReasoningSummaryTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1596,9 +1433,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent).Name}"); - responseReasoningTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseReasoningTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1609,9 +1444,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent).Name}"); - responseReasoningTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseReasoningTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1622,9 +1455,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseRefusalDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseRefusalDeltaEvent).Name}"); - responseRefusalDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseRefusalDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1635,9 +1466,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseRefusalDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseRefusalDoneEvent).Name}"); - responseRefusalDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseRefusalDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1648,9 +1477,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseTextDeltaEvent).Name}"); - responseOutputTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseOutputTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1661,9 +1488,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseTextDoneEvent).Name}"); - responseOutputTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseOutputTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1674,9 +1499,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEvent).Name}"); - responseWebSearchCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseWebSearchCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1687,9 +1510,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEvent).Name}"); - responseWebSearchCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseWebSearchCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1700,9 +1521,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEvent).Name}"); - responseWebSearchCallSearching = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseWebSearchCallSearching = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1713,9 +1532,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseImageGenCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseImageGenCallCompletedEvent).Name}"); - responseImageGenerationCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseImageGenerationCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1726,9 +1543,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEvent).Name}"); - responseImageGenerationCallGenerating = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseImageGenerationCallGenerating = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1739,9 +1554,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseImageGenCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseImageGenCallInProgressEvent).Name}"); - responseImageGenerationCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseImageGenerationCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1752,9 +1565,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEvent).Name}"); - responseImageGenerationCallPartialImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseImageGenerationCallPartialImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1765,9 +1576,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEvent).Name}"); - responseMcpCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseMcpCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1778,9 +1587,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEvent).Name}"); - responseMcpCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseMcpCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1791,9 +1598,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPCallCompletedEvent).Name}"); - responseMcpCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseMcpCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1804,9 +1609,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallFailedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPCallFailedEvent).Name}"); - responseMcpCallFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseMcpCallFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1817,9 +1620,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPCallInProgressEvent).Name}"); - responseMcpCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseMcpCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1830,9 +1631,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEvent).Name}"); - responseMcpListToolsCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseMcpListToolsCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1843,9 +1642,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent).Name}"); - responseMcpListToolsFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseMcpListToolsFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1856,9 +1653,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEvent).Name}"); - responseMcpListToolsInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseMcpListToolsInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1869,9 +1664,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent).Name}"); - responseOutputTextAnnotationAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseOutputTextAnnotationAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1882,9 +1675,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseQueuedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseQueuedEvent).Name}"); - responseQueued = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseQueued = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1895,9 +1686,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEvent).Name}"); - responseCustomToolCallInputDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseCustomToolCallInputDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -1908,9 +1697,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent).Name}"); - responseCustomToolCallInputDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseCustomToolCallInputDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -2037,326 +1824,219 @@ public override void Write( global::tryAGI.OpenAI.ResponseStreamEvent value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsResponseAudioDelta) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseAudioDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseAudioDeltaEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseAudioDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseAudioDelta, typeof(global::tryAGI.OpenAI.ResponseAudioDeltaEvent), options); } else if (value.IsResponseAudioDone) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseAudioDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseAudioDoneEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseAudioDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseAudioDone, typeof(global::tryAGI.OpenAI.ResponseAudioDoneEvent), options); } else if (value.IsResponseAudioTranscriptDelta) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseAudioTranscriptDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseAudioTranscriptDelta, typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEvent), options); } else if (value.IsResponseAudioTranscriptDone) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseAudioTranscriptDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseAudioTranscriptDone, typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEvent), options); } else if (value.IsResponseCodeInterpreterCallCodeDelta) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCodeInterpreterCallCodeDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCodeInterpreterCallCodeDelta, typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent), options); } else if (value.IsResponseCodeInterpreterCallCodeDone) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCodeInterpreterCallCodeDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCodeInterpreterCallCodeDone, typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent), options); } else if (value.IsResponseCodeInterpreterCallCompleted) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCodeInterpreterCallCompleted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCodeInterpreterCallCompleted, typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent), options); } else if (value.IsResponseCodeInterpreterCallInProgress) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCodeInterpreterCallInProgress!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCodeInterpreterCallInProgress, typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent), options); } else if (value.IsResponseCodeInterpreterCallInterpreting) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCodeInterpreterCallInterpreting!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCodeInterpreterCallInterpreting, typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent), options); } else if (value.IsResponseCompleted) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCompletedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCompleted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCompleted, typeof(global::tryAGI.OpenAI.ResponseCompletedEvent), options); } else if (value.IsResponseContentPartAdded) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseContentPartAddedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseContentPartAddedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseContentPartAdded!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseContentPartAdded, typeof(global::tryAGI.OpenAI.ResponseContentPartAddedEvent), options); } else if (value.IsResponseContentPartDone) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseContentPartDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseContentPartDoneEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseContentPartDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseContentPartDone, typeof(global::tryAGI.OpenAI.ResponseContentPartDoneEvent), options); } else if (value.IsResponseCreated) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCreatedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCreatedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCreated!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCreated, typeof(global::tryAGI.OpenAI.ResponseCreatedEvent), options); } else if (value.IsError) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseErrorEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseErrorEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Error!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Error, typeof(global::tryAGI.OpenAI.ResponseErrorEvent), options); } else if (value.IsResponseFileSearchCallCompleted) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFileSearchCallCompleted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFileSearchCallCompleted, typeof(global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent), options); } else if (value.IsResponseFileSearchCallInProgress) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFileSearchCallInProgress!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFileSearchCallInProgress, typeof(global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent), options); } else if (value.IsResponseFileSearchCallSearching) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFileSearchCallSearching!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFileSearchCallSearching, typeof(global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEvent), options); } else if (value.IsResponseFunctionCallArgumentsDelta) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFunctionCallArgumentsDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFunctionCallArgumentsDelta, typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEvent), options); } else if (value.IsResponseFunctionCallArgumentsDone) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFunctionCallArgumentsDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFunctionCallArgumentsDone, typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEvent), options); } else if (value.IsResponseInProgress) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseInProgressEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseInProgress!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseInProgress, typeof(global::tryAGI.OpenAI.ResponseInProgressEvent), options); } else if (value.IsResponseFailed) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFailedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFailedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFailed!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFailed, typeof(global::tryAGI.OpenAI.ResponseFailedEvent), options); } else if (value.IsResponseIncomplete) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseIncompleteEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseIncompleteEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseIncomplete!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseIncomplete, typeof(global::tryAGI.OpenAI.ResponseIncompleteEvent), options); } else if (value.IsResponseOutputItemAdded) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseOutputItemAddedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseOutputItemAddedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputItemAdded!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputItemAdded, typeof(global::tryAGI.OpenAI.ResponseOutputItemAddedEvent), options); } else if (value.IsResponseOutputItemDone) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseOutputItemDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseOutputItemDoneEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputItemDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputItemDone, typeof(global::tryAGI.OpenAI.ResponseOutputItemDoneEvent), options); } else if (value.IsResponseReasoningSummaryPartAdded) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseReasoningSummaryPartAdded!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseReasoningSummaryPartAdded, typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEvent), options); } else if (value.IsResponseReasoningSummaryPartDone) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseReasoningSummaryPartDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseReasoningSummaryPartDone, typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEvent), options); } else if (value.IsResponseReasoningSummaryTextDelta) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseReasoningSummaryTextDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseReasoningSummaryTextDelta, typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent), options); } else if (value.IsResponseReasoningSummaryTextDone) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseReasoningSummaryTextDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseReasoningSummaryTextDone, typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent), options); } else if (value.IsResponseReasoningTextDelta) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseReasoningTextDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseReasoningTextDelta, typeof(global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent), options); } else if (value.IsResponseReasoningTextDone) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseReasoningTextDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseReasoningTextDone, typeof(global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent), options); } else if (value.IsResponseRefusalDelta) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseRefusalDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseRefusalDeltaEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseRefusalDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseRefusalDelta, typeof(global::tryAGI.OpenAI.ResponseRefusalDeltaEvent), options); } else if (value.IsResponseRefusalDone) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseRefusalDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseRefusalDoneEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseRefusalDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseRefusalDone, typeof(global::tryAGI.OpenAI.ResponseRefusalDoneEvent), options); } else if (value.IsResponseOutputTextDelta) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseTextDeltaEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputTextDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputTextDelta, typeof(global::tryAGI.OpenAI.ResponseTextDeltaEvent), options); } else if (value.IsResponseOutputTextDone) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseTextDoneEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputTextDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputTextDone, typeof(global::tryAGI.OpenAI.ResponseTextDoneEvent), options); } else if (value.IsResponseWebSearchCallCompleted) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseWebSearchCallCompleted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseWebSearchCallCompleted, typeof(global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEvent), options); } else if (value.IsResponseWebSearchCallInProgress) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseWebSearchCallInProgress!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseWebSearchCallInProgress, typeof(global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEvent), options); } else if (value.IsResponseWebSearchCallSearching) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseWebSearchCallSearching!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseWebSearchCallSearching, typeof(global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEvent), options); } else if (value.IsResponseImageGenerationCallCompleted) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseImageGenCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseImageGenCallCompletedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseImageGenerationCallCompleted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseImageGenerationCallCompleted, typeof(global::tryAGI.OpenAI.ResponseImageGenCallCompletedEvent), options); } else if (value.IsResponseImageGenerationCallGenerating) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseImageGenerationCallGenerating!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseImageGenerationCallGenerating, typeof(global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEvent), options); } else if (value.IsResponseImageGenerationCallInProgress) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseImageGenCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseImageGenCallInProgressEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseImageGenerationCallInProgress!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseImageGenerationCallInProgress, typeof(global::tryAGI.OpenAI.ResponseImageGenCallInProgressEvent), options); } else if (value.IsResponseImageGenerationCallPartialImage) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseImageGenerationCallPartialImage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseImageGenerationCallPartialImage, typeof(global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEvent), options); } else if (value.IsResponseMcpCallArgumentsDelta) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallArgumentsDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallArgumentsDelta, typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEvent), options); } else if (value.IsResponseMcpCallArgumentsDone) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallArgumentsDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallArgumentsDone, typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEvent), options); } else if (value.IsResponseMcpCallCompleted) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPCallCompletedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallCompleted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallCompleted, typeof(global::tryAGI.OpenAI.ResponseMCPCallCompletedEvent), options); } else if (value.IsResponseMcpCallFailed) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallFailedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPCallFailedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallFailed!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallFailed, typeof(global::tryAGI.OpenAI.ResponseMCPCallFailedEvent), options); } else if (value.IsResponseMcpCallInProgress) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPCallInProgressEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallInProgress!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallInProgress, typeof(global::tryAGI.OpenAI.ResponseMCPCallInProgressEvent), options); } else if (value.IsResponseMcpListToolsCompleted) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpListToolsCompleted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpListToolsCompleted, typeof(global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEvent), options); } else if (value.IsResponseMcpListToolsFailed) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpListToolsFailed!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpListToolsFailed, typeof(global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent), options); } else if (value.IsResponseMcpListToolsInProgress) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpListToolsInProgress!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpListToolsInProgress, typeof(global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEvent), options); } else if (value.IsResponseOutputTextAnnotationAdded) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputTextAnnotationAdded!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputTextAnnotationAdded, typeof(global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent), options); } else if (value.IsResponseQueued) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseQueuedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseQueuedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseQueued!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseQueued, typeof(global::tryAGI.OpenAI.ResponseQueuedEvent), options); } else if (value.IsResponseCustomToolCallInputDelta) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCustomToolCallInputDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCustomToolCallInputDelta, typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEvent), options); } else if (value.IsResponseCustomToolCallInputDone) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCustomToolCallInputDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCustomToolCallInputDone, typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponsesClientEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponsesClientEvent.g.cs index 792a0cb0..cfc44118 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponsesClientEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponsesClientEvent.g.cs @@ -12,8 +12,7 @@ public class ResponsesClientEventJsonConverter : global::System.Text.Json.Serial global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); @@ -28,16 +27,6 @@ public class ResponsesClientEventJsonConverter : global::System.Text.Json.Serial } var __score0 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreate), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score0++; - } - } - } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -50,9 +39,7 @@ public class ResponsesClientEventJsonConverter : global::System.Text.Json.Serial try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreate).Name}"); - responseCreate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseCreate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -68,9 +55,7 @@ public class ResponsesClientEventJsonConverter : global::System.Text.Json.Serial try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreate).Name}"); - responseCreate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseCreate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -93,14 +78,11 @@ public override void Write( global::tryAGI.OpenAI.ResponsesClientEvent value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsResponseCreate) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreate).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCreate!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCreate, typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreate), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponsesClientEventResponseCreate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponsesClientEventResponseCreate.g.cs index d7c5c4db..67486fbf 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponsesClientEventResponseCreate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponsesClientEventResponseCreate.g.cs @@ -12,8 +12,7 @@ public class ResponsesClientEventResponseCreateJsonConverter : global::System.Te global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -42,9 +41,7 @@ public class ResponsesClientEventResponseCreateJsonConverter : global::System.Te { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1).Name}"); - responsesClientEventResponseCreateVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responsesClientEventResponseCreateVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -57,9 +54,7 @@ public class ResponsesClientEventResponseCreateJsonConverter : global::System.Te { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateResponse).Name}"); - createResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + createResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -74,9 +69,7 @@ public class ResponsesClientEventResponseCreateJsonConverter : global::System.Te { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1).Name}"); - responsesClientEventResponseCreateVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responsesClientEventResponseCreateVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -87,9 +80,7 @@ public class ResponsesClientEventResponseCreateJsonConverter : global::System.Te try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateResponse).Name}"); - createResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + createResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -114,20 +105,15 @@ public override void Write( global::tryAGI.OpenAI.ResponsesClientEventResponseCreate value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsResponsesClientEventResponseCreateVariant1) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponsesClientEventResponseCreateVariant1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponsesClientEventResponseCreateVariant1, typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1), options); } else if (value.IsCreateResponse) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateResponse).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateResponse!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateResponse, typeof(global::tryAGI.OpenAI.CreateResponse), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponsesServerEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponsesServerEvent.g.cs index cb1af58f..3c72ad7a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponsesServerEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponsesServerEvent.g.cs @@ -12,8 +12,7 @@ public class ResponsesServerEventJsonConverter : global::System.Text.Json.Serial global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); @@ -28,16 +27,6 @@ public class ResponsesServerEventJsonConverter : global::System.Text.Json.Serial } var __score0 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseStreamEvent), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score0++; - } - } - } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -50,9 +39,7 @@ public class ResponsesServerEventJsonConverter : global::System.Text.Json.Serial try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseStreamEvent).Name}"); - responseStream = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseStream = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -68,9 +55,7 @@ public class ResponsesServerEventJsonConverter : global::System.Text.Json.Serial try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseStreamEvent).Name}"); - responseStream = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseStream = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -93,14 +78,11 @@ public override void Write( global::tryAGI.OpenAI.ResponsesServerEvent value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsResponseStream) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseStreamEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseStream!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseStream, typeof(global::tryAGI.OpenAI.ResponseStreamEvent), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStepStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStepStreamEvent.g.cs index a3e74fb4..57a891f6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStepStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStepStreamEvent.g.cs @@ -12,8 +12,7 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -70,9 +69,7 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant1).Name}"); - runStepStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStepStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -85,9 +82,7 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant2).Name}"); - runStepStreamEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStepStreamEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -100,9 +95,7 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant3).Name}"); - runStepStreamEventVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStepStreamEventVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -115,9 +108,7 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant4).Name}"); - runStepStreamEventVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStepStreamEventVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -130,9 +121,7 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant5).Name}"); - runStepStreamEventVariant5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStepStreamEventVariant5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -145,9 +134,7 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant6).Name}"); - runStepStreamEventVariant6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStepStreamEventVariant6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -160,9 +147,7 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant7).Name}"); - runStepStreamEventVariant7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStepStreamEventVariant7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -177,9 +162,7 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant1).Name}"); - runStepStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStepStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -190,9 +173,7 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant2).Name}"); - runStepStreamEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStepStreamEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -203,9 +184,7 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant3).Name}"); - runStepStreamEventVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStepStreamEventVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -216,9 +195,7 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant4).Name}"); - runStepStreamEventVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStepStreamEventVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -229,9 +206,7 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant5).Name}"); - runStepStreamEventVariant5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStepStreamEventVariant5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -242,9 +217,7 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant6).Name}"); - runStepStreamEventVariant6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStepStreamEventVariant6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -255,9 +228,7 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant7).Name}"); - runStepStreamEventVariant7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStepStreamEventVariant7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -292,50 +263,35 @@ public override void Write( global::tryAGI.OpenAI.RunStepStreamEvent value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsRunStepStreamEventVariant1) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepStreamEventVariant1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepStreamEventVariant1, typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant1), options); } else if (value.IsRunStepStreamEventVariant2) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepStreamEventVariant2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepStreamEventVariant2, typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant2), options); } else if (value.IsRunStepStreamEventVariant3) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepStreamEventVariant3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepStreamEventVariant3, typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant3), options); } else if (value.IsRunStepStreamEventVariant4) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant4).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepStreamEventVariant4!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepStreamEventVariant4, typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant4), options); } else if (value.IsRunStepStreamEventVariant5) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant5).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepStreamEventVariant5!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepStreamEventVariant5, typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant5), options); } else if (value.IsRunStepStreamEventVariant6) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant6).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepStreamEventVariant6!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepStreamEventVariant6, typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant6), options); } else if (value.IsRunStepStreamEventVariant7) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant7).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepStreamEventVariant7!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepStreamEventVariant7, typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant7), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStreamEvent.g.cs index b809d934..28159dea 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStreamEvent.g.cs @@ -12,8 +12,7 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -85,9 +84,7 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant1).Name}"); - runStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -100,9 +97,7 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant2).Name}"); - runStreamEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStreamEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -115,9 +110,7 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant3).Name}"); - runStreamEventVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStreamEventVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -130,9 +123,7 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant4).Name}"); - runStreamEventVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStreamEventVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -145,9 +136,7 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant5).Name}"); - runStreamEventVariant5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStreamEventVariant5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -160,9 +149,7 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant6).Name}"); - runStreamEventVariant6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStreamEventVariant6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -175,9 +162,7 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant7).Name}"); - runStreamEventVariant7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStreamEventVariant7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -190,9 +175,7 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant8).Name}"); - runStreamEventVariant8 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStreamEventVariant8 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -205,9 +188,7 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant9).Name}"); - runStreamEventVariant9 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStreamEventVariant9 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -220,9 +201,7 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant10), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant10).Name}"); - runStreamEventVariant10 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStreamEventVariant10 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -237,9 +216,7 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant1).Name}"); - runStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -250,9 +227,7 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant2).Name}"); - runStreamEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStreamEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -263,9 +238,7 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant3).Name}"); - runStreamEventVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStreamEventVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -276,9 +249,7 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant4).Name}"); - runStreamEventVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStreamEventVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -289,9 +260,7 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant5).Name}"); - runStreamEventVariant5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStreamEventVariant5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -302,9 +271,7 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant6).Name}"); - runStreamEventVariant6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStreamEventVariant6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -315,9 +282,7 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant7).Name}"); - runStreamEventVariant7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStreamEventVariant7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -328,9 +293,7 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant8).Name}"); - runStreamEventVariant8 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStreamEventVariant8 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -341,9 +304,7 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant9).Name}"); - runStreamEventVariant9 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStreamEventVariant9 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -354,9 +315,7 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant10), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant10).Name}"); - runStreamEventVariant10 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStreamEventVariant10 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -397,68 +356,47 @@ public override void Write( global::tryAGI.OpenAI.RunStreamEvent value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsRunStreamEventVariant1) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant1, typeof(global::tryAGI.OpenAI.RunStreamEventVariant1), options); } else if (value.IsRunStreamEventVariant2) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant2, typeof(global::tryAGI.OpenAI.RunStreamEventVariant2), options); } else if (value.IsRunStreamEventVariant3) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant3, typeof(global::tryAGI.OpenAI.RunStreamEventVariant3), options); } else if (value.IsRunStreamEventVariant4) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant4).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant4!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant4, typeof(global::tryAGI.OpenAI.RunStreamEventVariant4), options); } else if (value.IsRunStreamEventVariant5) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant5).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant5!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant5, typeof(global::tryAGI.OpenAI.RunStreamEventVariant5), options); } else if (value.IsRunStreamEventVariant6) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant6).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant6!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant6, typeof(global::tryAGI.OpenAI.RunStreamEventVariant6), options); } else if (value.IsRunStreamEventVariant7) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant7).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant7!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant7, typeof(global::tryAGI.OpenAI.RunStreamEventVariant7), options); } else if (value.IsRunStreamEventVariant8) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant8).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant8!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant8, typeof(global::tryAGI.OpenAI.RunStreamEventVariant8), options); } else if (value.IsRunStreamEventVariant9) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant9).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant9!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant9, typeof(global::tryAGI.OpenAI.RunStreamEventVariant9), options); } else if (value.IsRunStreamEventVariant10) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant10), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant10).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant10!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant10, typeof(global::tryAGI.OpenAI.RunStreamEventVariant10), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Session2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Session2.g.cs index a5a8c626..cde2f6ec 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Session2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Session2.g.cs @@ -12,8 +12,7 @@ public class Session2JsonConverter : global::System.Text.Json.Serialization.Json global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -60,9 +59,7 @@ public class Session2JsonConverter : global::System.Text.Json.Serialization.Json { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGA), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGA).Name}"); - realtime = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + realtime = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -75,9 +72,7 @@ public class Session2JsonConverter : global::System.Text.Json.Serialization.Json { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGA), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGA).Name}"); - transcription = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + transcription = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -92,9 +87,7 @@ public class Session2JsonConverter : global::System.Text.Json.Serialization.Json { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGA), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGA).Name}"); - realtime = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + realtime = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -105,9 +98,7 @@ public class Session2JsonConverter : global::System.Text.Json.Serialization.Json try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGA), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGA).Name}"); - transcription = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + transcription = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -132,20 +123,15 @@ public override void Write( global::tryAGI.OpenAI.Session2 value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsRealtime) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGA), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGA).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Realtime!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Realtime, typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGA), options); } else if (value.IsTranscription) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGA), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGA).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Transcription!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Transcription, typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGA), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SkillsItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SkillsItem.g.cs index 629708d1..afa34336 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SkillsItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SkillsItem.g.cs @@ -12,8 +12,7 @@ public class SkillsItemJsonConverter : global::System.Text.Json.Serialization.Js global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -48,9 +47,7 @@ public class SkillsItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SkillReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SkillReferenceParam).Name}"); - skillReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + skillReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -63,9 +60,7 @@ public class SkillsItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InlineSkillParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InlineSkillParam).Name}"); - inline = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inline = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -80,9 +75,7 @@ public class SkillsItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SkillReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SkillReferenceParam).Name}"); - skillReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + skillReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -93,9 +86,7 @@ public class SkillsItemJsonConverter : global::System.Text.Json.Serialization.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InlineSkillParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InlineSkillParam).Name}"); - inline = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inline = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -120,20 +111,15 @@ public override void Write( global::tryAGI.OpenAI.SkillsItem value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsSkillReference) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SkillReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SkillReferenceParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SkillReference!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SkillReference, typeof(global::tryAGI.OpenAI.SkillReferenceParam), options); } else if (value.IsInline) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InlineSkillParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InlineSkillParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Inline!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Inline, typeof(global::tryAGI.OpenAI.InlineSkillParam), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SkillsItem2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SkillsItem2.g.cs index e061ddde..1d0122fd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SkillsItem2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SkillsItem2.g.cs @@ -12,8 +12,7 @@ public class SkillsItem2JsonConverter : global::System.Text.Json.Serialization.J global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -48,9 +47,7 @@ public class SkillsItem2JsonConverter : global::System.Text.Json.Serialization.J { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SkillReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SkillReferenceParam).Name}"); - skillReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + skillReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -63,9 +60,7 @@ public class SkillsItem2JsonConverter : global::System.Text.Json.Serialization.J { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InlineSkillParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InlineSkillParam).Name}"); - inline = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inline = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -80,9 +75,7 @@ public class SkillsItem2JsonConverter : global::System.Text.Json.Serialization.J { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SkillReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SkillReferenceParam).Name}"); - skillReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + skillReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -93,9 +86,7 @@ public class SkillsItem2JsonConverter : global::System.Text.Json.Serialization.J try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InlineSkillParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InlineSkillParam).Name}"); - inline = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inline = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -120,20 +111,15 @@ public override void Write( global::tryAGI.OpenAI.SkillsItem2 value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsSkillReference) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SkillReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SkillReferenceParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SkillReference!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SkillReference, typeof(global::tryAGI.OpenAI.SkillReferenceParam), options); } else if (value.IsInline) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InlineSkillParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InlineSkillParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Inline!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Inline, typeof(global::tryAGI.OpenAI.InlineSkillParam), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Status.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Status.g.cs index f930d0f0..f1253cdb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Status.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Status.g.cs @@ -12,8 +12,7 @@ public class StatusJsonConverter : global::System.Text.Json.Serialization.JsonCo global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -49,9 +48,7 @@ public class StatusJsonConverter : global::System.Text.Json.Serialization.JsonCo { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ActiveStatus), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ActiveStatus).Name}"); - active = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + active = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -64,9 +61,7 @@ public class StatusJsonConverter : global::System.Text.Json.Serialization.JsonCo { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LockedStatus), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LockedStatus).Name}"); - locked = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + locked = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -79,9 +74,7 @@ public class StatusJsonConverter : global::System.Text.Json.Serialization.JsonCo { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ClosedStatus), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ClosedStatus).Name}"); - closed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + closed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -96,9 +89,7 @@ public class StatusJsonConverter : global::System.Text.Json.Serialization.JsonCo { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ActiveStatus), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ActiveStatus).Name}"); - active = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + active = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -109,9 +100,7 @@ public class StatusJsonConverter : global::System.Text.Json.Serialization.JsonCo try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LockedStatus), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LockedStatus).Name}"); - locked = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + locked = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -122,9 +111,7 @@ public class StatusJsonConverter : global::System.Text.Json.Serialization.JsonCo try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ClosedStatus), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ClosedStatus).Name}"); - closed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + closed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -151,26 +138,19 @@ public override void Write( global::tryAGI.OpenAI.Status value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsActive) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ActiveStatus), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ActiveStatus).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Active!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Active, typeof(global::tryAGI.OpenAI.ActiveStatus), options); } else if (value.IsLocked) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LockedStatus), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LockedStatus).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Locked!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Locked, typeof(global::tryAGI.OpenAI.LockedStatus), options); } else if (value.IsClosed) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ClosedStatus), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ClosedStatus).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Closed!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Closed, typeof(global::tryAGI.OpenAI.ClosedStatus), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.StopConfiguration.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.StopConfiguration.g.cs index 2332d73b..a2fdcff5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.StopConfiguration.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.StopConfiguration.g.cs @@ -12,8 +12,7 @@ public class StopConfigurationJsonConverter : global::System.Text.Json.Serializa global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); @@ -28,27 +27,7 @@ public class StopConfigurationJsonConverter : global::System.Text.Json.Serializa } var __score0 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score0++; - } - } - } var __score1 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score1++; - } - } - } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -63,9 +42,7 @@ public class StopConfigurationJsonConverter : global::System.Text.Json.Serializa try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - stopConfigurationVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + stopConfigurationVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -80,9 +57,7 @@ public class StopConfigurationJsonConverter : global::System.Text.Json.Serializa try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); - stopConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + stopConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize>(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -98,9 +73,7 @@ public class StopConfigurationJsonConverter : global::System.Text.Json.Serializa try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - stopConfigurationVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + stopConfigurationVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -112,9 +85,7 @@ public class StopConfigurationJsonConverter : global::System.Text.Json.Serializa try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); - stopConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + stopConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize>(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -139,20 +110,15 @@ public override void Write( global::tryAGI.OpenAI.StopConfiguration value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsStopConfigurationVariant1) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.StopConfigurationVariant1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.StopConfigurationVariant1, typeof(string), options); } else if (value.IsStopConfigurationVariant2) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo?> ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.StopConfigurationVariant2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.StopConfigurationVariant2, typeof(global::System.Collections.Generic.IList), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TextResponseFormatConfiguration.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TextResponseFormatConfiguration.g.cs index ea12e7e5..bec5465b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TextResponseFormatConfiguration.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TextResponseFormatConfiguration.g.cs @@ -12,8 +12,7 @@ public class TextResponseFormatConfigurationJsonConverter : global::System.Text. global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -51,9 +50,7 @@ public class TextResponseFormatConfigurationJsonConverter : global::System.Text. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatText).Name}"); - text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -66,9 +63,7 @@ public class TextResponseFormatConfigurationJsonConverter : global::System.Text. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TextResponseFormatJsonSchema), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TextResponseFormatJsonSchema).Name}"); - jsonSchema = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + jsonSchema = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -81,9 +76,7 @@ public class TextResponseFormatConfigurationJsonConverter : global::System.Text. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject).Name}"); - jsonObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + jsonObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -98,9 +91,7 @@ public class TextResponseFormatConfigurationJsonConverter : global::System.Text. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatText).Name}"); - text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -111,9 +102,7 @@ public class TextResponseFormatConfigurationJsonConverter : global::System.Text. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TextResponseFormatJsonSchema), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TextResponseFormatJsonSchema).Name}"); - jsonSchema = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + jsonSchema = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -124,9 +113,7 @@ public class TextResponseFormatConfigurationJsonConverter : global::System.Text. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject).Name}"); - jsonObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + jsonObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -153,26 +140,19 @@ public override void Write( global::tryAGI.OpenAI.TextResponseFormatConfiguration value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsText) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatText).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text, typeof(global::tryAGI.OpenAI.ResponseFormatText), options); } else if (value.IsJsonSchema) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TextResponseFormatJsonSchema), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TextResponseFormatJsonSchema).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.JsonSchema!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.JsonSchema, typeof(global::tryAGI.OpenAI.TextResponseFormatJsonSchema), options); } else if (value.IsJsonObject) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.JsonObject!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.JsonObject, typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ThreadItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ThreadItem.g.cs index f4b3f11f..d86e6d42 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ThreadItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ThreadItem.g.cs @@ -12,8 +12,7 @@ public class ThreadItemJsonConverter : global::System.Text.Json.Serialization.Js global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -97,9 +96,7 @@ public class ThreadItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UserMessageItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UserMessageItem).Name}"); - chatkitUserMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + chatkitUserMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -112,9 +109,7 @@ public class ThreadItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantMessageItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantMessageItem).Name}"); - chatkitAssistantMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + chatkitAssistantMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -127,9 +122,7 @@ public class ThreadItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WidgetMessageItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WidgetMessageItem).Name}"); - chatkitWidget = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + chatkitWidget = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -142,9 +135,7 @@ public class ThreadItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ClientToolCallItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ClientToolCallItem).Name}"); - chatkitClientToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + chatkitClientToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -157,9 +148,7 @@ public class ThreadItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TaskItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TaskItem).Name}"); - chatkitTask = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + chatkitTask = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -172,9 +161,7 @@ public class ThreadItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TaskGroupItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TaskGroupItem).Name}"); - chatkitTaskGroup = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + chatkitTaskGroup = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -189,9 +176,7 @@ public class ThreadItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UserMessageItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UserMessageItem).Name}"); - chatkitUserMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + chatkitUserMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -202,9 +187,7 @@ public class ThreadItemJsonConverter : global::System.Text.Json.Serialization.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantMessageItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantMessageItem).Name}"); - chatkitAssistantMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + chatkitAssistantMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -215,9 +198,7 @@ public class ThreadItemJsonConverter : global::System.Text.Json.Serialization.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WidgetMessageItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WidgetMessageItem).Name}"); - chatkitWidget = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + chatkitWidget = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -228,9 +209,7 @@ public class ThreadItemJsonConverter : global::System.Text.Json.Serialization.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ClientToolCallItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ClientToolCallItem).Name}"); - chatkitClientToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + chatkitClientToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -241,9 +220,7 @@ public class ThreadItemJsonConverter : global::System.Text.Json.Serialization.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TaskItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TaskItem).Name}"); - chatkitTask = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + chatkitTask = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -254,9 +231,7 @@ public class ThreadItemJsonConverter : global::System.Text.Json.Serialization.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TaskGroupItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TaskGroupItem).Name}"); - chatkitTaskGroup = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + chatkitTaskGroup = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -289,44 +264,31 @@ public override void Write( global::tryAGI.OpenAI.ThreadItem value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsChatkitUserMessage) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UserMessageItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UserMessageItem).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChatkitUserMessage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChatkitUserMessage, typeof(global::tryAGI.OpenAI.UserMessageItem), options); } else if (value.IsChatkitAssistantMessage) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantMessageItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantMessageItem).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChatkitAssistantMessage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChatkitAssistantMessage, typeof(global::tryAGI.OpenAI.AssistantMessageItem), options); } else if (value.IsChatkitWidget) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WidgetMessageItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WidgetMessageItem).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChatkitWidget!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChatkitWidget, typeof(global::tryAGI.OpenAI.WidgetMessageItem), options); } else if (value.IsChatkitClientToolCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ClientToolCallItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ClientToolCallItem).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChatkitClientToolCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChatkitClientToolCall, typeof(global::tryAGI.OpenAI.ClientToolCallItem), options); } else if (value.IsChatkitTask) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TaskItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TaskItem).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChatkitTask!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChatkitTask, typeof(global::tryAGI.OpenAI.TaskItem), options); } else if (value.IsChatkitTaskGroup) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TaskGroupItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TaskGroupItem).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChatkitTaskGroup!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChatkitTaskGroup, typeof(global::tryAGI.OpenAI.TaskGroupItem), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ThreadStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ThreadStreamEvent.g.cs index be6a5645..409ad6b0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ThreadStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ThreadStreamEvent.g.cs @@ -12,8 +12,7 @@ public class ThreadStreamEventJsonConverter : global::System.Text.Json.Serializa global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -41,9 +40,7 @@ public class ThreadStreamEventJsonConverter : global::System.Text.Json.Serializa { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ThreadStreamEventVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ThreadStreamEventVariant1).Name}"); - threadStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + threadStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -58,9 +55,7 @@ public class ThreadStreamEventJsonConverter : global::System.Text.Json.Serializa { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ThreadStreamEventVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ThreadStreamEventVariant1).Name}"); - threadStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + threadStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -83,14 +78,11 @@ public override void Write( global::tryAGI.OpenAI.ThreadStreamEvent value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsThreadStreamEventVariant1) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ThreadStreamEventVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ThreadStreamEventVariant1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ThreadStreamEventVariant1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ThreadStreamEventVariant1, typeof(global::tryAGI.OpenAI.ThreadStreamEventVariant1), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Tool.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Tool.g.cs index 160e74a6..ee8b93c6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Tool.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Tool.g.cs @@ -12,8 +12,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -145,9 +144,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionTool).Name}"); - function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -160,9 +157,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchTool).Name}"); - fileSearch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + fileSearch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -175,9 +170,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerTool).Name}"); - computer = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + computer = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -190,9 +183,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerUsePreviewTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerUsePreviewTool).Name}"); - computerUsePreview = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + computerUsePreview = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -205,9 +196,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchTool).Name}"); - webSearch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + webSearch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -220,9 +209,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPTool).Name}"); - mcp = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcp = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -235,9 +222,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterTool).Name}"); - codeInterpreter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + codeInterpreter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -250,9 +235,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenTool).Name}"); - imageGeneration = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + imageGeneration = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -265,9 +248,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolParam).Name}"); - localShell = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + localShell = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -280,9 +261,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellToolParam).Name}"); - shell = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + shell = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -295,9 +274,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolParam).Name}"); - custom = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + custom = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -310,9 +287,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.NamespaceToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.NamespaceToolParam).Name}"); - @namespace = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @namespace = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -325,9 +300,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchToolParam).Name}"); - toolSearch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + toolSearch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -340,9 +313,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchPreviewTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchPreviewTool).Name}"); - webSearchPreview = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + webSearchPreview = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -355,9 +326,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolParam).Name}"); - applyPatch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + applyPatch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -372,9 +341,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionTool).Name}"); - function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -385,9 +352,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchTool).Name}"); - fileSearch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + fileSearch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -398,9 +363,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerTool).Name}"); - computer = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + computer = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -411,9 +374,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerUsePreviewTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerUsePreviewTool).Name}"); - computerUsePreview = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + computerUsePreview = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -424,9 +385,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchTool).Name}"); - webSearch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + webSearch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -437,9 +396,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPTool).Name}"); - mcp = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcp = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -450,9 +407,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterTool).Name}"); - codeInterpreter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + codeInterpreter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -463,9 +418,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenTool).Name}"); - imageGeneration = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + imageGeneration = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -476,9 +429,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolParam).Name}"); - localShell = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + localShell = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -489,9 +440,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellToolParam).Name}"); - shell = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + shell = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -502,9 +451,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolParam).Name}"); - custom = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + custom = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -515,9 +462,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.NamespaceToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.NamespaceToolParam).Name}"); - @namespace = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @namespace = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -528,9 +473,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchToolParam).Name}"); - toolSearch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + toolSearch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -541,9 +484,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchPreviewTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchPreviewTool).Name}"); - webSearchPreview = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + webSearchPreview = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -554,9 +495,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolParam).Name}"); - applyPatch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + applyPatch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -607,98 +546,67 @@ public override void Write( global::tryAGI.OpenAI.Tool value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsFunction) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function, typeof(global::tryAGI.OpenAI.FunctionTool), options); } else if (value.IsFileSearch) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearch!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearch, typeof(global::tryAGI.OpenAI.FileSearchTool), options); } else if (value.IsComputer) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Computer!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Computer, typeof(global::tryAGI.OpenAI.ComputerTool), options); } else if (value.IsComputerUsePreview) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerUsePreviewTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerUsePreviewTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerUsePreview!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerUsePreview, typeof(global::tryAGI.OpenAI.ComputerUsePreviewTool), options); } else if (value.IsWebSearch) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearch!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearch, typeof(global::tryAGI.OpenAI.WebSearchTool), options); } else if (value.IsMcp) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Mcp!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Mcp, typeof(global::tryAGI.OpenAI.MCPTool), options); } else if (value.IsCodeInterpreter) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreter!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreter, typeof(global::tryAGI.OpenAI.CodeInterpreterTool), options); } else if (value.IsImageGeneration) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGeneration!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGeneration, typeof(global::tryAGI.OpenAI.ImageGenTool), options); } else if (value.IsLocalShell) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShell!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShell, typeof(global::tryAGI.OpenAI.LocalShellToolParam), options); } else if (value.IsShell) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellToolParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Shell!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Shell, typeof(global::tryAGI.OpenAI.FunctionShellToolParam), options); } else if (value.IsCustom) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Custom!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Custom, typeof(global::tryAGI.OpenAI.CustomToolParam), options); } else if (value.IsNamespace) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.NamespaceToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.NamespaceToolParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Namespace!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Namespace, typeof(global::tryAGI.OpenAI.NamespaceToolParam), options); } else if (value.IsToolSearch) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchToolParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearch!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearch, typeof(global::tryAGI.OpenAI.ToolSearchToolParam), options); } else if (value.IsWebSearchPreview) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchPreviewTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchPreviewTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearchPreview!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearchPreview, typeof(global::tryAGI.OpenAI.WebSearchPreviewTool), options); } else if (value.IsApplyPatch) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatch!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatch, typeof(global::tryAGI.OpenAI.ApplyPatchToolParam), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolChoiceParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolChoiceParam.g.cs index 1ee1ad31..33028ebb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolChoiceParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolChoiceParam.g.cs @@ -12,8 +12,7 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -72,9 +71,7 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceOptions), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceOptions).Name}"); - toolChoiceMode = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + toolChoiceMode = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -87,9 +84,7 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceAllowed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceAllowed).Name}"); - allowedTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + allowedTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -102,9 +97,7 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceTypes), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceTypes).Name}"); - hostedTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + hostedTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -117,9 +110,7 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceFunction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceFunction).Name}"); - functionTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -132,9 +123,7 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceMCP), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceMCP).Name}"); - mcpTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -147,9 +136,7 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceCustom), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceCustom).Name}"); - customTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + customTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -162,9 +149,7 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpecificApplyPatchParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpecificApplyPatchParam).Name}"); - specificApplyPatchToolChoice = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + specificApplyPatchToolChoice = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -177,9 +162,7 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpecificFunctionShellParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpecificFunctionShellParam).Name}"); - specificShellToolChoice = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + specificShellToolChoice = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -194,9 +177,7 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceOptions), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceOptions).Name}"); - toolChoiceMode = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + toolChoiceMode = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -207,9 +188,7 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceAllowed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceAllowed).Name}"); - allowedTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + allowedTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -220,9 +199,7 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceTypes), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceTypes).Name}"); - hostedTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + hostedTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -233,9 +210,7 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceFunction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceFunction).Name}"); - functionTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -246,9 +221,7 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceMCP), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceMCP).Name}"); - mcpTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcpTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -259,9 +232,7 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceCustom), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceCustom).Name}"); - customTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + customTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -272,9 +243,7 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpecificApplyPatchParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpecificApplyPatchParam).Name}"); - specificApplyPatchToolChoice = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + specificApplyPatchToolChoice = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -285,9 +254,7 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpecificFunctionShellParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpecificFunctionShellParam).Name}"); - specificShellToolChoice = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + specificShellToolChoice = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -324,56 +291,39 @@ public override void Write( global::tryAGI.OpenAI.ToolChoiceParam value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsToolChoiceMode) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceOptions), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceOptions).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolChoiceMode!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolChoiceMode, typeof(global::tryAGI.OpenAI.ToolChoiceOptions), options); } else if (value.IsAllowedTools) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceAllowed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceAllowed).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AllowedTools!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AllowedTools, typeof(global::tryAGI.OpenAI.ToolChoiceAllowed), options); } else if (value.IsHostedTool) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceTypes), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceTypes).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.HostedTool!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.HostedTool, typeof(global::tryAGI.OpenAI.ToolChoiceTypes), options); } else if (value.IsFunctionTool) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceFunction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceFunction).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionTool!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionTool, typeof(global::tryAGI.OpenAI.ToolChoiceFunction), options); } else if (value.IsMcpTool) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceMCP), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceMCP).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpTool!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpTool, typeof(global::tryAGI.OpenAI.ToolChoiceMCP), options); } else if (value.IsCustomTool) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceCustom), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceCustom).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomTool!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomTool, typeof(global::tryAGI.OpenAI.ToolChoiceCustom), options); } else if (value.IsSpecificApplyPatchToolChoice) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpecificApplyPatchParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpecificApplyPatchParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SpecificApplyPatchToolChoice!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SpecificApplyPatchToolChoice, typeof(global::tryAGI.OpenAI.SpecificApplyPatchParam), options); } else if (value.IsSpecificShellToolChoice) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpecificFunctionShellParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpecificFunctionShellParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SpecificShellToolChoice!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SpecificShellToolChoice, typeof(global::tryAGI.OpenAI.SpecificFunctionShellParam), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem13.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem13.g.cs index 04361d86..b046f290 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem13.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem13.g.cs @@ -12,8 +12,7 @@ public class ToolsItem13JsonConverter : global::System.Text.Json.Serialization.J global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -52,9 +51,7 @@ public class ToolsItem13JsonConverter : global::System.Text.Json.Serialization.J { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolParam).Name}"); - function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -67,9 +64,7 @@ public class ToolsItem13JsonConverter : global::System.Text.Json.Serialization.J { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolParam).Name}"); - custom = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + custom = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -84,9 +79,7 @@ public class ToolsItem13JsonConverter : global::System.Text.Json.Serialization.J { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolParam).Name}"); - function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -97,9 +90,7 @@ public class ToolsItem13JsonConverter : global::System.Text.Json.Serialization.J try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolParam).Name}"); - custom = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + custom = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -124,20 +115,15 @@ public override void Write( global::tryAGI.OpenAI.ToolsItem13 value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsFunction) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function, typeof(global::tryAGI.OpenAI.FunctionToolParam), options); } else if (value.IsCustom) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Custom!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Custom, typeof(global::tryAGI.OpenAI.CustomToolParam), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TranscriptionChunkingStrategy.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TranscriptionChunkingStrategy.g.cs index 1b236842..106ab02b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TranscriptionChunkingStrategy.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TranscriptionChunkingStrategy.g.cs @@ -12,8 +12,7 @@ public class TranscriptionChunkingStrategyJsonConverter : global::System.Text.Js global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -45,9 +44,7 @@ public class TranscriptionChunkingStrategyJsonConverter : global::System.Text.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum).Name}"); - @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -60,9 +57,7 @@ public class TranscriptionChunkingStrategyJsonConverter : global::System.Text.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VadConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VadConfig).Name}"); - vadConfig = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + vadConfig = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -77,9 +72,7 @@ public class TranscriptionChunkingStrategyJsonConverter : global::System.Text.Js { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum).Name}"); - @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -90,9 +83,7 @@ public class TranscriptionChunkingStrategyJsonConverter : global::System.Text.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VadConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VadConfig).Name}"); - vadConfig = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + vadConfig = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -117,20 +108,15 @@ public override void Write( global::tryAGI.OpenAI.TranscriptionChunkingStrategy value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsEnum) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum, typeof(global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum), options); } else if (value.IsVadConfig) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VadConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VadConfig).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.VadConfig!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.VadConfig, typeof(global::tryAGI.OpenAI.VadConfig), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VideoModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VideoModel.g.cs index 27aac2ee..64f5a23e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VideoModel.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VideoModel.g.cs @@ -12,8 +12,7 @@ public class VideoModelJsonConverter : global::System.Text.Json.Serialization.Js global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); @@ -28,27 +27,7 @@ public class VideoModelJsonConverter : global::System.Text.Json.Serialization.Js } var __score0 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score0++; - } - } - } var __score1 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VideoModelEnum), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score1++; - } - } - } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -63,9 +42,7 @@ public class VideoModelJsonConverter : global::System.Text.Json.Serialization.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - videoModelVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + videoModelVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -80,9 +57,7 @@ public class VideoModelJsonConverter : global::System.Text.Json.Serialization.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VideoModelEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VideoModelEnum).Name}"); - @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -98,9 +73,7 @@ public class VideoModelJsonConverter : global::System.Text.Json.Serialization.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - videoModelVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + videoModelVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -112,9 +85,7 @@ public class VideoModelJsonConverter : global::System.Text.Json.Serialization.Js try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VideoModelEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VideoModelEnum).Name}"); - @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -139,20 +110,15 @@ public override void Write( global::tryAGI.OpenAI.VideoModel value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsVideoModelVariant1) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.VideoModelVariant1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.VideoModelVariant1, typeof(string), options); } else if (value.IsEnum) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VideoModelEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VideoModelEnum).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum, typeof(global::tryAGI.OpenAI.VideoModelEnum), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VoiceIdsOrCustomVoice.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VoiceIdsOrCustomVoice.g.cs index 8ee9de8b..a807c6b0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VoiceIdsOrCustomVoice.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VoiceIdsOrCustomVoice.g.cs @@ -12,8 +12,7 @@ public class VoiceIdsOrCustomVoiceJsonConverter : global::System.Text.Json.Seria global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -42,9 +41,7 @@ public class VoiceIdsOrCustomVoiceJsonConverter : global::System.Text.Json.Seria { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VoiceIdsShared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VoiceIdsShared).Name}"); - shared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + shared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -57,9 +54,7 @@ public class VoiceIdsOrCustomVoiceJsonConverter : global::System.Text.Json.Seria { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2).Name}"); - voiceIdsOrCustomVoiceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + voiceIdsOrCustomVoiceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -74,9 +69,7 @@ public class VoiceIdsOrCustomVoiceJsonConverter : global::System.Text.Json.Seria { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VoiceIdsShared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VoiceIdsShared).Name}"); - shared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + shared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -87,9 +80,7 @@ public class VoiceIdsOrCustomVoiceJsonConverter : global::System.Text.Json.Seria try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2).Name}"); - voiceIdsOrCustomVoiceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + voiceIdsOrCustomVoiceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -114,20 +105,15 @@ public override void Write( global::tryAGI.OpenAI.VoiceIdsOrCustomVoice value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsShared) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VoiceIdsShared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VoiceIdsShared).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Shared!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Shared, typeof(global::tryAGI.OpenAI.VoiceIdsShared), options); } else if (value.IsVoiceIdsOrCustomVoiceVariant2) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.VoiceIdsOrCustomVoiceVariant2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.VoiceIdsOrCustomVoiceVariant2, typeof(global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VoiceIdsShared.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VoiceIdsShared.g.cs index 387edda7..9c0a22d8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VoiceIdsShared.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VoiceIdsShared.g.cs @@ -12,8 +12,7 @@ public class VoiceIdsSharedJsonConverter : global::System.Text.Json.Serializatio global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); @@ -28,27 +27,7 @@ public class VoiceIdsSharedJsonConverter : global::System.Text.Json.Serializatio } var __score0 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score0++; - } - } - } var __score1 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VoiceIdsSharedEnum), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score1++; - } - } - } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -63,9 +42,7 @@ public class VoiceIdsSharedJsonConverter : global::System.Text.Json.Serializatio try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - voiceIdsSharedVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + voiceIdsSharedVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -80,9 +57,7 @@ public class VoiceIdsSharedJsonConverter : global::System.Text.Json.Serializatio try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VoiceIdsSharedEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VoiceIdsSharedEnum).Name}"); - @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -98,9 +73,7 @@ public class VoiceIdsSharedJsonConverter : global::System.Text.Json.Serializatio try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - voiceIdsSharedVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + voiceIdsSharedVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -112,9 +85,7 @@ public class VoiceIdsSharedJsonConverter : global::System.Text.Json.Serializatio try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VoiceIdsSharedEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VoiceIdsSharedEnum).Name}"); - @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -139,20 +110,15 @@ public override void Write( global::tryAGI.OpenAI.VoiceIdsShared value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsVoiceIdsSharedVariant1) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.VoiceIdsSharedVariant1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.VoiceIdsSharedVariant1, typeof(string), options); } else if (value.IsEnum) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VoiceIdsSharedEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VoiceIdsSharedEnum).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum, typeof(global::tryAGI.OpenAI.VoiceIdsSharedEnum), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.WebSearchToolCallAction.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.WebSearchToolCallAction.g.cs index 52595160..f31e8ce0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.WebSearchToolCallAction.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.WebSearchToolCallAction.g.cs @@ -12,8 +12,7 @@ public class WebSearchToolCallActionJsonConverter : global::System.Text.Json.Ser global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -53,9 +52,7 @@ public class WebSearchToolCallActionJsonConverter : global::System.Text.Json.Ser { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchActionSearch), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchActionSearch).Name}"); - search = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + search = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -68,9 +65,7 @@ public class WebSearchToolCallActionJsonConverter : global::System.Text.Json.Ser { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchActionOpenPage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchActionOpenPage).Name}"); - openPage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + openPage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -83,9 +78,7 @@ public class WebSearchToolCallActionJsonConverter : global::System.Text.Json.Ser { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchActionFind), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchActionFind).Name}"); - findInPage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + findInPage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -100,9 +93,7 @@ public class WebSearchToolCallActionJsonConverter : global::System.Text.Json.Ser { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchActionSearch), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchActionSearch).Name}"); - search = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + search = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -113,9 +104,7 @@ public class WebSearchToolCallActionJsonConverter : global::System.Text.Json.Ser try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchActionOpenPage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchActionOpenPage).Name}"); - openPage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + openPage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -126,9 +115,7 @@ public class WebSearchToolCallActionJsonConverter : global::System.Text.Json.Ser try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchActionFind), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchActionFind).Name}"); - findInPage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + findInPage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -155,26 +142,19 @@ public override void Write( global::tryAGI.OpenAI.WebSearchToolCallAction value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsSearch) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchActionSearch), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchActionSearch).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Search!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Search, typeof(global::tryAGI.OpenAI.WebSearchActionSearch), options); } else if (value.IsOpenPage) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchActionOpenPage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchActionOpenPage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenPage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenPage, typeof(global::tryAGI.OpenAI.WebSearchActionOpenPage), options); } else if (value.IsFindInPage) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchActionFind), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchActionFind).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FindInPage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FindInPage, typeof(global::tryAGI.OpenAI.WebSearchActionFind), options); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContext.g.cs deleted file mode 100644 index 4dcd9d02..00000000 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContext.g.cs +++ /dev/null @@ -1,7693 +0,0 @@ - -#nullable enable - -#pragma warning disable CS0618 // Type or member is obsolete -#pragma warning disable CS3016 // Arrays as attribute arguments is not CLS-compliant - -namespace tryAGI.OpenAI -{ - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - typeof(global::tryAGI.OpenAI.JsonConverters.AssistantObjectObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AssistantObjectObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AssistantSupportedModelsJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AssistantSupportedModelsNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AssistantToolsCodeTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AssistantToolsCodeTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AssistantToolsFileSearchTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AssistantToolsFileSearchTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AssistantToolsFileSearchTypeOnlyTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AssistantToolsFileSearchTypeOnlyTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AssistantToolsFunctionTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AssistantToolsFunctionTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AssistantsApiResponseFormatOptionEnumJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AssistantsApiResponseFormatOptionEnumNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AssistantsApiToolChoiceOptionEnumJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AssistantsApiToolChoiceOptionEnumNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AssistantsNamedToolChoiceTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AssistantsNamedToolChoiceTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AudioResponseFormatJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AudioResponseFormatNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AudioTranscriptionModelJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AudioTranscriptionModelNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AuditLogActorTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AuditLogActorTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AuditLogActorApiKeyTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AuditLogActorApiKeyTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AuditLogEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AuditLogEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AutoChunkingStrategyRequestParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AutoChunkingStrategyRequestParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.BatchObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.BatchObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.BatchStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.BatchStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.BatchFileExpirationAfterAnchorJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.BatchFileExpirationAfterAnchorNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CertificateObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CertificateObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionAllowedToolsModeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionAllowedToolsModeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionAllowedToolsChoiceTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionAllowedToolsChoiceTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionDeletedObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionDeletedObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionListObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionListObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageCustomToolCallTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageCustomToolCallTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageListObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageListObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallChunkTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallChunkTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionModalitiesVariant1ItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionModalitiesVariant1ItemNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionNamedToolChoiceTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionNamedToolChoiceTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionNamedToolChoiceCustomTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionNamedToolChoiceCustomTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageRoleJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageRoleNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestDeveloperMessageRoleJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestDeveloperMessageRoleNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestFunctionMessageRoleJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestFunctionMessageRoleNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartAudioTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartAudioTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartAudioInputAudioFormatJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartAudioInputAudioFormatNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartFileTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartFileTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartImageTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartImageTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartImageImageUrlDetailJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartImageImageUrlDetailNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartRefusalTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartRefusalTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartTextTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartTextTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestSystemMessageRoleJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestSystemMessageRoleNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestToolMessageRoleJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestToolMessageRoleNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestUserMessageRoleJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestUserMessageRoleNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionResponseMessageAnnotationTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionResponseMessageAnnotationTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionResponseMessageRoleJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionResponseMessageRoleNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRoleJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRoleNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionStreamResponseDeltaRoleJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionStreamResponseDeltaRoleNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionToolTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionToolTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionToolChoiceOptionEnumJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionToolChoiceOptionEnumNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterFileOutputTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterFileOutputTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterTextOutputTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterTextOutputTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ComparisonFilterTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ComparisonFilterTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CompoundFilterTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CompoundFilterTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ComputerScreenshotImageTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ComputerScreenshotImageTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ComputerToolCallTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ComputerToolCallTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ComputerToolCallStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ComputerToolCallStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ComputerToolCallOutputTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ComputerToolCallOutputTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ComputerToolCallOutputStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ComputerToolCallOutputStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ContainerFileListResourceObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ContainerFileListResourceObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ContainerListResourceObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ContainerListResourceObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ContainerResourceExpiresAfterAnchorJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ContainerResourceExpiresAfterAnchorNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ContainerResourceMemoryLimitJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ContainerResourceMemoryLimitNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ContainerResourceNetworkPolicyTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ContainerResourceNetworkPolicyTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ConversationItemListObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ConversationItemListObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CostsResultObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CostsResultObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocationTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocationTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2AudioFormatJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2AudioFormatNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2FunctionCallJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2FunctionCallNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionResponseChoiceFinishReasonJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionResponseChoiceFinishReasonNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionResponseObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionResponseObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionStreamResponseChoiceFinishReasonJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionStreamResponseChoiceFinishReasonNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionStreamResponseObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionStreamResponseObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateCompletionRequestModelJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateCompletionRequestModelNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateCompletionResponseChoiceFinishReasonJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateCompletionResponseChoiceFinishReasonNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateCompletionResponseObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateCompletionResponseObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyExpiresAfterAnchorJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyExpiresAfterAnchorNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyMemoryLimitJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyMemoryLimitNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateEmbeddingRequestModelJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateEmbeddingRequestModelNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateEmbeddingRequestEncodingFormatJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateEmbeddingRequestEncodingFormatNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateEmbeddingResponseObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateEmbeddingResponseObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalCompletionsRunDataSourceTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalCompletionsRunDataSourceTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalCompletionsRunDataSourceInputMessagesTemplateInputMessagesTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalCompletionsRunDataSourceInputMessagesTemplateInputMessagesTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessagesTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessagesTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalCustomDataSourceConfigTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalCustomDataSourceConfigTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalJsonlRunDataSourceTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalJsonlRunDataSourceTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalLabelModelGraderTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalLabelModelGraderTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalLogsDataSourceConfigTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalLogsDataSourceConfigTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalResponsesRunDataSourceTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalResponsesRunDataSourceTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesTemplateTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesTemplateTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReferenceTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReferenceTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalStoredCompletionsDataSourceConfigTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalStoredCompletionsDataSourceConfigTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateFileRequestPurposeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateFileRequestPurposeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestModelJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestModelNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestHyperparametersBatchSizeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestHyperparametersBatchSizeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestHyperparametersLearningRateMultiplierJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestHyperparametersLearningRateMultiplierNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestHyperparametersNEpochsJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestHyperparametersNEpochsNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestIntegrationTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestIntegrationTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestBackgroundJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestBackgroundNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestModelJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestModelNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestSizeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestSizeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestResponseFormatJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestResponseFormatNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestOutputFormatJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestOutputFormatNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestQualityJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestQualityNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageRequestModelJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageRequestModelNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageRequestQualityJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageRequestQualityNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageRequestResponseFormatJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageRequestResponseFormatNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageRequestOutputFormatJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageRequestOutputFormatNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageRequestSizeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageRequestSizeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageRequestModerationJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageRequestModerationNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageRequestBackgroundJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageRequestBackgroundNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageRequestStyleJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageRequestStyleNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageVariationRequestModelJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageVariationRequestModelNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageVariationRequestResponseFormatJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageVariationRequestResponseFormatNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageVariationRequestSizeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageVariationRequestSizeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateMessageRequestRoleJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateMessageRequestRoleNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationRequestInputVariant3ItemVariant1TypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationRequestInputVariant3ItemVariant1TypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationRequestInputVariant3ItemVariant2TypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationRequestInputVariant3ItemVariant2TypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationRequestModelJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationRequestModelNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHateItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHateItemNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItemNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItemNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItemNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItemNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItemNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItemNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItemNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstructionJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstructionNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSexualItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSexualItemNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinorJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinorNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItemNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItemNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestModelJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestModelNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestResponseFormatJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestResponseFormatNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestStreamFormatJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestStreamFormatNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateThreadAndRunRequestModelJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateThreadAndRunRequestModelNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionRequestModelJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionRequestModelNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionRequestTimestampGranularitieJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionRequestTimestampGranularitieNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionRequestChunkingStrategyVariant1JsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionRequestChunkingStrategyVariant1NullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonTaskJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonTaskNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranslationRequestModelJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranslationRequestModelNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranslationRequestResponseFormatJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranslationRequestResponseFormatNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateUploadRequestPurposeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateUploadRequestPurposeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolCallTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolCallTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolCallOutputTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolCallOutputTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsCustomFormatTextFormatTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsCustomFormatTextFormatTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsCustomFormatGrammarFormatTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsCustomFormatGrammarFormatTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsCustomFormatGrammarFormatGrammarSyntaxJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsCustomFormatGrammarFormatGrammarSyntaxNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.DeleteAssistantResponseObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.DeleteAssistantResponseObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.DeleteCertificateResponseObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.DeleteCertificateResponseObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.DeleteFileResponseObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.DeleteFileResponseObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.DeleteFineTuningCheckpointPermissionResponseObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.DeleteFineTuningCheckpointPermissionResponseObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.DeleteMessageResponseObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.DeleteMessageResponseObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.DeleteThreadResponseObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.DeleteThreadResponseObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.DeleteVectorStoreFileResponseObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.DeleteVectorStoreFileResponseObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.DeleteVectorStoreResponseObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.DeleteVectorStoreResponseObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.DoneEventEventJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.DoneEventEventNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.DoneEventDataJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.DoneEventDataNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EasyInputMessageRoleJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EasyInputMessageRoleNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EasyInputMessageTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EasyInputMessageTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamModelJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamModelNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamQuality2JsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamQuality2NullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamInputFidelity2JsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamInputFidelity2NullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamSize2JsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamSize2NullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamOutputFormat2JsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamOutputFormat2NullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamModeration2JsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamModeration2NullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamBackground2JsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamBackground2NullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EmbeddingObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EmbeddingObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ErrorEventEventJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ErrorEventEventNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EvalObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EvalObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EvalCustomDataSourceConfigTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EvalCustomDataSourceConfigTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EvalItemRoleJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EvalItemRoleNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EvalItemTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EvalItemTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EvalItemContentOutputTextTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EvalItemContentOutputTextTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EvalItemInputImageTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EvalItemInputImageTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EvalJsonlFileContentSourceTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EvalJsonlFileContentSourceTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EvalJsonlFileIdSourceTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EvalJsonlFileIdSourceTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EvalListObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EvalListObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EvalLogsDataSourceConfigTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EvalLogsDataSourceConfigTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EvalResponsesSourceTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EvalResponsesSourceTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EvalRunObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EvalRunObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EvalRunListObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EvalRunListObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EvalRunOutputItemObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EvalRunOutputItemObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EvalRunOutputItemListObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EvalRunOutputItemListObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EvalStoredCompletionsDataSourceConfigTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EvalStoredCompletionsDataSourceConfigTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EvalStoredCompletionsSourceTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EvalStoredCompletionsSourceTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FileExpirationAfterAnchorJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FileExpirationAfterAnchorNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FilePathTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FilePathTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FileSearchRankerJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FileSearchRankerNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FileSearchToolCallTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FileSearchToolCallTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FileSearchToolCallStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FileSearchToolCallStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneDPOHyperparametersBetaJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneDPOHyperparametersBetaNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneDPOHyperparametersBatchSizeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneDPOHyperparametersBatchSizeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneDPOHyperparametersLearningRateMultiplierJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneDPOHyperparametersLearningRateMultiplierNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneDPOHyperparametersNEpochsJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneDPOHyperparametersNEpochsNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneMethodTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneMethodTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersBatchSizeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersBatchSizeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersLearningRateMultiplierJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersLearningRateMultiplierNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersNEpochsJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersNEpochsNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersReasoningEffortJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersReasoningEffortNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersComputeMultiplierJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersComputeMultiplierNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersEvalIntervalJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersEvalIntervalNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersEvalSamplesJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersEvalSamplesNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneSupervisedHyperparametersBatchSizeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneSupervisedHyperparametersBatchSizeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneSupervisedHyperparametersLearningRateMultiplierJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneSupervisedHyperparametersLearningRateMultiplierNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneSupervisedHyperparametersNEpochsJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneSupervisedHyperparametersNEpochsNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningCheckpointPermissionObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningCheckpointPermissionObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningIntegrationTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningIntegrationTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobHyperparametersBatchSizeVariant1JsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobHyperparametersBatchSizeVariant1NullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobHyperparametersLearningRateMultiplierJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobHyperparametersLearningRateMultiplierNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobHyperparametersNEpochsJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobHyperparametersNEpochsNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobCheckpointObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobCheckpointObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobEventObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobEventObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobEventLevelJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobEventLevelNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolCallTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolCallTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolCallStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolCallStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolCallOutputTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolCallOutputTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolCallOutputStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolCallOutputStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GraderLabelModelTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GraderLabelModelTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GraderMultiTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GraderMultiTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GraderPythonTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GraderPythonTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GraderScoreModelTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GraderScoreModelTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GraderStringCheckTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GraderStringCheckTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GraderStringCheckOperationJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GraderStringCheckOperationNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GraderTextSimilarityTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GraderTextSimilarityTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GraderTextSimilarityEvaluationMetricJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GraderTextSimilarityEvaluationMetricNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GroupObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GroupObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GroupDeletedResourceObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GroupDeletedResourceObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GroupListResourceObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GroupListResourceObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GroupRoleAssignmentObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GroupRoleAssignmentObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GroupUserAssignmentObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GroupUserAssignmentObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GroupUserDeletedResourceObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GroupUserDeletedResourceObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventSizeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventSizeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventQualityJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventQualityNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventBackgroundJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventBackgroundNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventOutputFormatJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventOutputFormatNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventSizeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventSizeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventQualityJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventQualityNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventBackgroundJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventBackgroundNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventOutputFormatJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventOutputFormatNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventSizeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventSizeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventQualityJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventQualityNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventBackgroundJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventBackgroundNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventOutputFormatJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventOutputFormatNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventSizeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventSizeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventQualityJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventQualityNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventBackgroundJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventBackgroundNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventOutputFormatJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventOutputFormatNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolModelJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolModelNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolQualityJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolQualityNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolSizeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolSizeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolOutputFormatJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolOutputFormatNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolModerationJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolModerationNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolBackgroundJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolBackgroundNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolCallTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolCallTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolCallStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolCallStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImagesResponseBackgroundJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImagesResponseBackgroundNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImagesResponseOutputFormatJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImagesResponseOutputFormatNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImagesResponseSizeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImagesResponseSizeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImagesResponseQualityJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImagesResponseQualityNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InputAudioTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InputAudioTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InputAudioInputAudio1FormatJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InputAudioInputAudio1FormatNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InputMessageTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InputMessageTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InputMessageRoleJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InputMessageRoleNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InputMessageStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InputMessageStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InviteObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InviteObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InviteRoleJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InviteRoleNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InviteStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InviteStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InviteProjectRoleJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InviteProjectRoleNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InviteDeleteResponseObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InviteDeleteResponseObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InviteListResponseObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InviteListResponseObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InviteRequestRoleJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InviteRequestRoleNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InviteRequestProjectRoleJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InviteRequestProjectRoleNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListAuditLogsResponseObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListAuditLogsResponseObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListBatchesResponseObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListBatchesResponseObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListCertificatesResponseObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListCertificatesResponseObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListFineTuningCheckpointPermissionResponseObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListFineTuningCheckpointPermissionResponseObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListFineTuningJobCheckpointsResponseObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListFineTuningJobCheckpointsResponseObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListFineTuningJobEventsResponseObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListFineTuningJobEventsResponseObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListModelsResponseObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListModelsResponseObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListPaginatedFineTuningJobsResponseObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListPaginatedFineTuningJobsResponseObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.LocalShellToolCallTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.LocalShellToolCallTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.LocalShellToolCallStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.LocalShellToolCallStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.LocalShellToolCallOutputTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.LocalShellToolCallOutputTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.LocalShellToolCallOutputStatus2JsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.LocalShellToolCallOutputStatus2NullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MCPApprovalRequestTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MCPApprovalRequestTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MCPApprovalResponseTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MCPApprovalResponseTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MCPApprovalResponseResourceTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MCPApprovalResponseResourceTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MCPListToolsTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MCPListToolsTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MCPToolTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MCPToolTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MCPToolConnectorIdJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MCPToolConnectorIdNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MCPToolRequireApprovalVariant1Enum2JsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MCPToolRequireApprovalVariant1Enum2NullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MCPToolCallTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MCPToolCallTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentImageFileObjectTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentImageFileObjectTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentImageFileObjectImageFileDetailJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentImageFileObjectImageFileDetailNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentImageUrlObjectTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentImageUrlObjectTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentImageUrlObjectImageUrlDetailJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentImageUrlObjectImageUrlDetailNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentRefusalObjectTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentRefusalObjectTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentTextAnnotationsFileCitationObjectTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentTextAnnotationsFileCitationObjectTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentTextAnnotationsFilePathObjectTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentTextAnnotationsFilePathObjectTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentTextObjectTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentTextObjectTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentImageFileObjectTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentImageFileObjectTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentImageFileObjectImageFileDetailJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentImageFileObjectImageFileDetailNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentImageUrlObjectTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentImageUrlObjectTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentImageUrlObjectImageUrlDetailJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentImageUrlObjectImageUrlDetailNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentRefusalObjectTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentRefusalObjectTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentTextAnnotationsFileCitationObjectTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentTextAnnotationsFileCitationObjectTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentTextAnnotationsFilePathObjectTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentTextAnnotationsFilePathObjectTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentTextObjectTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentTextObjectTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageDeltaObjectObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageDeltaObjectObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageDeltaObjectDeltaRoleJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageDeltaObjectDeltaRoleNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageObjectObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageObjectObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageObjectStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageObjectStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageObjectIncompleteDetailsReasonJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageObjectIncompleteDetailsReasonNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageObjectRoleJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageObjectRoleNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessagePhaseJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessagePhaseNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageRequestContentTextObjectTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageRequestContentTextObjectTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageStreamEventVariant1EventJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageStreamEventVariant1EventNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageStreamEventVariant2EventJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageStreamEventVariant2EventNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageStreamEventVariant3EventJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageStreamEventVariant3EventNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageStreamEventVariant4EventJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageStreamEventVariant4EventNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageStreamEventVariant5EventJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageStreamEventVariant5EventNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ModelObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ModelObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ModelIdsResponsesEnumJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ModelIdsResponsesEnumNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ModelIdsSharedEnumJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ModelIdsSharedEnumNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ModelResponsePropertiesPromptCacheRetention2JsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ModelResponsePropertiesPromptCacheRetention2NullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.NoiseReductionTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.NoiseReductionTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OpenAIFileObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OpenAIFileObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OpenAIFilePurposeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OpenAIFilePurposeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OpenAIFileStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OpenAIFileStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OtherChunkingStrategyResponseParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OtherChunkingStrategyResponseParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OutputAudioTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OutputAudioTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageRoleJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageRoleNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.PredictionContentTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.PredictionContentTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectApiKeyObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectApiKeyObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectApiKeyOwnerTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectApiKeyOwnerTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectApiKeyDeleteResponseObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectApiKeyDeleteResponseObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectApiKeyListResponseObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectApiKeyListResponseObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectCreateRequestGeographyJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectCreateRequestGeographyNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectGroupObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectGroupObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectGroupDeletedResourceObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectGroupDeletedResourceObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectGroupListResourceObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectGroupListResourceObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectListResponseObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectListResponseObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectRateLimitObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectRateLimitObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectRateLimitListResponseObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectRateLimitListResponseObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountRoleJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountRoleNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountApiKeyObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountApiKeyObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountCreateResponseObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountCreateResponseObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountCreateResponseRoleJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountCreateResponseRoleNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountDeleteResponseObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountDeleteResponseObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountListResponseObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountListResponseObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectUserObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectUserObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectUserRoleJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectUserRoleNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectUserCreateRequestRoleJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectUserCreateRequestRoleNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectUserDeleteResponseObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectUserDeleteResponseObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectUserUpdateRequestRoleJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ProjectUserUpdateRequestRoleNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.PublicRoleListResourceObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.PublicRoleListResourceObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeAudioFormatsPcmAudioFormatTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeAudioFormatsPcmAudioFormatTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeAudioFormatsPcmuAudioFormatTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeAudioFormatsPcmuAudioFormatTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeAudioFormatsPcmaAudioFormatTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeAudioFormatsPcmaAudioFormatTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemCreateTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemCreateTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemDeleteTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemDeleteTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemRetrieveTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemRetrieveTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemTruncateTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemTruncateTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferAppendTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferAppendTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferClearTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferClearTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferCommitTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferCommitTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventOutputAudioBufferClearTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventOutputAudioBufferClearTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventResponseCancelTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventResponseCancelTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventResponseCreateTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventResponseCreateTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventSessionUpdateTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventSessionUpdateTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventTranscriptionSessionUpdateTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventTranscriptionSessionUpdateTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusDetailsTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusDetailsTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusDetailsReasonJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusDetailsReasonNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseModalitieJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseModalitieNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseOutputAudioFormatJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseOutputAudioFormatNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseMaxOutputTokensJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseMaxOutputTokensNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsModalitieJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsModalitieNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsOutputAudioFormatJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsOutputAudioFormatNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsToolTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsToolTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsMaxOutputTokensJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsMaxOutputTokensNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsConversationJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsConversationNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemCreatedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemCreatedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemDeletedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemDeletedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemRetrievedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemRetrievedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemTruncatedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemTruncatedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventErrorTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventErrorTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferClearedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferClearedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferCommittedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferCommittedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferSpeechStartedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferSpeechStartedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferSpeechStoppedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferSpeechStoppedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsCompletedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsCompletedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsFailedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsFailedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsInProgressTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsInProgressTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventRateLimitsUpdatedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventRateLimitsUpdatedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventRateLimitsUpdatedRateLimitNameJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventRateLimitsUpdatedRateLimitNameNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioDeltaTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioDeltaTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioDoneTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioDoneTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioTranscriptDeltaTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioTranscriptDeltaTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioTranscriptDoneTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioTranscriptDoneTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartAddedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartAddedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartAddedPartTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartAddedPartTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartDoneTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartDoneTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartDonePartTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartDonePartTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseCreatedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseCreatedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseDoneTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseDoneTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallArgumentsDoneTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallArgumentsDoneTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallCompletedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallCompletedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallFailedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallFailedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallInProgressTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallInProgressTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseOutputItemAddedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseOutputItemAddedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseOutputItemDoneTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseOutputItemDoneTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseTextDeltaTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseTextDeltaTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseTextDoneTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseTextDoneTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventSessionCreatedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventSessionCreatedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventSessionUpdatedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventSessionUpdatedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionCreatedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionCreatedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionUpdatedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionUpdatedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemCreateTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemCreateTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemDeleteTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemDeleteTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemRetrieveTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemRetrieveTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemTruncateTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemTruncateTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventInputAudioBufferAppendTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventInputAudioBufferAppendTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventInputAudioBufferClearTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventInputAudioBufferClearTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventInputAudioBufferCommitTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventInputAudioBufferCommitTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventOutputAudioBufferClearTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventOutputAudioBufferClearTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventResponseCancelTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventResponseCancelTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventResponseCreateTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventResponseCreateTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventSessionUpdateTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventSessionUpdateTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventTranscriptionSessionUpdateTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventTranscriptionSessionUpdateTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallOutputObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallOutputObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallOutputTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallOutputTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallOutputStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallOutputStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantRoleJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantRoleNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantContentItemTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantContentItemTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemRoleJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemRoleNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemContentItemTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemContentItemTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserRoleJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserRoleNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserContentItemTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserContentItemTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserContentItemDetailJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserContentItemDetailNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceRoleJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceRoleNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceContentItemTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceContentItemTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretRequestExpiresAfterAnchorJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretRequestExpiresAfterAnchorNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeFunctionToolTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeFunctionToolTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeMCPApprovalRequestTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeMCPApprovalRequestTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeMCPApprovalResponseTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeMCPApprovalResponseTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeMCPHTTPErrorTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeMCPHTTPErrorTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeMCPListToolsTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeMCPListToolsTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeMCPProtocolErrorTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeMCPProtocolErrorTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeMCPToolCallTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeMCPToolCallTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeMCPToolExecutionErrorTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeMCPToolExecutionErrorTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseStatusDetailsTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseStatusDetailsTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseStatusDetailsReasonJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseStatusDetailsReasonNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseOutputModalitieJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseOutputModalitieNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseMaxOutputTokensJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseMaxOutputTokensNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsOutputModalitieJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsOutputModalitieNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsMaxOutputTokensJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsMaxOutputTokensNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsConversationJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsConversationNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationCreatedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationCreatedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemAddedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemAddedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemCreatedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemCreatedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemDeletedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemDeletedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemDoneTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemDoneTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionDeltaTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionDeltaTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionFailedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionFailedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionSegmentTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionSegmentTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemRetrievedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemRetrievedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemTruncatedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemTruncatedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventErrorTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventErrorTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferClearedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferClearedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferCommittedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferCommittedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferDtmfEventReceivedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferDtmfEventReceivedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferSpeechStartedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferSpeechStartedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferSpeechStoppedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferSpeechStoppedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferTimeoutTriggeredTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferTimeoutTriggeredTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventMCPListToolsCompletedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventMCPListToolsCompletedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventMCPListToolsFailedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventMCPListToolsFailedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventMCPListToolsInProgressTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventMCPListToolsInProgressTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventOutputAudioBufferClearedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventOutputAudioBufferClearedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventOutputAudioBufferStartedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventOutputAudioBufferStartedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventOutputAudioBufferStoppedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventOutputAudioBufferStoppedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventRateLimitsUpdatedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventRateLimitsUpdatedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventRateLimitsUpdatedRateLimitNameJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventRateLimitsUpdatedRateLimitNameNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseAudioDeltaTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseAudioDeltaTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseAudioDoneTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseAudioDoneTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseAudioTranscriptDeltaTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseAudioTranscriptDeltaTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseAudioTranscriptDoneTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseAudioTranscriptDoneTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseContentPartAddedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseContentPartAddedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseContentPartAddedPartTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseContentPartAddedPartTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseContentPartDoneTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseContentPartDoneTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseContentPartDonePartTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseContentPartDonePartTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseCreatedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseCreatedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseDoneTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseDoneTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseFunctionCallArgumentsDeltaTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseFunctionCallArgumentsDeltaTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseFunctionCallArgumentsDoneTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseFunctionCallArgumentsDoneTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseMCPCallArgumentsDeltaTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseMCPCallArgumentsDeltaTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseMCPCallArgumentsDoneTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseMCPCallArgumentsDoneTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseMCPCallCompletedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseMCPCallCompletedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseMCPCallFailedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseMCPCallFailedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseMCPCallInProgressTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseMCPCallInProgressTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseOutputItemAddedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseOutputItemAddedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseOutputItemDoneTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseOutputItemDoneTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseTextDeltaTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseTextDeltaTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseTextDoneTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseTextDoneTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventSessionCreatedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventSessionCreatedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventSessionUpdatedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventSessionUpdatedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventTranscriptionSessionUpdatedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventTranscriptionSessionUpdatedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionModalitieJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionModalitieNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionModelJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionModelNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionInputAudioFormatJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionInputAudioFormatNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionOutputAudioFormatJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionOutputAudioFormatNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionTracingTracingConfigurationEnumJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionTracingTracingConfigurationEnumNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionMaxResponseOutputTokensJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionMaxResponseOutputTokensNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionIncludeVariant1ItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionIncludeVariant1ItemNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestModalitieJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestModalitieNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestTracingEnumJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestTracingEnumNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestToolTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestToolTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestMaxResponseOutputTokensJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestMaxResponseOutputTokensNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGATypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGATypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAOutputModalitieJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAOutputModalitieNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAModelJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAModelNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAIncludeItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAIncludeItemNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGATracingEnumJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGATracingEnumNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAMaxOutputTokensJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAMaxOutputTokensNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseIncludeItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseIncludeItemNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseOutputModalitieJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseOutputModalitieNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseTracingEnumJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseTracingEnumNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseMaxOutputTokensJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseMaxOutputTokensNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGATypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGATypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGAOutputModalitieJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGAOutputModalitieNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGAModelJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGAModelNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGAIncludeItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGAIncludeItemNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGATracingTracingConfigurationEnumJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGATracingTracingConfigurationEnumNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGAMaxOutputTokensJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGAMaxOutputTokensNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestTurnDetectionTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestTurnDetectionTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestInputAudioFormatJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestInputAudioFormatNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestIncludeItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestIncludeItemNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGATypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGATypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAIncludeItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAIncludeItemNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseModalitieJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseModalitieNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseGATypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseGATypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseGAIncludeItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseGAIncludeItemNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTruncationEnumJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTruncationEnumNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTruncationEnumTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTruncationEnumTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVadEagernessJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVadEagernessNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningSummary2JsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningSummary2NullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningGenerateSummary2JsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningGenerateSummary2NullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningEffortEnumJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningEffortEnumNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningItemTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningItemTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningItemStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningItemStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseVariant3ObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseVariant3ObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseVariant3StatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseVariant3StatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseVariant3IncompleteDetailsReasonJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseVariant3IncompleteDetailsReasonNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseAudioDeltaEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseAudioDeltaEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseAudioDoneEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseAudioDoneEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseAudioTranscriptDeltaEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseAudioTranscriptDeltaEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseAudioTranscriptDoneEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseAudioTranscriptDoneEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseCodeInterpreterCallCodeDeltaEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseCodeInterpreterCallCodeDeltaEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseCodeInterpreterCallCodeDoneEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseCodeInterpreterCallCodeDoneEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseCodeInterpreterCallCompletedEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseCodeInterpreterCallCompletedEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseCodeInterpreterCallInProgressEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseCodeInterpreterCallInProgressEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseCodeInterpreterCallInterpretingEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseCodeInterpreterCallInterpretingEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseCompletedEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseCompletedEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseContentPartAddedEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseContentPartAddedEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseContentPartDoneEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseContentPartDoneEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseCreatedEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseCreatedEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseCustomToolCallInputDeltaEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseCustomToolCallInputDeltaEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseCustomToolCallInputDoneEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseCustomToolCallInputDoneEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseErrorCodeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseErrorCodeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseErrorEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseErrorEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFailedEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFailedEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFileSearchCallCompletedEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFileSearchCallCompletedEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFileSearchCallInProgressEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFileSearchCallInProgressEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFileSearchCallSearchingEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFileSearchCallSearchingEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFormatJsonObjectTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFormatJsonObjectTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFormatJsonSchemaTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFormatJsonSchemaTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFormatTextTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFormatTextTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFormatTextGrammarTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFormatTextGrammarTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFormatTextPythonTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFormatTextPythonTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFunctionCallArgumentsDeltaEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFunctionCallArgumentsDeltaEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFunctionCallArgumentsDoneEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFunctionCallArgumentsDoneEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseImageGenCallCompletedEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseImageGenCallCompletedEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseImageGenCallGeneratingEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseImageGenCallGeneratingEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseImageGenCallInProgressEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseImageGenCallInProgressEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseImageGenCallPartialImageEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseImageGenCallPartialImageEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseInProgressEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseInProgressEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseIncompleteEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseIncompleteEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseItemListObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseItemListObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseMCPCallArgumentsDeltaEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseMCPCallArgumentsDeltaEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseMCPCallArgumentsDoneEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseMCPCallArgumentsDoneEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseMCPCallCompletedEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseMCPCallCompletedEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseMCPCallFailedEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseMCPCallFailedEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseMCPCallInProgressEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseMCPCallInProgressEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseMCPListToolsCompletedEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseMCPListToolsCompletedEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseMCPListToolsFailedEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseMCPListToolsFailedEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseMCPListToolsInProgressEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseMCPListToolsInProgressEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseModalitiesVariant1ItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseModalitiesVariant1ItemNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseOutputItemAddedEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseOutputItemAddedEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseOutputItemDoneEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseOutputItemDoneEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextAnnotationAddedEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextAnnotationAddedEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponsePropertiesTruncation2JsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponsePropertiesTruncation2NullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseQueuedEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseQueuedEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryPartAddedEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryPartAddedEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryPartAddedEventPartTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryPartAddedEventPartTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryPartDoneEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryPartDoneEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryPartDoneEventPartTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryPartDoneEventPartTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryTextDeltaEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryTextDeltaEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryTextDoneEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryTextDoneEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningTextDeltaEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningTextDeltaEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningTextDoneEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningTextDoneEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseRefusalDeltaEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseRefusalDeltaEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseRefusalDoneEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseRefusalDoneEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseTextDeltaEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseTextDeltaEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseTextDoneEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseTextDoneEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseWebSearchCallCompletedEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseWebSearchCallCompletedEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseWebSearchCallInProgressEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseWebSearchCallInProgressEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseWebSearchCallSearchingEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseWebSearchCallSearchingEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponsesClientEventResponseCreateVariant1TypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponsesClientEventResponseCreateVariant1TypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RoleObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RoleObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RoleDeletedResourceObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RoleDeletedResourceObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RoleListResourceObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RoleListResourceObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunObjectObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunObjectObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunObjectStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunObjectStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunObjectRequiredActionTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunObjectRequiredActionTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunObjectLastErrorCodeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunObjectLastErrorCodeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunObjectIncompleteDetailsReasonJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunObjectIncompleteDetailsReasonNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaObjectObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaObjectObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsMessageCreationObjectTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsMessageCreationObjectTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsCodeObjectTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsCodeObjectTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsFileSearchObjectTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsFileSearchObjectTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsFunctionObjectTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsFunctionObjectTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsObjectTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsObjectTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDetailsMessageCreationObjectTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDetailsMessageCreationObjectTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsCodeObjectTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsCodeObjectTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsCodeOutputImageObjectTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsCodeOutputImageObjectTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsCodeOutputLogsObjectTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsCodeOutputLogsObjectTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsFileSearchObjectTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsFileSearchObjectTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsFileSearchResultObjectContentItemTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsFileSearchResultObjectContentItemTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsFunctionObjectTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsFunctionObjectTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsObjectTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsObjectTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepObjectObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepObjectObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepObjectTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepObjectTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepObjectStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepObjectStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepObjectLastErrorCodeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepObjectLastErrorCodeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant1EventJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant1EventNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant2EventJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant2EventNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant3EventJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant3EventNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant4EventJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant4EventNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant5EventJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant5EventNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant6EventJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant6EventNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant7EventJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant7EventNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant1EventJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant1EventNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant2EventJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant2EventNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant3EventJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant3EventNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant4EventJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant4EventNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant5EventJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant5EventNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant6EventJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant6EventNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant7EventJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant7EventNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant8EventJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant8EventNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant9EventJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant9EventNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant10EventJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant10EventNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunToolCallObjectTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunToolCallObjectTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ServiceTierEnumJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ServiceTierEnumNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.SpeechAudioDeltaEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.SpeechAudioDeltaEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.SpeechAudioDoneEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.SpeechAudioDoneEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.StaticChunkingStrategyRequestParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.StaticChunkingStrategyRequestParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.StaticChunkingStrategyResponseParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.StaticChunkingStrategyResponseParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.TextResponseFormatJsonSchemaTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.TextResponseFormatJsonSchemaTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ThreadObjectObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ThreadObjectObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ThreadStreamEventVariant1EventJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ThreadStreamEventVariant1EventNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceAllowedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceAllowedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceAllowedModeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceAllowedModeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceCustomTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceCustomTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceFunctionTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceFunctionTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceMCPTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceMCPTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceOptionsJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceOptionsNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceTypesTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceTypesTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptTextDeltaEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptTextDeltaEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptTextDoneEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptTextDoneEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptTextSegmentEventTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptTextSegmentEventTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptTextUsageDurationTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptTextUsageDurationTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptTextUsageTokensTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptTextUsageTokensTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptionChunkingStrategyEnumJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptionChunkingStrategyEnumNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptionDiarizedSegmentTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptionDiarizedSegmentTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptionIncludeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptionIncludeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.TruncationObjectTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.TruncationObjectTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UploadStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UploadStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UploadObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UploadObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UploadPartObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UploadPartObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageAudioSpeechesResultObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageAudioSpeechesResultObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageAudioTranscriptionsResultObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageAudioTranscriptionsResultObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageCodeInterpreterSessionsResultObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageCodeInterpreterSessionsResultObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageCompletionsResultObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageCompletionsResultObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageEmbeddingsResultObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageEmbeddingsResultObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageImagesResultObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageImagesResultObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageModerationsResultObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageModerationsResultObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageResponseObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageResponseObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageTimeBucketObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageTimeBucketObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageVectorStoresResultObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageVectorStoresResultObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UserObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UserObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UserRoleJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UserRoleNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UserDeleteResponseObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UserDeleteResponseObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UserListResourceObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UserListResourceObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UserListResponseObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UserListResponseObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UserRoleAssignmentObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UserRoleAssignmentObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UserRoleUpdateRequestRoleJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UserRoleUpdateRequestRoleNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VadConfigTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VadConfigTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreExpirationAfterAnchorJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreExpirationAfterAnchorNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreFileBatchObjectObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreFileBatchObjectObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreFileBatchObjectStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreFileBatchObjectStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreFileContentResponseObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreFileContentResponseObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreFileObjectObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreFileObjectObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreFileObjectStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreFileObjectStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreFileObjectLastErrorCodeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreFileObjectLastErrorCodeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreObjectObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreObjectObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreObjectStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreObjectStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreSearchRequestRankingOptionsRankerJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreSearchRequestRankingOptionsRankerNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreSearchResultContentObjectTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreSearchResultContentObjectTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreSearchResultsPageObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreSearchResultsPageObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VerbosityEnumJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VerbosityEnumNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VoiceConsentDeletedResourceObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VoiceConsentDeletedResourceObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VoiceConsentListResourceObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VoiceConsentListResourceObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VoiceConsentResourceObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VoiceConsentResourceObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VoiceIdsSharedEnumJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VoiceIdsSharedEnumNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VoiceResourceObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VoiceResourceObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchActionFindTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchActionFindTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchActionOpenPageTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchActionOpenPageTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchActionSearchTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchActionSearchTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchActionSearchSourceTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchActionSearchSourceTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchApproximateLocationWebSearchApproximateLocation1TypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchApproximateLocationWebSearchApproximateLocation1TypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchContextSizeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchContextSizeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolSearchContextSizeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolSearchContextSizeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchCancelledObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchCancelledObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchCancelledTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchCancelledTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchCompletedObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchCompletedObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchCompletedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchCompletedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchExpiredObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchExpiredObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchExpiredTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchExpiredTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchFailedObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchFailedObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchFailedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchFailedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunCanceledObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunCanceledObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunCanceledTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunCanceledTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunFailedObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunFailedObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunFailedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunFailedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunSucceededObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunSucceededObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunSucceededTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunSucceededTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobCancelledObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobCancelledObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobCancelledTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobCancelledTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobFailedObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobFailedObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobFailedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobFailedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobSucceededObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobSucceededObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobSucceededTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobSucceededTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookRealtimeCallIncomingObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookRealtimeCallIncomingObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookRealtimeCallIncomingTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookRealtimeCallIncomingTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookResponseCancelledObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookResponseCancelledObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookResponseCancelledTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookResponseCancelledTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookResponseCompletedObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookResponseCompletedObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookResponseCompletedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookResponseCompletedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookResponseFailedObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookResponseFailedObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookResponseFailedTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookResponseFailedTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookResponseIncompleteObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookResponseIncompleteObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookResponseIncompleteTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebhookResponseIncompleteTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.SkillReferenceParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.SkillReferenceParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InlineSkillSourceParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InlineSkillSourceParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InlineSkillSourceParamMediaTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InlineSkillSourceParamMediaTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InlineSkillParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InlineSkillParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ContainerNetworkPolicyDisabledParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ContainerNetworkPolicyDisabledParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ContainerNetworkPolicyAllowlistParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ContainerNetworkPolicyAllowlistParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.IncludeEnumJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.IncludeEnumNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageRoleJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageRoleNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InputTextContentTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InputTextContentTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FileCitationBodyTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FileCitationBodyTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UrlCitationBodyTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UrlCitationBodyTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ContainerFileCitationBodyTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ContainerFileCitationBodyTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OutputTextContentTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OutputTextContentTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.TextContentTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.TextContentTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.SummaryTextContentTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.SummaryTextContentTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningTextContentTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningTextContentTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RefusalContentTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RefusalContentTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageDetailJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageDetailNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InputImageContentTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InputImageContentTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ComputerScreenshotContentTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ComputerScreenshotContentTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InputFileContentTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InputFileContentTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessagePhase2JsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessagePhase2NullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputStatusEnumJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputStatusEnumNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ClickButtonTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ClickButtonTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ClickParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ClickParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.DoubleClickActionTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.DoubleClickActionTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.DragParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.DragParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.KeyPressActionTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.KeyPressActionTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MoveParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MoveParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ScreenshotParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ScreenshotParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ScrollParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ScrollParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.TypeParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.TypeParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WaitParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WaitParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ComputerCallOutputStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ComputerCallOutputStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchExecutionTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchExecutionTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchCallTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchCallTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RankerVersionTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RankerVersionTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FileSearchToolTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FileSearchToolTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ComputerToolTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ComputerToolTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ComputerEnvironmentJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ComputerEnvironmentNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ComputerUsePreviewToolTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ComputerUsePreviewToolTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ContainerMemoryLimitJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ContainerMemoryLimitNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AutoCodeInterpreterToolParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AutoCodeInterpreterToolParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InputFidelityJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InputFidelityNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenActionEnumJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenActionEnumNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.LocalShellToolParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.LocalShellToolParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.LocalEnvironmentParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.LocalEnvironmentParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ContainerReferenceParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ContainerReferenceParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellToolParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellToolParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CustomTextFormatParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CustomTextFormatParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GrammarSyntax1JsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GrammarSyntax1NullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CustomGrammarFormatParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CustomGrammarFormatParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.NamespaceToolParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.NamespaceToolParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchToolParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchToolParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ApproximateLocationTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ApproximateLocationTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.SearchContextSizeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.SearchContextSizeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.SearchContentTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.SearchContentTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchPreviewToolTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchPreviewToolTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchOutputTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchOutputTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CompactionBodyTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CompactionBodyTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterOutputLogsTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterOutputLogsTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterOutputImageTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterOutputImageTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.LocalShellExecActionTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.LocalShellExecActionTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.LocalShellCallStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.LocalShellCallStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.LocalEnvironmentResourceTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.LocalEnvironmentResourceTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ContainerReferenceResourceTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ContainerReferenceResourceTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.LocalShellCallOutputStatusEnumJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.LocalShellCallOutputStatusEnumNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTimeoutOutcomeTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTimeoutOutcomeTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputExitOutcomeTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputExitOutcomeTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCreateFileOperationTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCreateFileOperationTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchDeleteFileOperationTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchDeleteFileOperationTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchUpdateFileOperationTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchUpdateFileOperationTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallOutputStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallOutputStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallOutputTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallOutputTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MCPToolCallStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MCPToolCallStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.DetailEnumJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.DetailEnumNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallItemStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallItemStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ComputerCallOutputItemParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ComputerCallOutputItemParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InputTextContentParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InputTextContentParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InputImageContentParamAutoParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InputImageContentParamAutoParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InputFileContentParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InputFileContentParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchCallItemParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchCallItemParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchOutputItemParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchOutputItemParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CompactionSummaryItemParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CompactionSummaryItemParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTimeoutOutcomeParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTimeoutOutcomeParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputExitOutcomeParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputExitOutcomeParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputItemParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputItemParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallStatusParamJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallStatusParamNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCreateFileOperationParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCreateFileOperationParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchDeleteFileOperationParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchDeleteFileOperationParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchUpdateFileOperationParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchUpdateFileOperationParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallItemParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallItemParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallOutputStatusParamJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallOutputStatusParamNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallOutputItemParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallOutputItemParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ItemReferenceParamType2JsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ItemReferenceParamType2NullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ConversationResourceObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ConversationResourceObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.SpecificApplyPatchParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.SpecificApplyPatchParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.SpecificFunctionShellParamTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.SpecificFunctionShellParamTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.DeletedConversationResourceObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.DeletedConversationResourceObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OrderEnumJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OrderEnumNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VideoModelEnumJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VideoModelEnumNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VideoStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VideoStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VideoSizeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VideoSizeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VideoResourceObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VideoResourceObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VideoListResourceObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VideoListResourceObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VideoSecondsJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VideoSecondsNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.DeletedVideoResourceObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.DeletedVideoResourceObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VideoContentVariantJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VideoContentVariantNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.TruncationEnumJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.TruncationEnumNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.TokenCountsResourceObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.TokenCountsResourceObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CompactResourceObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CompactResourceObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.SkillResourceObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.SkillResourceObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.SkillListResourceObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.SkillListResourceObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.DeletedSkillResourceObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.DeletedSkillResourceObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.SkillVersionResourceObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.SkillVersionResourceObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.SkillVersionListResourceObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.SkillVersionListResourceObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.DeletedSkillVersionResourceObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.DeletedSkillVersionResourceObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatSessionStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatSessionStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatSessionResourceObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatSessionResourceObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ExpiresAfterParamAnchorJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ExpiresAfterParamAnchorNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UserMessageInputTextTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UserMessageInputTextTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UserMessageQuotedTextTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UserMessageQuotedTextTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AttachmentTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AttachmentTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UserMessageItemObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UserMessageItemObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UserMessageItemTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UserMessageItemTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FileAnnotationSourceTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FileAnnotationSourceTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FileAnnotationTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FileAnnotationTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UrlAnnotationSourceTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UrlAnnotationSourceTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UrlAnnotationTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UrlAnnotationTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AssistantMessageItemObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AssistantMessageItemObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AssistantMessageItemTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AssistantMessageItemTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WidgetMessageItemObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WidgetMessageItemObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WidgetMessageItemTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WidgetMessageItemTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ClientToolCallStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ClientToolCallStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ClientToolCallItemObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ClientToolCallItemObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ClientToolCallItemTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ClientToolCallItemTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.TaskTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.TaskTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.TaskItemObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.TaskItemObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.TaskItemTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.TaskItemTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.TaskGroupItemObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.TaskGroupItemObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.TaskGroupItemTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.TaskGroupItemTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ThreadItemListResourceObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ThreadItemListResourceObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ActiveStatusTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ActiveStatusTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.LockedStatusTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.LockedStatusTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ClosedStatusTypeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ClosedStatusTypeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ThreadResourceObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ThreadResourceObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.DeletedThreadResourceObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.DeletedThreadResourceObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ThreadListResourceObjectJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ThreadListResourceObjectNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateBatchRequestEndpointJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateBatchRequestEndpointNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateBatchRequestCompletionWindowJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateBatchRequestCompletionWindowNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListAssistantsOrderJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListAssistantsOrderNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListChatCompletionsOrderJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListChatCompletionsOrderNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GetChatCompletionMessagesOrderJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GetChatCompletionMessagesOrderNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListContainersOrderJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListContainersOrderNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListContainerFilesOrderJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListContainerFilesOrderNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListConversationItemsOrderJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListConversationItemsOrderNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListEvalsOrderJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListEvalsOrderNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListEvalsOrderByJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListEvalsOrderByNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GetEvalRunsOrderJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GetEvalRunsOrderNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GetEvalRunsStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GetEvalRunsStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GetEvalRunOutputItemsStatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GetEvalRunOutputItemsStatusNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GetEvalRunOutputItemsOrderJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GetEvalRunOutputItemsOrderNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListFilesOrderJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListFilesOrderNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListFineTuningCheckpointPermissionsOrderJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListFineTuningCheckpointPermissionsOrderNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AdminApiKeysListOrderJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AdminApiKeysListOrderNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListOrganizationCertificatesOrderJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListOrganizationCertificatesOrderNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GetCertificateIncludeItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GetCertificateIncludeItemNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageCostsBucketWidthJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageCostsBucketWidthNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageCostsGroupByItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageCostsGroupByItemNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListGroupsOrderJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListGroupsOrderNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListGroupRoleAssignmentsOrderJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListGroupRoleAssignmentsOrderNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListGroupUsersOrderJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListGroupUsersOrderNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListProjectCertificatesOrderJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListProjectCertificatesOrderNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListProjectGroupsOrderJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListProjectGroupsOrderNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListRolesOrderJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListRolesOrderNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageAudioSpeechesBucketWidthJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageAudioSpeechesBucketWidthNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageAudioSpeechesGroupByItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageAudioSpeechesGroupByItemNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageAudioTranscriptionsBucketWidthJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageAudioTranscriptionsBucketWidthNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageAudioTranscriptionsGroupByItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageAudioTranscriptionsGroupByItemNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageCodeInterpreterSessionsBucketWidthJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageCodeInterpreterSessionsBucketWidthNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageCodeInterpreterSessionsGroupByItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageCodeInterpreterSessionsGroupByItemNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageCompletionsBucketWidthJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageCompletionsBucketWidthNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageCompletionsGroupByItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageCompletionsGroupByItemNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageEmbeddingsBucketWidthJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageEmbeddingsBucketWidthNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageEmbeddingsGroupByItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageEmbeddingsGroupByItemNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageImagesBucketWidthJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageImagesBucketWidthNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageImagesSourceJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageImagesSourceNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageImagesSizeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageImagesSizeNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageImagesGroupByItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageImagesGroupByItemNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageModerationsBucketWidthJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageModerationsBucketWidthNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageModerationsGroupByItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageModerationsGroupByItemNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageVectorStoresBucketWidthJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageVectorStoresBucketWidthNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageVectorStoresGroupByItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UsageVectorStoresGroupByItemNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListUserRoleAssignmentsOrderJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListUserRoleAssignmentsOrderNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListProjectGroupRoleAssignmentsOrderJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListProjectGroupRoleAssignmentsOrderNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListProjectRolesOrderJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListProjectRolesOrderNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListProjectUserRoleAssignmentsOrderJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListProjectUserRoleAssignmentsOrderNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListInputItemsOrderJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListInputItemsOrderNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListMessagesOrderJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListMessagesOrderNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListRunsOrderJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListRunsOrderNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateRunIncludeItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateRunIncludeItemNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListRunStepsOrderJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListRunStepsOrderNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListRunStepsIncludeItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListRunStepsIncludeItemNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GetRunStepIncludeItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.GetRunStepIncludeItemNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListVectorStoresOrderJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListVectorStoresOrderNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListFilesInVectorStoreBatchOrderJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListFilesInVectorStoreBatchOrderNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListFilesInVectorStoreBatchFilterJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListFilesInVectorStoreBatchFilterNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListVectorStoreFilesOrderJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListVectorStoreFilesOrderNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListVectorStoreFilesFilterJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ListVectorStoreFilesFilterNullableJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AssistantStreamEventJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AssistantsApiResponseFormatOptionJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AssistantsApiToolChoiceOptionJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallsItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageContentPartJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestSystemMessageContentPartJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestToolMessageContentPartJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestUserMessageContentPartJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionToolChoiceOptionJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParamJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OutputsVariant1ItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FiltersItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ComputerActionJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ComputerToolCallOutputResourceJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.Content5JsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ConversationItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ConversationParamJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFormatJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.SkillsItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.NetworkPolicyJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateModelResponsePropertiesJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateResponseJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEventJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonUsageJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseStreamEventJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolCallOutputResourceJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolCallResourceJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.DeletedConversationJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EvalGraderLabelModelJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EvalGraderPythonJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EvalGraderScoreModelJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EvalGraderStringCheckJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EvalGraderTextSimilarityJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EvalItemContentJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EvalItemContentItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneChatCompletionRequestAssistantMessageJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionAndCustomToolCallOutputJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolCallOutputResourceJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolCallResourceJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditStreamEventJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenStreamEventJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InputContentJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InputItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InputMessageResourceJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.InputParamJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ItemResourceJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.MessageStreamEventJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ModelIdsJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ModelIdsCompactionJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ModelIdsResponsesJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ModelIdsSharedJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OutputContentJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OutputItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageContentJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeAudioFormatsJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.Session2JsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTruncationJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1JsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseStreamEventJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponsesClientEventJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponsesClientEventResponseCreateJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ResponsesServerEventJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.StopConfigurationJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.TextResponseFormatConfigurationJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ThreadStreamEventJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ToolJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceParamJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptionChunkingStrategyJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VoiceIdsOrCustomVoiceJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VoiceIdsSharedJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallActionJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AnnotationJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ContentItem3JsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.Filters2JsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.NetworkPolicy2JsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.NetworkPolicy3JsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.SkillsItem2JsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EnvironmentVariant1JsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.Format2JsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ToolsItem13JsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EnvironmentVariant12JsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OutcomeJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OperationJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OutputVariant2ItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.EnvironmentVariant13JsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParamJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParamJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.VideoModelJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ItemFieldJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ContentItem4JsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AnnotationsItem3JsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.ThreadItemJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.StatusJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>>), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>), - - typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter>), - - typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>>), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList>>), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>), - - typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::tryAGI.OpenAI.MCPToolFilter>), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, byte[]>), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, byte[]>), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - - typeof(global::tryAGI.OpenAI.JsonConverters.UnixTimestampJsonConverter), - })] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.JsonSerializerContextTypes))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AddUploadPartRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AdminApiKey))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTimeOffset))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AdminApiKeyOwner))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApiKeyList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssignedRoleDetails))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(long))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantObjectObject), TypeInfoPropertyName = "AssistantObjectObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfAssistantToolsCodeAssistantToolsFileSearchAssistantToolsFunction2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantToolsCode))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantToolsFileSearch))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantToolsFunction))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantObjectToolResources2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantObjectToolResourcesCodeInterpreter))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantObjectToolResourcesFileSearch))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantsApiResponseFormatOption))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantStreamEvent), TypeInfoPropertyName = "AssistantStreamEvent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadStreamEvent), TypeInfoPropertyName = "ThreadStreamEvent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEvent), TypeInfoPropertyName = "RunStreamEvent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepStreamEvent), TypeInfoPropertyName = "RunStepStreamEvent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageStreamEvent), TypeInfoPropertyName = "MessageStreamEvent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ErrorEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DoneEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantSupportedModels), TypeInfoPropertyName = "AssistantSupportedModels2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantToolsCodeType), TypeInfoPropertyName = "AssistantToolsCodeType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantToolsFileSearchType), TypeInfoPropertyName = "AssistantToolsFileSearchType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantToolsFileSearchFileSearch))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileSearchRankingOptions))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantToolsFileSearchTypeOnly))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantToolsFileSearchTypeOnlyType), TypeInfoPropertyName = "AssistantToolsFileSearchTypeOnlyType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantToolsFunctionType), TypeInfoPropertyName = "AssistantToolsFunctionType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum), TypeInfoPropertyName = "AssistantsApiResponseFormatOptionEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFormatText))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchema))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantsApiToolChoiceOption), TypeInfoPropertyName = "AssistantsApiToolChoiceOption2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum), TypeInfoPropertyName = "AssistantsApiToolChoiceOptionEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantsNamedToolChoice))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantsNamedToolChoiceType), TypeInfoPropertyName = "AssistantsNamedToolChoiceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantsNamedToolChoiceFunction))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AudioResponseFormat), TypeInfoPropertyName = "AudioResponseFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AudioTranscription))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringAudioTranscriptionModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AudioTranscriptionModel), TypeInfoPropertyName = "AudioTranscriptionModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLog))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogEventType), TypeInfoPropertyName = "AuditLogEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogProject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogActor))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogApiKeyCreated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogApiKeyCreatedData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogApiKeyUpdated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogApiKeyUpdatedChangesRequested))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogApiKeyDeleted))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogCheckpointPermissionCreated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogCheckpointPermissionCreatedData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogCheckpointPermissionDeleted))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogExternalKeyRegistered))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogExternalKeyRemoved))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogGroupCreated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogGroupCreatedData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogGroupUpdated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogGroupUpdatedChangesRequested))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogGroupDeleted))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogScimEnabled))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogScimDisabled))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogInviteSent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogInviteSentData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogInviteAccepted))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogInviteDeleted))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogIpAllowlistCreated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogIpAllowlistUpdated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogIpAllowlistDeleted))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogIpAllowlistConfigActivated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogIpAllowlistConfigActivatedConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogIpAllowlistConfigDeactivated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogIpAllowlistConfigDeactivatedConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogLoginFailed))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogLogoutFailed))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogOrganizationUpdated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogOrganizationUpdatedChangesRequested))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogProjectCreated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogProjectCreatedData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogProjectUpdated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogProjectUpdatedChangesRequested))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogProjectArchived))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogProjectDeleted))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogRateLimitUpdated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogRateLimitUpdatedChangesRequested))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogRateLimitDeleted))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogRoleCreated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogRoleUpdated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogRoleUpdatedChangesRequested))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogRoleDeleted))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogRoleAssignmentCreated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogRoleAssignmentDeleted))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogServiceAccountCreated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogServiceAccountCreatedData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogServiceAccountUpdated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogServiceAccountUpdatedChangesRequested))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogServiceAccountDeleted))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogUserAdded))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogUserAddedData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogUserUpdated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogUserUpdatedChangesRequested))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogUserDeleted))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogCertificateCreated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogCertificateUpdated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogCertificateDeleted))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogCertificatesActivated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogCertificatesActivatedCertificate))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogCertificatesDeactivated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogCertificatesDeactivatedCertificate))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogActorType), TypeInfoPropertyName = "AuditLogActorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogActorSession))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogActorApiKey))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogActorApiKeyType), TypeInfoPropertyName = "AuditLogActorApiKeyType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogActorUser))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogActorServiceAccount))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AutoChunkingStrategyRequestParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AutoChunkingStrategyRequestParamType), TypeInfoPropertyName = "AutoChunkingStrategyRequestParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Batch))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BatchObject), TypeInfoPropertyName = "BatchObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BatchErrors))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BatchErrorsDataItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BatchStatus), TypeInfoPropertyName = "BatchStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BatchRequestCounts))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BatchUsage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BatchUsageInputTokensDetails))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BatchUsageOutputTokensDetails))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BatchFileExpirationAfter))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BatchFileExpirationAfterAnchor), TypeInfoPropertyName = "BatchFileExpirationAfterAnchor2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Certificate))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CertificateObject), TypeInfoPropertyName = "CertificateObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CertificateCertificateDetails))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionAllowedTools))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionAllowedToolsMode), TypeInfoPropertyName = "ChatCompletionAllowedToolsMode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionAllowedToolsChoice))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionAllowedToolsChoiceType), TypeInfoPropertyName = "ChatCompletionAllowedToolsChoiceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionDeleted))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionDeletedObject), TypeInfoPropertyName = "ChatCompletionDeletedObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionFunctionCallOption))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionFunctions))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionParameters))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionListObject), TypeInfoPropertyName = "ChatCompletionListObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCall))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCallType), TypeInfoPropertyName = "ChatCompletionMessageCustomToolCallType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCallCustom))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageListObject), TypeInfoPropertyName = "ChatCompletionMessageListObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "AllOfChatCompletionResponseMessageChatCompletionMessageListDataItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionResponseMessage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageListDataItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfChatCompletionRequestMessageContentPartTextChatCompletionRequestMessageContentPartImage2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCall))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCallType), TypeInfoPropertyName = "ChatCompletionMessageToolCallType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCallFunction))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCallChunk))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCallChunkType), TypeInfoPropertyName = "ChatCompletionMessageToolCallChunkType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCallChunkFunction))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCallsItem), TypeInfoPropertyName = "ChatCompletionMessageToolCallsItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCallDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionModalitiesVariant1Item), TypeInfoPropertyName = "ChatCompletionModalitiesVariant1Item2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoice))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceType), TypeInfoPropertyName = "ChatCompletionNamedToolChoiceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceFunction))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustom))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustomType), TypeInfoPropertyName = "ChatCompletionNamedToolChoiceCustomType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustomCustom))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPart), TypeInfoPropertyName = "ChatCompletionRequestAssistantMessageContentPart2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageRole), TypeInfoPropertyName = "ChatCompletionRequestAssistantMessageRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageAudio2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageFunctionCall2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusal))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>), TypeInfoPropertyName = "OneOfStringIListChatCompletionRequestMessageContentPartText2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessageRole), TypeInfoPropertyName = "ChatCompletionRequestDeveloperMessageRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessageRole), TypeInfoPropertyName = "ChatCompletionRequestFunctionMessageRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessage), TypeInfoPropertyName = "ChatCompletionRequestMessage2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestSystemMessage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestUserMessage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestToolMessage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudio))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudioType), TypeInfoPropertyName = "ChatCompletionRequestMessageContentPartAudioType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudioInputAudio))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudioInputAudioFormat), TypeInfoPropertyName = "ChatCompletionRequestMessageContentPartAudioInputAudioFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFile))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFileType), TypeInfoPropertyName = "ChatCompletionRequestMessageContentPartFileType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFileFile))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImageType), TypeInfoPropertyName = "ChatCompletionRequestMessageContentPartImageType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImageImageUrl))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImageImageUrlDetail), TypeInfoPropertyName = "ChatCompletionRequestMessageContentPartImageImageUrlDetail2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusalType), TypeInfoPropertyName = "ChatCompletionRequestMessageContentPartRefusalType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartTextType), TypeInfoPropertyName = "ChatCompletionRequestMessageContentPartTextType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>), TypeInfoPropertyName = "OneOfStringIListChatCompletionRequestSystemMessageContentPart2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestSystemMessageContentPart), TypeInfoPropertyName = "ChatCompletionRequestSystemMessageContentPart2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestSystemMessageRole), TypeInfoPropertyName = "ChatCompletionRequestSystemMessageRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestToolMessageRole), TypeInfoPropertyName = "ChatCompletionRequestToolMessageRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>), TypeInfoPropertyName = "OneOfStringIListChatCompletionRequestToolMessageContentPart2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestToolMessageContentPart), TypeInfoPropertyName = "ChatCompletionRequestToolMessageContentPart2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>), TypeInfoPropertyName = "OneOfStringIListChatCompletionRequestUserMessageContentPart2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestUserMessageContentPart), TypeInfoPropertyName = "ChatCompletionRequestUserMessageContentPart2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestUserMessageRole), TypeInfoPropertyName = "ChatCompletionRequestUserMessageRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionResponseMessageAnnotation))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionResponseMessageAnnotationType), TypeInfoPropertyName = "ChatCompletionResponseMessageAnnotationType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionResponseMessageAnnotationUrlCitation))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionResponseMessageRole), TypeInfoPropertyName = "ChatCompletionResponseMessageRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionResponseMessageFunctionCall))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionResponseMessageAudio2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRole), TypeInfoPropertyName = "ChatCompletionRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionStreamOptionsVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionStreamResponseDelta))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionStreamResponseDeltaFunctionCall))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionStreamResponseDeltaRole), TypeInfoPropertyName = "ChatCompletionStreamResponseDeltaRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionTokenLogprob))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionTokenLogprobTopLogprob))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionTool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionToolType), TypeInfoPropertyName = "ChatCompletionToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionToolChoiceOption), TypeInfoPropertyName = "ChatCompletionToolChoiceOption2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionToolChoiceOptionEnum), TypeInfoPropertyName = "ChatCompletionToolChoiceOptionEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChunkingStrategyRequestParam), TypeInfoPropertyName = "ChunkingStrategyRequestParam2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.StaticChunkingStrategyRequestParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CodeInterpreterFileOutput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CodeInterpreterFileOutputType), TypeInfoPropertyName = "CodeInterpreterFileOutputType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CodeInterpreterFileOutputFile))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CodeInterpreterTextOutput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CodeInterpreterTextOutputType), TypeInfoPropertyName = "CodeInterpreterTextOutputType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CodeInterpreterTool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CodeInterpreterToolType), TypeInfoPropertyName = "CodeInterpreterToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfStringAutoCodeInterpreterToolParam2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AutoCodeInterpreterToolParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCallType), TypeInfoPropertyName = "CodeInterpreterToolCallType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCallStatus), TypeInfoPropertyName = "CodeInterpreterToolCallStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputsVariant1Item), TypeInfoPropertyName = "OutputsVariant1Item2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CodeInterpreterOutputLogs))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CodeInterpreterOutputImage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCallOutputsVariant1ItemDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComparisonFilter))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComparisonFilterType), TypeInfoPropertyName = "ComparisonFilterType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>>), TypeInfoPropertyName = "OneOfStringDoubleBooleanIListOneOfStringDouble2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfStringDouble2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CompleteUploadRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CompletionUsage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CompletionUsageCompletionTokensDetails))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CompletionUsagePromptTokensDetails))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CompoundFilter))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CompoundFilterType), TypeInfoPropertyName = "CompoundFilterType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FiltersItem), TypeInfoPropertyName = "FiltersItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CompoundFilterFilterDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerAction), TypeInfoPropertyName = "ComputerAction2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ClickParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DoubleClickAction))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DragParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.KeyPressAction))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MoveParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ScreenshotParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ScrollParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TypeParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WaitParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerActionDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerScreenshotImage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerScreenshotImageType), TypeInfoPropertyName = "ComputerScreenshotImageType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerToolCall))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerToolCallType), TypeInfoPropertyName = "ComputerToolCallType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerCallSafetyCheckParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerToolCallStatus), TypeInfoPropertyName = "ComputerToolCallStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerToolCallOutput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputType), TypeInfoPropertyName = "ComputerToolCallOutputType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputStatus), TypeInfoPropertyName = "ComputerToolCallOutputStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource), TypeInfoPropertyName = "ComputerToolCallOutputResource2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerCallOutputStatus), TypeInfoPropertyName = "ComputerCallOutputStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerFileListResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerFileListResourceObject), TypeInfoPropertyName = "ContainerFileListResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerFileResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerListResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerListResourceObject), TypeInfoPropertyName = "ContainerListResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerResourceExpiresAfter))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerResourceExpiresAfterAnchor), TypeInfoPropertyName = "ContainerResourceExpiresAfterAnchor2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerResourceMemoryLimit), TypeInfoPropertyName = "ContainerResourceMemoryLimit2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerResourceNetworkPolicy))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerResourceNetworkPolicyType), TypeInfoPropertyName = "ContainerResourceNetworkPolicyType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Content5), TypeInfoPropertyName = "Content52")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputContent), TypeInfoPropertyName = "InputContent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputContent), TypeInfoPropertyName = "OutputContent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ConversationItem), TypeInfoPropertyName = "ConversationItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Message))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionToolCallResource), TypeInfoPropertyName = "FunctionToolCallResource2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource), TypeInfoPropertyName = "FunctionToolCallOutputResource2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileSearchToolCall))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchToolCall))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenToolCall))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchCall))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchOutput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ReasoningItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CompactionBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LocalShellToolCall))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCall))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchToolCall))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPListTools))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPApprovalRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPToolCall))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolCall))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolCallOutput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ConversationItemDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ConversationItemList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ConversationItemListObject), TypeInfoPropertyName = "ConversationItemListObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ConversationParam), TypeInfoPropertyName = "ConversationParam3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ConversationParam2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CostsResult))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CostsResultObject), TypeInfoPropertyName = "CostsResultObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CostsResultAmount))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateAssistantRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringAssistantSupportedModels2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ReasoningEffortEnum))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateAssistantRequestToolResources2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesCodeInterpreter))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearch))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStore))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfCreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyCreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategy))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyType), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyType), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyStatic))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionRequest), TypeInfoPropertyName = "CreateChatCompletionRequest2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModelResponseProperties), TypeInfoPropertyName = "CreateModelResponseProperties2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModelIdsShared), TypeInfoPropertyName = "ModelIdsShared2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VerbosityEnum))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2WebSearchOptions))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocation))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocationType), TypeInfoPropertyName = "CreateChatCompletionRequestVariant2WebSearchOptionsUserLocationType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchLocation))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchContextSize), TypeInfoPropertyName = "WebSearchContextSize2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFormat), TypeInfoPropertyName = "ResponseFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2ResponseFormatDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2Audio))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceIdsOrCustomVoice), TypeInfoPropertyName = "VoiceIdsOrCustomVoice2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2AudioFormat), TypeInfoPropertyName = "CreateChatCompletionRequestVariant2AudioFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.StopConfiguration), TypeInfoPropertyName = "StopConfiguration2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PredictionContent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfChatCompletionToolCustomToolChatCompletions2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolChatCompletions))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfCreateChatCompletionRequestVariant2FunctionCallChatCompletionFunctionCallOption2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2FunctionCall), TypeInfoPropertyName = "CreateChatCompletionRequestVariant2FunctionCall2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionResponseChoice))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionResponseChoiceFinishReason), TypeInfoPropertyName = "CreateChatCompletionResponseChoiceFinishReason2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionResponseChoiceLogprobs2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ServiceTierEnum))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionResponseObject), TypeInfoPropertyName = "CreateChatCompletionResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionStreamResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionStreamResponseChoice))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionStreamResponseChoiceLogprobs))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionStreamResponseChoiceFinishReason), TypeInfoPropertyName = "CreateChatCompletionStreamResponseChoiceFinishReason2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionStreamResponseObject), TypeInfoPropertyName = "CreateChatCompletionStreamResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateCompletionRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringCreateCompletionRequestModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateCompletionRequestModel), TypeInfoPropertyName = "CreateCompletionRequestModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>), TypeInfoPropertyName = "OneOfStringIListStringIListInt32IListIListInt322")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateCompletionResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateCompletionResponseChoice))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateCompletionResponseChoiceFinishReason), TypeInfoPropertyName = "CreateCompletionResponseChoiceFinishReason2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateCompletionResponseChoiceLogprobs2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateCompletionResponseObject), TypeInfoPropertyName = "CreateCompletionResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateContainerBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateContainerBodyExpiresAfter))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateContainerBodyExpiresAfterAnchor), TypeInfoPropertyName = "CreateContainerBodyExpiresAfterAnchor2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SkillsItem), TypeInfoPropertyName = "SkillsItem3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SkillReferenceParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InlineSkillParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateContainerBodySkillDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateContainerBodyMemoryLimit), TypeInfoPropertyName = "CreateContainerBodyMemoryLimit2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.NetworkPolicy), TypeInfoPropertyName = "NetworkPolicy4")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateContainerBodyNetworkPolicyDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateContainerFileBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEmbeddingRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringCreateEmbeddingRequestModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEmbeddingRequestModel), TypeInfoPropertyName = "CreateEmbeddingRequestModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEmbeddingRequestEncodingFormat), TypeInfoPropertyName = "CreateEmbeddingRequestEncodingFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEmbeddingResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Embedding))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEmbeddingResponseObject), TypeInfoPropertyName = "CreateEmbeddingResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEmbeddingResponseUsage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceType), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfCreateEvalCompletionsRunDataSourceInputMessagesTemplateInputMessagesCreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesTemplateInputMessages))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesTemplateInputMessagesType), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesTemplateInputMessagesType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfEasyInputMessageEvalItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EasyInputMessage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessagesType), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessagesType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceSamplingParams))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfResponseFormatTextResponseFormatJsonSchemaResponseFormatJsonObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfEvalJsonlFileContentSourceEvalJsonlFileIdSourceEvalStoredCompletionsSource2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalJsonlFileContentSource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalJsonlFileIdSource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalStoredCompletionsSource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalCustomDataSourceConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalCustomDataSourceConfigType), TypeInfoPropertyName = "CreateEvalCustomDataSourceConfigType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalItem), TypeInfoPropertyName = "CreateEvalItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalItemSimpleInputMessage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalJsonlRunDataSource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalJsonlRunDataSourceType), TypeInfoPropertyName = "CreateEvalJsonlRunDataSourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfEvalJsonlFileContentSourceEvalJsonlFileIdSource2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalLabelModelGrader))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalLabelModelGraderType), TypeInfoPropertyName = "CreateEvalLabelModelGraderType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalLogsDataSourceConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalLogsDataSourceConfigType), TypeInfoPropertyName = "CreateEvalLogsDataSourceConfigType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfCreateEvalCustomDataSourceConfigCreateEvalLogsDataSourceConfigCreateEvalStoredCompletionsDataSourceConfig2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfCreateEvalLabelModelGraderEvalGraderStringCheckEvalGraderTextSimilarityEvalGraderPythonEvalGraderScoreModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalGraderStringCheck), TypeInfoPropertyName = "EvalGraderStringCheck2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalGraderTextSimilarity), TypeInfoPropertyName = "EvalGraderTextSimilarity2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalGraderPython), TypeInfoPropertyName = "EvalGraderPython2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalGraderScoreModel), TypeInfoPropertyName = "EvalGraderScoreModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceType), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfCreateEvalResponsesRunDataSourceInputMessagesInputMessagesTemplateCreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesTemplate))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesTemplateType), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesTemplateType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfCreateEvalResponsesRunDataSourceInputMessagesInputMessagesTemplateTemplateItemEvalItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesTemplateTemplateItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReferenceType), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReferenceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceSamplingParams))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Tool), TypeInfoPropertyName = "Tool2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceSamplingParamsText))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TextResponseFormatConfiguration), TypeInfoPropertyName = "TextResponseFormatConfiguration2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfEvalJsonlFileContentSourceEvalJsonlFileIdSourceEvalResponsesSource2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalResponsesSource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalRunRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfCreateEvalJsonlRunDataSourceCreateEvalCompletionsRunDataSourceCreateEvalResponsesRunDataSource2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfigType), TypeInfoPropertyName = "CreateEvalStoredCompletionsDataSourceConfigType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateFileRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateFileRequestPurpose), TypeInfoPropertyName = "CreateFileRequestPurpose2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileExpirationAfter))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateFineTuningCheckpointPermissionRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateFineTuningJobRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringCreateFineTuningJobRequestModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateFineTuningJobRequestModel), TypeInfoPropertyName = "CreateFineTuningJobRequestModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparameters))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfCreateFineTuningJobRequestHyperparametersBatchSizeInt322")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersBatchSize), TypeInfoPropertyName = "CreateFineTuningJobRequestHyperparametersBatchSize2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfCreateFineTuningJobRequestHyperparametersLearningRateMultiplierDouble2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersLearningRateMultiplier), TypeInfoPropertyName = "CreateFineTuningJobRequestHyperparametersLearningRateMultiplier2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfCreateFineTuningJobRequestHyperparametersNEpochsInt322")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersNEpochs), TypeInfoPropertyName = "CreateFineTuningJobRequestHyperparametersNEpochs2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateFineTuningJobRequestIntegration))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateFineTuningJobRequestIntegrationType), TypeInfoPropertyName = "CreateFineTuningJobRequestIntegrationType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateFineTuningJobRequestIntegrationWandb))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneMethod))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateGroupBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateGroupUserBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateImageEditRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf>), TypeInfoPropertyName = "AnyOfByteArrayIListByteArray2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateImageEditRequestBackground), TypeInfoPropertyName = "CreateImageEditRequestBackground2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringCreateImageEditRequestModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateImageEditRequestModel), TypeInfoPropertyName = "CreateImageEditRequestModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateImageEditRequestSize), TypeInfoPropertyName = "CreateImageEditRequestSize2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateImageEditRequestResponseFormat), TypeInfoPropertyName = "CreateImageEditRequestResponseFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateImageEditRequestOutputFormat), TypeInfoPropertyName = "CreateImageEditRequestOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputFidelity))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateImageEditRequestQuality), TypeInfoPropertyName = "CreateImageEditRequestQuality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateImageRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringCreateImageRequestModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateImageRequestModel), TypeInfoPropertyName = "CreateImageRequestModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateImageRequestQuality), TypeInfoPropertyName = "CreateImageRequestQuality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateImageRequestResponseFormat), TypeInfoPropertyName = "CreateImageRequestResponseFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateImageRequestOutputFormat), TypeInfoPropertyName = "CreateImageRequestOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateImageRequestSize), TypeInfoPropertyName = "CreateImageRequestSize2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateImageRequestModeration), TypeInfoPropertyName = "CreateImageRequestModeration2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateImageRequestBackground), TypeInfoPropertyName = "CreateImageRequestBackground2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateImageRequestStyle), TypeInfoPropertyName = "CreateImageRequestStyle2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateImageVariationRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringCreateImageVariationRequestModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateImageVariationRequestModel), TypeInfoPropertyName = "CreateImageVariationRequestModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateImageVariationRequestResponseFormat), TypeInfoPropertyName = "CreateImageVariationRequestResponseFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateImageVariationRequestSize), TypeInfoPropertyName = "CreateImageVariationRequestSize2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateMessageRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateMessageRequestRole), TypeInfoPropertyName = "CreateMessageRequestRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>>), TypeInfoPropertyName = "OneOfStringIListOneOfMessageContentImageFileObjectMessageContentImageUrlObjectMessageRequestContentTextObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfMessageContentImageFileObjectMessageContentImageUrlObjectMessageRequestContentTextObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentImageFileObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentImageUrlObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageRequestContentTextObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateMessageRequestAttachmentsVariant1Item))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfAssistantToolsCodeAssistantToolsFileSearchTypeOnly2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModelResponseProperties))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>), TypeInfoPropertyName = "OneOfStringIListStringIListOneOfCreateModerationRequestInputVariant3ItemVariant1CreateModerationRequestInputVariant3ItemVariant22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfCreateModerationRequestInputVariant3ItemVariant1CreateModerationRequestInputVariant3ItemVariant22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1Type), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1ImageUrl))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant2Type), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringCreateModerationRequestModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationRequestModel), TypeInfoPropertyName = "CreateModerationRequestModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationResponseResult))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationResponseResultCategories))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationResponseResultCategoryScores))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypes))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHateItem), TypeInfoPropertyName = "CreateModerationResponseResultCategoryAppliedInputTypesHateItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItem), TypeInfoPropertyName = "CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItem), TypeInfoPropertyName = "CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItem), TypeInfoPropertyName = "CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItem), TypeInfoPropertyName = "CreateModerationResponseResultCategoryAppliedInputTypesIllicitItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItem), TypeInfoPropertyName = "CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItem), TypeInfoPropertyName = "CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItem), TypeInfoPropertyName = "CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstruction), TypeInfoPropertyName = "CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstruction2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSexualItem), TypeInfoPropertyName = "CreateModerationResponseResultCategoryAppliedInputTypesSexualItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinor), TypeInfoPropertyName = "CreateModerationResponseResultCategoryAppliedInputTypesSexualMinor2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItem), TypeInfoPropertyName = "CreateModerationResponseResultCategoryAppliedInputTypesViolenceItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItem), TypeInfoPropertyName = "CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateResponse), TypeInfoPropertyName = "CreateResponse2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseProperties))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateResponseVariant3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputParam), TypeInfoPropertyName = "InputParam2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.IncludeEnum), TypeInfoPropertyName = "IncludeEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseStreamOptionsVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContextManagementParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateRunRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "AllOfTruncationObjectObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TruncationObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "AllOfAssistantsApiToolChoiceOptionObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSpeechRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringCreateSpeechRequestModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSpeechRequestModel), TypeInfoPropertyName = "CreateSpeechRequestModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSpeechRequestResponseFormat), TypeInfoPropertyName = "CreateSpeechRequestResponseFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSpeechRequestStreamFormat), TypeInfoPropertyName = "CreateSpeechRequestStreamFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSpeechResponseStreamEvent), TypeInfoPropertyName = "CreateSpeechResponseStreamEvent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpeechAudioDeltaEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpeechAudioDoneEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSpeechResponseStreamEventDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateThreadAndRunRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateThreadRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringCreateThreadAndRunRequestModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateThreadAndRunRequestModel), TypeInfoPropertyName = "CreateThreadAndRunRequestModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResources))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResourcesCodeInterpreter))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResourcesFileSearch))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateThreadRequestToolResources2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateThreadRequestToolResourcesCodeInterpreter))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearch))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStore))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfCreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyCreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategy))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyType), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyType), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyStatic))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranscriptionRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringCreateTranscriptionRequestModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranscriptionRequestModel), TypeInfoPropertyName = "CreateTranscriptionRequestModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptionInclude), TypeInfoPropertyName = "TranscriptionInclude2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranscriptionRequestTimestampGranularitie), TypeInfoPropertyName = "CreateTranscriptionRequestTimestampGranularitie2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranscriptionRequestChunkingStrategyVariant1), TypeInfoPropertyName = "CreateTranscriptionRequestChunkingStrategyVariant12")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VadConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJson))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonTask), TypeInfoPropertyName = "CreateTranscriptionResponseDiarizedJsonTask2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptionDiarizedSegment))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsage), TypeInfoPropertyName = "CreateTranscriptionResponseDiarizedJsonUsage2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptTextUsageTokens))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptTextUsageDuration))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsageDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranscriptionResponseJson))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranscriptionResponseJsonLogprob))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfTranscriptTextUsageTokensTranscriptTextUsageDuration2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEvent), TypeInfoPropertyName = "CreateTranscriptionResponseStreamEvent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptTextSegmentEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptTextDeltaEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptTextDoneEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranscriptionResponseVerboseJson))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptionWord))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptionSegment))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranslationRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringCreateTranslationRequestModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranslationRequestModel), TypeInfoPropertyName = "CreateTranslationRequestModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranslationRequestResponseFormat), TypeInfoPropertyName = "CreateTranslationRequestResponseFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranslationResponseJson))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranslationResponseVerboseJson))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateUploadRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateUploadRequestPurpose), TypeInfoPropertyName = "CreateUploadRequestPurpose2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateVectorStoreFileBatchRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateVectorStoreFileRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateVectorStoreRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreExpirationAfter))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfAutoChunkingStrategyRequestParamStaticChunkingStrategyRequestParam2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateVoiceConsentRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateVoiceRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolCallType), TypeInfoPropertyName = "CustomToolCallType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolCallOutputType), TypeInfoPropertyName = "CustomToolCallOutputType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>), TypeInfoPropertyName = "OneOfStringIListFunctionAndCustomToolCallOutput2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionAndCustomToolCallOutput), TypeInfoPropertyName = "FunctionAndCustomToolCallOutput2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolCallOutputResource), TypeInfoPropertyName = "CustomToolCallOutputResource2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolCallOutputResourceVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionCallOutputStatusEnum), TypeInfoPropertyName = "FunctionCallOutputStatusEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolCallResource), TypeInfoPropertyName = "CustomToolCallResource2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolCallResourceVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionCallStatus), TypeInfoPropertyName = "FunctionCallStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolChatCompletionsType), TypeInfoPropertyName = "CustomToolChatCompletionsType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolChatCompletionsCustom))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfCustomToolChatCompletionsCustomFormatTextFormatCustomToolChatCompletionsCustomFormatGrammarFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatTextFormat))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatTextFormatType), TypeInfoPropertyName = "CustomToolChatCompletionsCustomFormatTextFormatType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatGrammarFormat))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatGrammarFormatType), TypeInfoPropertyName = "CustomToolChatCompletionsCustomFormatGrammarFormatType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatGrammarFormatGrammar))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatGrammarFormatGrammarSyntax), TypeInfoPropertyName = "CustomToolChatCompletionsCustomFormatGrammarFormatGrammarSyntax2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteAssistantResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteAssistantResponseObject), TypeInfoPropertyName = "DeleteAssistantResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteCertificateResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteCertificateResponseObject), TypeInfoPropertyName = "DeleteCertificateResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteFileResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteFileResponseObject), TypeInfoPropertyName = "DeleteFileResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteFineTuningCheckpointPermissionResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteFineTuningCheckpointPermissionResponseObject), TypeInfoPropertyName = "DeleteFineTuningCheckpointPermissionResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteMessageResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteMessageResponseObject), TypeInfoPropertyName = "DeleteMessageResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteModelResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteThreadResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteThreadResponseObject), TypeInfoPropertyName = "DeleteThreadResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteVectorStoreFileResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteVectorStoreFileResponseObject), TypeInfoPropertyName = "DeleteVectorStoreFileResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteVectorStoreResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteVectorStoreResponseObject), TypeInfoPropertyName = "DeleteVectorStoreResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeletedConversation), TypeInfoPropertyName = "DeletedConversation2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeletedConversationResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeletedRoleAssignmentResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DoneEventEvent), TypeInfoPropertyName = "DoneEventEvent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DoneEventData), TypeInfoPropertyName = "DoneEventData2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EasyInputMessageRole), TypeInfoPropertyName = "EasyInputMessageRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>), TypeInfoPropertyName = "OneOfStringIListInputContent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessagePhase))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EasyInputMessageType), TypeInfoPropertyName = "EasyInputMessageType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EditImageBodyJsonParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringEditImageBodyJsonParamModelObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EditImageBodyJsonParamModel), TypeInfoPropertyName = "EditImageBodyJsonParamModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageRefParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EditImageBodyJsonParamQuality2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EditImageBodyJsonParamInputFidelity2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EditImageBodyJsonParamSize2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EditImageBodyJsonParamOutputFormat2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EditImageBodyJsonParamModeration2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EditImageBodyJsonParamBackground2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(float))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EmbeddingObject), TypeInfoPropertyName = "EmbeddingObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Error))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ErrorEventEvent), TypeInfoPropertyName = "ErrorEventEvent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ErrorResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Eval))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalObject), TypeInfoPropertyName = "EvalObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfEvalCustomDataSourceConfigEvalLogsDataSourceConfigEvalStoredCompletionsDataSourceConfig2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalCustomDataSourceConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalLogsDataSourceConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfEvalGraderLabelModelEvalGraderStringCheckEvalGraderTextSimilarityEvalGraderPythonEvalGraderScoreModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalGraderLabelModel), TypeInfoPropertyName = "EvalGraderLabelModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalApiError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalCustomDataSourceConfigType), TypeInfoPropertyName = "EvalCustomDataSourceConfigType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GraderLabelModel))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GraderPython))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalGraderPythonVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GraderScoreModel))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalGraderScoreModelVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GraderStringCheck))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GraderTextSimilarity))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalItemRole), TypeInfoPropertyName = "EvalItemRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalItemContent), TypeInfoPropertyName = "EvalItemContent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalItemType), TypeInfoPropertyName = "EvalItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalItemContentItem), TypeInfoPropertyName = "EvalItemContentItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputTextContent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalItemContentOutputText))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalItemInputImage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputAudio))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalItemContentOutputTextType), TypeInfoPropertyName = "EvalItemContentOutputTextType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalItemInputImageType), TypeInfoPropertyName = "EvalItemInputImageType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalJsonlFileContentSourceType), TypeInfoPropertyName = "EvalJsonlFileContentSourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalJsonlFileContentSourceContentItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalJsonlFileIdSourceType), TypeInfoPropertyName = "EvalJsonlFileIdSourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalListObject), TypeInfoPropertyName = "EvalListObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalLogsDataSourceConfigType), TypeInfoPropertyName = "EvalLogsDataSourceConfigType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalResponsesSourceType), TypeInfoPropertyName = "EvalResponsesSourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalRun))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalRunObject), TypeInfoPropertyName = "EvalRunObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalRunResultCounts))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalRunPerModelUsageItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalRunPerTestingCriteriaResult))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalRunList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalRunListObject), TypeInfoPropertyName = "EvalRunListObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalRunOutputItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalRunOutputItemObject), TypeInfoPropertyName = "EvalRunOutputItemObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalRunOutputItemResult))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalRunOutputItemSample))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalRunOutputItemSampleInputItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalRunOutputItemSampleOutputItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalRunOutputItemSampleUsage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalRunOutputItemList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalRunOutputItemListObject), TypeInfoPropertyName = "EvalRunOutputItemListObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfigType), TypeInfoPropertyName = "EvalStoredCompletionsDataSourceConfigType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalStoredCompletionsSourceType), TypeInfoPropertyName = "EvalStoredCompletionsSourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileExpirationAfterAnchor), TypeInfoPropertyName = "FileExpirationAfterAnchor2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FilePath))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FilePathType), TypeInfoPropertyName = "FilePathType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileSearchRanker), TypeInfoPropertyName = "FileSearchRanker2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileSearchToolCallType), TypeInfoPropertyName = "FileSearchToolCallType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileSearchToolCallStatus), TypeInfoPropertyName = "FileSearchToolCallStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileSearchToolCallResultsVariant1Item))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessage), TypeInfoPropertyName = "FineTuneChatCompletionRequestAssistantMessage2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessageAssistantMessage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneDPOHyperparameters))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfFineTuneDPOHyperparametersBetaDouble2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneDPOHyperparametersBeta), TypeInfoPropertyName = "FineTuneDPOHyperparametersBeta2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfFineTuneDPOHyperparametersBatchSizeInt322")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneDPOHyperparametersBatchSize), TypeInfoPropertyName = "FineTuneDPOHyperparametersBatchSize2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfFineTuneDPOHyperparametersLearningRateMultiplierDouble2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneDPOHyperparametersLearningRateMultiplier), TypeInfoPropertyName = "FineTuneDPOHyperparametersLearningRateMultiplier2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfFineTuneDPOHyperparametersNEpochsInt322")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneDPOHyperparametersNEpochs), TypeInfoPropertyName = "FineTuneDPOHyperparametersNEpochs2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneDPOMethod))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneMethodType), TypeInfoPropertyName = "FineTuneMethodType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneSupervisedMethod))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneReinforcementMethod))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneReinforcementHyperparameters))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfFineTuneReinforcementHyperparametersBatchSizeInt322")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersBatchSize), TypeInfoPropertyName = "FineTuneReinforcementHyperparametersBatchSize2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfFineTuneReinforcementHyperparametersLearningRateMultiplierDouble2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersLearningRateMultiplier), TypeInfoPropertyName = "FineTuneReinforcementHyperparametersLearningRateMultiplier2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfFineTuneReinforcementHyperparametersNEpochsInt322")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersNEpochs), TypeInfoPropertyName = "FineTuneReinforcementHyperparametersNEpochs2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersReasoningEffort), TypeInfoPropertyName = "FineTuneReinforcementHyperparametersReasoningEffort2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfFineTuneReinforcementHyperparametersComputeMultiplierDouble2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersComputeMultiplier), TypeInfoPropertyName = "FineTuneReinforcementHyperparametersComputeMultiplier2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfFineTuneReinforcementHyperparametersEvalIntervalInt322")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersEvalInterval), TypeInfoPropertyName = "FineTuneReinforcementHyperparametersEvalInterval2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfFineTuneReinforcementHyperparametersEvalSamplesInt322")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersEvalSamples), TypeInfoPropertyName = "FineTuneReinforcementHyperparametersEvalSamples2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfGraderStringCheckGraderTextSimilarityGraderPythonGraderScoreModelGraderMulti2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GraderMulti))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneSupervisedHyperparameters))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfFineTuneSupervisedHyperparametersBatchSizeInt322")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersBatchSize), TypeInfoPropertyName = "FineTuneSupervisedHyperparametersBatchSize2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfFineTuneSupervisedHyperparametersLearningRateMultiplierDouble2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersLearningRateMultiplier), TypeInfoPropertyName = "FineTuneSupervisedHyperparametersLearningRateMultiplier2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfFineTuneSupervisedHyperparametersNEpochsInt322")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersNEpochs), TypeInfoPropertyName = "FineTuneSupervisedHyperparametersNEpochs2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningCheckpointPermission))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningCheckpointPermissionObject), TypeInfoPropertyName = "FineTuningCheckpointPermissionObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningIntegration))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningIntegrationType), TypeInfoPropertyName = "FineTuningIntegrationType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningIntegrationWandb))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningJob))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningJobError2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningJobHyperparameters))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningJobHyperparametersBatchSizeVariant1), TypeInfoPropertyName = "FineTuningJobHyperparametersBatchSizeVariant12")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfFineTuningJobHyperparametersLearningRateMultiplierDouble2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningJobHyperparametersLearningRateMultiplier), TypeInfoPropertyName = "FineTuningJobHyperparametersLearningRateMultiplier2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfFineTuningJobHyperparametersNEpochsInt322")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningJobHyperparametersNEpochs), TypeInfoPropertyName = "FineTuningJobHyperparametersNEpochs2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningJobObject), TypeInfoPropertyName = "FineTuningJobObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningJobStatus), TypeInfoPropertyName = "FineTuningJobStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningJobCheckpoint))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningJobCheckpointMetrics))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningJobCheckpointObject), TypeInfoPropertyName = "FineTuningJobCheckpointObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningJobEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningJobEventObject), TypeInfoPropertyName = "FineTuningJobEventObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningJobEventLevel), TypeInfoPropertyName = "FineTuningJobEventLevel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningJobEventType), TypeInfoPropertyName = "FineTuningJobEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputImageContent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputFileContent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionAndCustomToolCallOutputDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionToolCall))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionToolCallType), TypeInfoPropertyName = "FunctionToolCallType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionToolCallStatus), TypeInfoPropertyName = "FunctionToolCallStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionToolCallOutput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionToolCallOutputType), TypeInfoPropertyName = "FunctionToolCallOutputType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionToolCallOutputStatus), TypeInfoPropertyName = "FunctionToolCallOutputStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionToolCallResourceVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GraderLabelModelType), TypeInfoPropertyName = "GraderLabelModelType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GraderMultiType), TypeInfoPropertyName = "GraderMultiType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfGraderStringCheckGraderTextSimilarityGraderPythonGraderScoreModelGraderLabelModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GraderPythonType), TypeInfoPropertyName = "GraderPythonType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GraderScoreModelType), TypeInfoPropertyName = "GraderScoreModelType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GraderScoreModelSamplingParams))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GraderStringCheckType), TypeInfoPropertyName = "GraderStringCheckType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GraderStringCheckOperation), TypeInfoPropertyName = "GraderStringCheckOperation2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GraderTextSimilarityType), TypeInfoPropertyName = "GraderTextSimilarityType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GraderTextSimilarityEvaluationMetric), TypeInfoPropertyName = "GraderTextSimilarityEvaluationMetric2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Group))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupObject), TypeInfoPropertyName = "GroupObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupDeletedResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupDeletedResourceObject), TypeInfoPropertyName = "GroupDeletedResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupListResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupListResourceObject), TypeInfoPropertyName = "GroupListResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupResourceWithSuccess))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupRoleAssignment))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupRoleAssignmentObject), TypeInfoPropertyName = "GroupRoleAssignmentObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Role))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupUserAssignment))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupUserAssignmentObject), TypeInfoPropertyName = "GroupUserAssignmentObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupUserDeletedResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupUserDeletedResourceObject), TypeInfoPropertyName = "GroupUserDeletedResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Image2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageEditCompletedEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageEditCompletedEventType), TypeInfoPropertyName = "ImageEditCompletedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageEditCompletedEventSize), TypeInfoPropertyName = "ImageEditCompletedEventSize2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageEditCompletedEventQuality), TypeInfoPropertyName = "ImageEditCompletedEventQuality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageEditCompletedEventBackground), TypeInfoPropertyName = "ImageEditCompletedEventBackground2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageEditCompletedEventOutputFormat), TypeInfoPropertyName = "ImageEditCompletedEventOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImagesUsage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageEditPartialImageEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageEditPartialImageEventType), TypeInfoPropertyName = "ImageEditPartialImageEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageEditPartialImageEventSize), TypeInfoPropertyName = "ImageEditPartialImageEventSize2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageEditPartialImageEventQuality), TypeInfoPropertyName = "ImageEditPartialImageEventQuality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageEditPartialImageEventBackground), TypeInfoPropertyName = "ImageEditPartialImageEventBackground2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageEditPartialImageEventOutputFormat), TypeInfoPropertyName = "ImageEditPartialImageEventOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageEditStreamEvent), TypeInfoPropertyName = "ImageEditStreamEvent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageEditStreamEventDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenCompletedEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenCompletedEventType), TypeInfoPropertyName = "ImageGenCompletedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenCompletedEventSize), TypeInfoPropertyName = "ImageGenCompletedEventSize2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenCompletedEventQuality), TypeInfoPropertyName = "ImageGenCompletedEventQuality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenCompletedEventBackground), TypeInfoPropertyName = "ImageGenCompletedEventBackground2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenCompletedEventOutputFormat), TypeInfoPropertyName = "ImageGenCompletedEventOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenPartialImageEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenPartialImageEventType), TypeInfoPropertyName = "ImageGenPartialImageEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenPartialImageEventSize), TypeInfoPropertyName = "ImageGenPartialImageEventSize2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenPartialImageEventQuality), TypeInfoPropertyName = "ImageGenPartialImageEventQuality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenPartialImageEventBackground), TypeInfoPropertyName = "ImageGenPartialImageEventBackground2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenPartialImageEventOutputFormat), TypeInfoPropertyName = "ImageGenPartialImageEventOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenStreamEvent), TypeInfoPropertyName = "ImageGenStreamEvent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenStreamEventDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenTool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenToolType), TypeInfoPropertyName = "ImageGenToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringImageGenToolModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenToolModel), TypeInfoPropertyName = "ImageGenToolModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenToolQuality), TypeInfoPropertyName = "ImageGenToolQuality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenToolSize), TypeInfoPropertyName = "ImageGenToolSize2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenToolOutputFormat), TypeInfoPropertyName = "ImageGenToolOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenToolModeration), TypeInfoPropertyName = "ImageGenToolModeration2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenToolBackground), TypeInfoPropertyName = "ImageGenToolBackground2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenToolInputImageMask))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenActionEnum), TypeInfoPropertyName = "ImageGenActionEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenToolCallType), TypeInfoPropertyName = "ImageGenToolCallType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenToolCallStatus), TypeInfoPropertyName = "ImageGenToolCallStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImagesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImagesResponseBackground), TypeInfoPropertyName = "ImagesResponseBackground2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImagesResponseOutputFormat), TypeInfoPropertyName = "ImagesResponseOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImagesResponseSize), TypeInfoPropertyName = "ImagesResponseSize2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImagesResponseQuality), TypeInfoPropertyName = "ImagesResponseQuality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenUsage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImagesUsageInputTokensDetails))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputAudioType), TypeInfoPropertyName = "InputAudioType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputAudioInputAudio1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputAudioInputAudio1Format), TypeInfoPropertyName = "InputAudioInputAudio1Format2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputContentDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputItem), TypeInfoPropertyName = "InputItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Item), TypeInfoPropertyName = "Item2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ItemReferenceParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputItemDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputMessage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputMessageType), TypeInfoPropertyName = "InputMessageType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputMessageRole), TypeInfoPropertyName = "InputMessageRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputMessageStatus), TypeInfoPropertyName = "InputMessageStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputMessageResource), TypeInfoPropertyName = "InputMessageResource2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputMessageResourceVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Invite))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteObject), TypeInfoPropertyName = "InviteObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteRole), TypeInfoPropertyName = "InviteRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteStatus), TypeInfoPropertyName = "InviteStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteProject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteProjectRole), TypeInfoPropertyName = "InviteProjectRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteDeleteResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteDeleteResponseObject), TypeInfoPropertyName = "InviteDeleteResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteListResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteListResponseObject), TypeInfoPropertyName = "InviteListResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteProjectGroupBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteRequestRole), TypeInfoPropertyName = "InviteRequestRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteRequestProject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteRequestProjectRole), TypeInfoPropertyName = "InviteRequestProjectRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputMessage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerCallOutputItemParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionCallOutputItemParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchCallItemParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchOutputItemParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CompactionSummaryItemParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallItemParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputItemParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallItemParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPApprovalResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ItemDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ItemResource), TypeInfoPropertyName = "ItemResource2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ItemResourceDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListAssistantsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListAuditLogsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListAuditLogsResponseObject), TypeInfoPropertyName = "ListAuditLogsResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListBatchesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListBatchesResponseObject), TypeInfoPropertyName = "ListBatchesResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListCertificatesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListCertificatesResponseObject), TypeInfoPropertyName = "ListCertificatesResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListFilesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OpenAIFile))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponseObject), TypeInfoPropertyName = "ListFineTuningCheckpointPermissionResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListFineTuningJobCheckpointsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListFineTuningJobCheckpointsResponseObject), TypeInfoPropertyName = "ListFineTuningJobCheckpointsResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListFineTuningJobEventsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListFineTuningJobEventsResponseObject), TypeInfoPropertyName = "ListFineTuningJobEventsResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListMessagesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListModelsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListModelsResponseObject), TypeInfoPropertyName = "ListModelsResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Model17))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListPaginatedFineTuningJobsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListPaginatedFineTuningJobsResponseObject), TypeInfoPropertyName = "ListPaginatedFineTuningJobsResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListRunStepsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListRunsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListVectorStoreFilesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreFileObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListVectorStoresResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LocalShellToolCallType), TypeInfoPropertyName = "LocalShellToolCallType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LocalShellExecAction))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LocalShellToolCallStatus), TypeInfoPropertyName = "LocalShellToolCallStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutputType), TypeInfoPropertyName = "LocalShellToolCallOutputType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutputStatus2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LogProbProperties))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPApprovalRequestType), TypeInfoPropertyName = "MCPApprovalRequestType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPApprovalResponseType), TypeInfoPropertyName = "MCPApprovalResponseType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPApprovalResponseResourceType), TypeInfoPropertyName = "MCPApprovalResponseResourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPListToolsType), TypeInfoPropertyName = "MCPListToolsType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPListToolsTool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPTool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPToolType), TypeInfoPropertyName = "MCPToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPToolConnectorId), TypeInfoPropertyName = "MCPToolConnectorId2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::tryAGI.OpenAI.MCPToolFilter>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPToolFilter))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPToolRequireApprovalVariant1Enum))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPToolRequireApprovalVariant1Enum2), TypeInfoPropertyName = "MCPToolRequireApprovalVariant1Enum22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPToolCallType), TypeInfoPropertyName = "MCPToolCallType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPToolCallStatus), TypeInfoPropertyName = "MCPToolCallStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentImageFileObjectType), TypeInfoPropertyName = "MessageContentImageFileObjectType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentImageFileObjectImageFile))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentImageFileObjectImageFileDetail), TypeInfoPropertyName = "MessageContentImageFileObjectImageFileDetail2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentImageUrlObjectType), TypeInfoPropertyName = "MessageContentImageUrlObjectType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentImageUrlObjectImageUrl))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentImageUrlObjectImageUrlDetail), TypeInfoPropertyName = "MessageContentImageUrlObjectImageUrlDetail2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentRefusalObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentRefusalObjectType), TypeInfoPropertyName = "MessageContentRefusalObjectType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObjectType), TypeInfoPropertyName = "MessageContentTextAnnotationsFileCitationObjectType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObjectFileCitation))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObjectType), TypeInfoPropertyName = "MessageContentTextAnnotationsFilePathObjectType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObjectFilePath))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentTextObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentTextObjectType), TypeInfoPropertyName = "MessageContentTextObjectType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentTextObjectText))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfMessageContentTextAnnotationsFileCitationObjectMessageContentTextAnnotationsFilePathObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaContentImageFileObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaContentImageFileObjectType), TypeInfoPropertyName = "MessageDeltaContentImageFileObjectType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaContentImageFileObjectImageFile))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaContentImageFileObjectImageFileDetail), TypeInfoPropertyName = "MessageDeltaContentImageFileObjectImageFileDetail2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaContentImageUrlObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaContentImageUrlObjectType), TypeInfoPropertyName = "MessageDeltaContentImageUrlObjectType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaContentImageUrlObjectImageUrl))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaContentImageUrlObjectImageUrlDetail), TypeInfoPropertyName = "MessageDeltaContentImageUrlObjectImageUrlDetail2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaContentRefusalObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaContentRefusalObjectType), TypeInfoPropertyName = "MessageDeltaContentRefusalObjectType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObjectType), TypeInfoPropertyName = "MessageDeltaContentTextAnnotationsFileCitationObjectType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObjectFileCitation))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObjectType), TypeInfoPropertyName = "MessageDeltaContentTextAnnotationsFilePathObjectType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObjectFilePath))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaContentTextObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaContentTextObjectType), TypeInfoPropertyName = "MessageDeltaContentTextObjectType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaContentTextObjectText))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfMessageDeltaContentTextAnnotationsFileCitationObjectMessageDeltaContentTextAnnotationsFilePathObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaObjectObject), TypeInfoPropertyName = "MessageDeltaObjectObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaObjectDelta))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaObjectDeltaRole), TypeInfoPropertyName = "MessageDeltaObjectDeltaRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfMessageDeltaContentImageFileObjectMessageDeltaContentTextObjectMessageDeltaContentRefusalObjectMessageDeltaContentImageUrlObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageObjectObject), TypeInfoPropertyName = "MessageObjectObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageObjectStatus), TypeInfoPropertyName = "MessageObjectStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageObjectIncompleteDetails2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageObjectIncompleteDetailsReason), TypeInfoPropertyName = "MessageObjectIncompleteDetailsReason2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageObjectRole), TypeInfoPropertyName = "MessageObjectRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfMessageContentImageFileObjectMessageContentImageUrlObjectMessageContentTextObjectMessageContentRefusalObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageObjectAttachmentsVariant1Item))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageRequestContentTextObjectType), TypeInfoPropertyName = "MessageRequestContentTextObjectType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant1Event), TypeInfoPropertyName = "MessageStreamEventVariant1Event2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant2Event), TypeInfoPropertyName = "MessageStreamEventVariant2Event2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant3Event), TypeInfoPropertyName = "MessageStreamEventVariant3Event2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant4Event), TypeInfoPropertyName = "MessageStreamEventVariant4Event2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant5Event), TypeInfoPropertyName = "MessageStreamEventVariant5Event2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModelObject), TypeInfoPropertyName = "ModelObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModelIds), TypeInfoPropertyName = "ModelIds2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModelIdsResponses), TypeInfoPropertyName = "ModelIdsResponses2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModelIdsCompaction), TypeInfoPropertyName = "ModelIdsCompaction2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModelIdsResponsesEnum), TypeInfoPropertyName = "ModelIdsResponsesEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModelIdsSharedEnum), TypeInfoPropertyName = "ModelIdsSharedEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModelResponsePropertiesPromptCacheRetention2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModifyAssistantRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModifyAssistantRequestToolResources2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModifyAssistantRequestToolResourcesCodeInterpreter))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModifyAssistantRequestToolResourcesFileSearch))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModifyCertificateRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModifyMessageRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModifyRunRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModifyThreadRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModifyThreadRequestToolResources2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModifyThreadRequestToolResourcesCodeInterpreter))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModifyThreadRequestToolResourcesFileSearch))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.NoiseReductionType), TypeInfoPropertyName = "NoiseReductionType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OpenAIFileObject), TypeInfoPropertyName = "OpenAIFileObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OpenAIFilePurpose), TypeInfoPropertyName = "OpenAIFilePurpose2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OpenAIFileStatus), TypeInfoPropertyName = "OpenAIFileStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OtherChunkingStrategyResponseParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OtherChunkingStrategyResponseParamType), TypeInfoPropertyName = "OtherChunkingStrategyResponseParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputAudio))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputAudioType), TypeInfoPropertyName = "OutputAudioType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputTextContent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RefusalContent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ReasoningTextContent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputContentDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputItem), TypeInfoPropertyName = "OutputItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputItemDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputMessageType), TypeInfoPropertyName = "OutputMessageType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputMessageRole), TypeInfoPropertyName = "OutputMessageRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputMessageContent), TypeInfoPropertyName = "OutputMessageContent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputMessageStatus), TypeInfoPropertyName = "OutputMessageStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputMessageContentDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PredictionContentType), TypeInfoPropertyName = "PredictionContentType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Project))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectObject), TypeInfoPropertyName = "ProjectObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectStatus), TypeInfoPropertyName = "ProjectStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectApiKey))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectApiKeyObject), TypeInfoPropertyName = "ProjectApiKeyObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectApiKeyOwner))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectApiKeyOwnerType), TypeInfoPropertyName = "ProjectApiKeyOwnerType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectUser))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectServiceAccount))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectApiKeyDeleteResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectApiKeyDeleteResponseObject), TypeInfoPropertyName = "ProjectApiKeyDeleteResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectApiKeyListResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectApiKeyListResponseObject), TypeInfoPropertyName = "ProjectApiKeyListResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectCreateRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectCreateRequestGeography), TypeInfoPropertyName = "ProjectCreateRequestGeography2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectGroup))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectGroupObject), TypeInfoPropertyName = "ProjectGroupObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectGroupDeletedResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectGroupDeletedResourceObject), TypeInfoPropertyName = "ProjectGroupDeletedResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectGroupListResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectGroupListResourceObject), TypeInfoPropertyName = "ProjectGroupListResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectListResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectListResponseObject), TypeInfoPropertyName = "ProjectListResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectRateLimit))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectRateLimitObject), TypeInfoPropertyName = "ProjectRateLimitObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectRateLimitListResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectRateLimitListResponseObject), TypeInfoPropertyName = "ProjectRateLimitListResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectRateLimitUpdateRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectServiceAccountObject), TypeInfoPropertyName = "ProjectServiceAccountObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectServiceAccountRole), TypeInfoPropertyName = "ProjectServiceAccountRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectServiceAccountApiKey))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectServiceAccountApiKeyObject), TypeInfoPropertyName = "ProjectServiceAccountApiKeyObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectServiceAccountCreateRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectServiceAccountCreateResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectServiceAccountCreateResponseObject), TypeInfoPropertyName = "ProjectServiceAccountCreateResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectServiceAccountCreateResponseRole), TypeInfoPropertyName = "ProjectServiceAccountCreateResponseRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectServiceAccountDeleteResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectServiceAccountDeleteResponseObject), TypeInfoPropertyName = "ProjectServiceAccountDeleteResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectServiceAccountListResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectServiceAccountListResponseObject), TypeInfoPropertyName = "ProjectServiceAccountListResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectUpdateRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectUserObject), TypeInfoPropertyName = "ProjectUserObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectUserRole), TypeInfoPropertyName = "ProjectUserRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectUserCreateRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectUserCreateRequestRole), TypeInfoPropertyName = "ProjectUserCreateRequestRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectUserDeleteResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectUserDeleteResponseObject), TypeInfoPropertyName = "ProjectUserDeleteResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectUserListResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectUserUpdateRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectUserUpdateRequestRole), TypeInfoPropertyName = "ProjectUserUpdateRequestRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PromptVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PublicAssignOrganizationGroupRoleBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PublicCreateOrganizationRoleBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PublicRoleListResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PublicRoleListResourceObject), TypeInfoPropertyName = "PublicRoleListResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PublicUpdateOrganizationRoleBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeAudioFormats), TypeInfoPropertyName = "RealtimeAudioFormats2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmAudioFormat))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmAudioFormatType), TypeInfoPropertyName = "RealtimeAudioFormatsPcmAudioFormatType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmuAudioFormat))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmuAudioFormatType), TypeInfoPropertyName = "RealtimeAudioFormatsPcmuAudioFormatType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioFormat))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioFormatType), TypeInfoPropertyName = "RealtimeAudioFormatsPcmaAudioFormatType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemCreate))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemCreateType), TypeInfoPropertyName = "RealtimeBetaClientEventConversationItemCreateType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItem), TypeInfoPropertyName = "RealtimeConversationItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemDelete))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemDeleteType), TypeInfoPropertyName = "RealtimeBetaClientEventConversationItemDeleteType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemRetrieve))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemRetrieveType), TypeInfoPropertyName = "RealtimeBetaClientEventConversationItemRetrieveType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemTruncate))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemTruncateType), TypeInfoPropertyName = "RealtimeBetaClientEventConversationItemTruncateType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferAppend))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferAppendType), TypeInfoPropertyName = "RealtimeBetaClientEventInputAudioBufferAppendType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferClear))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferClearType), TypeInfoPropertyName = "RealtimeBetaClientEventInputAudioBufferClearType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferCommit))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferCommitType), TypeInfoPropertyName = "RealtimeBetaClientEventInputAudioBufferCommitType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventOutputAudioBufferClear))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventOutputAudioBufferClearType), TypeInfoPropertyName = "RealtimeBetaClientEventOutputAudioBufferClearType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCancel))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCancelType), TypeInfoPropertyName = "RealtimeBetaClientEventResponseCancelType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCreate))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCreateType), TypeInfoPropertyName = "RealtimeBetaClientEventResponseCreateType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseCreateParams))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventSessionUpdate))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventSessionUpdateType), TypeInfoPropertyName = "RealtimeBetaClientEventSessionUpdateType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventTranscriptionSessionUpdate))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventTranscriptionSessionUpdateType), TypeInfoPropertyName = "RealtimeBetaClientEventTranscriptionSessionUpdateType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseObject), TypeInfoPropertyName = "RealtimeBetaResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseStatus), TypeInfoPropertyName = "RealtimeBetaResponseStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetails))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsType), TypeInfoPropertyName = "RealtimeBetaResponseStatusDetailsType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsReason), TypeInfoPropertyName = "RealtimeBetaResponseStatusDetailsReason2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseUsage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseUsageInputTokenDetails))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseUsageInputTokenDetailsCachedTokensDetails))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseUsageOutputTokenDetails))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceIdsShared), TypeInfoPropertyName = "VoiceIdsShared2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseModalitie), TypeInfoPropertyName = "RealtimeBetaResponseModalitie2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseOutputAudioFormat), TypeInfoPropertyName = "RealtimeBetaResponseOutputAudioFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfInt32RealtimeBetaResponseMaxOutputTokens2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseMaxOutputTokens), TypeInfoPropertyName = "RealtimeBetaResponseMaxOutputTokens2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsModalitie), TypeInfoPropertyName = "RealtimeBetaResponseCreateParamsModalitie2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsOutputAudioFormat), TypeInfoPropertyName = "RealtimeBetaResponseCreateParamsOutputAudioFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsTool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsToolType), TypeInfoPropertyName = "RealtimeBetaResponseCreateParamsToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfToolChoiceOptionsToolChoiceFunctionToolChoiceMCP2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoiceOptions), TypeInfoPropertyName = "ToolChoiceOptions2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoiceFunction))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoiceMCP))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfInt32RealtimeBetaResponseCreateParamsMaxOutputTokens2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsMaxOutputTokens), TypeInfoPropertyName = "RealtimeBetaResponseCreateParamsMaxOutputTokens2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfStringRealtimeBetaResponseCreateParamsConversation2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsConversation), TypeInfoPropertyName = "RealtimeBetaResponseCreateParamsConversation2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemCreated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemCreatedType), TypeInfoPropertyName = "RealtimeBetaServerEventConversationItemCreatedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemDeleted))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemDeletedType), TypeInfoPropertyName = "RealtimeBetaServerEventConversationItemDeletedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompleted))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedType), TypeInfoPropertyName = "RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDelta))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaType), TypeInfoPropertyName = "RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailed))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedType), TypeInfoPropertyName = "RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegment))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentType), TypeInfoPropertyName = "RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemRetrieved))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemRetrievedType), TypeInfoPropertyName = "RealtimeBetaServerEventConversationItemRetrievedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemTruncated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemTruncatedType), TypeInfoPropertyName = "RealtimeBetaServerEventConversationItemTruncatedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventErrorType), TypeInfoPropertyName = "RealtimeBetaServerEventErrorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventErrorError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCleared))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferClearedType), TypeInfoPropertyName = "RealtimeBetaServerEventInputAudioBufferClearedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCommitted))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCommittedType), TypeInfoPropertyName = "RealtimeBetaServerEventInputAudioBufferCommittedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStarted))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStartedType), TypeInfoPropertyName = "RealtimeBetaServerEventInputAudioBufferSpeechStartedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStopped))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStoppedType), TypeInfoPropertyName = "RealtimeBetaServerEventInputAudioBufferSpeechStoppedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsCompleted))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsCompletedType), TypeInfoPropertyName = "RealtimeBetaServerEventMCPListToolsCompletedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsFailed))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsFailedType), TypeInfoPropertyName = "RealtimeBetaServerEventMCPListToolsFailedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsInProgress))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsInProgressType), TypeInfoPropertyName = "RealtimeBetaServerEventMCPListToolsInProgressType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedType), TypeInfoPropertyName = "RealtimeBetaServerEventRateLimitsUpdatedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedRateLimit))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedRateLimitName), TypeInfoPropertyName = "RealtimeBetaServerEventRateLimitsUpdatedRateLimitName2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDelta))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDeltaType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseAudioDeltaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDone))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDoneType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseAudioDoneType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDelta))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDeltaType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseAudioTranscriptDeltaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDone))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDoneType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseAudioTranscriptDoneType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAdded))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseContentPartAddedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPart))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPartType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseContentPartAddedPartType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDone))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDoneType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseContentPartDoneType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePart))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePartType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseContentPartDonePartType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseCreated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseCreatedType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseCreatedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseDone))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseDoneType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseDoneType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDelta))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDone))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseFunctionCallArgumentsDoneType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDelta))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseMCPCallArgumentsDeltaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDone))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDoneType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseMCPCallArgumentsDoneType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallCompleted))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallCompletedType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseMCPCallCompletedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallFailed))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallFailedType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseMCPCallFailedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallInProgress))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallInProgressType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseMCPCallInProgressType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemAdded))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemAddedType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseOutputItemAddedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemDone))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemDoneType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseOutputItemDoneType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDelta))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDeltaType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseTextDeltaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDone))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDoneType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseTextDoneType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventSessionCreated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventSessionCreatedType), TypeInfoPropertyName = "RealtimeBetaServerEventSessionCreatedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSession))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventSessionUpdated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventSessionUpdatedType), TypeInfoPropertyName = "RealtimeBetaServerEventSessionUpdatedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionCreated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionCreatedType), TypeInfoPropertyName = "RealtimeBetaServerEventTranscriptionSessionCreatedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionUpdated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionUpdatedType), TypeInfoPropertyName = "RealtimeBetaServerEventTranscriptionSessionUpdatedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeCallCreateRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGA))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeCallReferRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeCallRejectRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEvent), TypeInfoPropertyName = "RealtimeClientEvent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreate))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemDelete))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieve))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncate))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppend))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClear))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClear))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommit))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCancel))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCreate))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreateType), TypeInfoPropertyName = "RealtimeClientEventConversationItemCreateType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemDeleteType), TypeInfoPropertyName = "RealtimeClientEventConversationItemDeleteType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieveType), TypeInfoPropertyName = "RealtimeClientEventConversationItemRetrieveType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncateType), TypeInfoPropertyName = "RealtimeClientEventConversationItemTruncateType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppendType), TypeInfoPropertyName = "RealtimeClientEventInputAudioBufferAppendType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClearType), TypeInfoPropertyName = "RealtimeClientEventInputAudioBufferClearType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommitType), TypeInfoPropertyName = "RealtimeClientEventInputAudioBufferCommitType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClearType), TypeInfoPropertyName = "RealtimeClientEventOutputAudioBufferClearType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCancelType), TypeInfoPropertyName = "RealtimeClientEventResponseCancelType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCreateType), TypeInfoPropertyName = "RealtimeClientEventResponseCreateType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseCreateParams))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventSessionUpdateType), TypeInfoPropertyName = "RealtimeClientEventSessionUpdateType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfRealtimeSessionCreateRequestGARealtimeTranscriptionSessionCreateRequestGA2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGA))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventTranscriptionSessionUpdate))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventTranscriptionSessionUpdateType), TypeInfoPropertyName = "RealtimeClientEventTranscriptionSessionUpdateType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageSystem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageUser))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistant))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCall))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeMCPListTools))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeMCPToolCall))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallObject), TypeInfoPropertyName = "RealtimeConversationItemFunctionCallObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallType), TypeInfoPropertyName = "RealtimeConversationItemFunctionCallType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallStatus), TypeInfoPropertyName = "RealtimeConversationItemFunctionCallStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutputObject), TypeInfoPropertyName = "RealtimeConversationItemFunctionCallOutputObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutputType), TypeInfoPropertyName = "RealtimeConversationItemFunctionCallOutputType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutputStatus), TypeInfoPropertyName = "RealtimeConversationItemFunctionCallOutputStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantObject), TypeInfoPropertyName = "RealtimeConversationItemMessageAssistantObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantType), TypeInfoPropertyName = "RealtimeConversationItemMessageAssistantType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantStatus), TypeInfoPropertyName = "RealtimeConversationItemMessageAssistantStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantRole), TypeInfoPropertyName = "RealtimeConversationItemMessageAssistantRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantContentItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantContentItemType), TypeInfoPropertyName = "RealtimeConversationItemMessageAssistantContentItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemObject), TypeInfoPropertyName = "RealtimeConversationItemMessageSystemObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemType), TypeInfoPropertyName = "RealtimeConversationItemMessageSystemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemStatus), TypeInfoPropertyName = "RealtimeConversationItemMessageSystemStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemRole), TypeInfoPropertyName = "RealtimeConversationItemMessageSystemRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemContentItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemContentItemType), TypeInfoPropertyName = "RealtimeConversationItemMessageSystemContentItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageUserObject), TypeInfoPropertyName = "RealtimeConversationItemMessageUserObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageUserType), TypeInfoPropertyName = "RealtimeConversationItemMessageUserType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageUserStatus), TypeInfoPropertyName = "RealtimeConversationItemMessageUserStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageUserRole), TypeInfoPropertyName = "RealtimeConversationItemMessageUserRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItemType), TypeInfoPropertyName = "RealtimeConversationItemMessageUserContentItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItemDetail), TypeInfoPropertyName = "RealtimeConversationItemMessageUserContentItemDetail2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemWithReference))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceType), TypeInfoPropertyName = "RealtimeConversationItemWithReferenceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceObject), TypeInfoPropertyName = "RealtimeConversationItemWithReferenceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceStatus), TypeInfoPropertyName = "RealtimeConversationItemWithReferenceStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceRole), TypeInfoPropertyName = "RealtimeConversationItemWithReferenceRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceContentItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceContentItemType), TypeInfoPropertyName = "RealtimeConversationItemWithReferenceContentItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeCreateClientSecretRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeCreateClientSecretRequestExpiresAfter))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeCreateClientSecretRequestExpiresAfterAnchor), TypeInfoPropertyName = "RealtimeCreateClientSecretRequestExpiresAfterAnchor2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeCreateClientSecretResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Session2), TypeInfoPropertyName = "Session22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGA))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGA))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeFunctionTool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeFunctionToolType), TypeInfoPropertyName = "RealtimeFunctionToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalRequestType), TypeInfoPropertyName = "RealtimeMCPApprovalRequestType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalResponseType), TypeInfoPropertyName = "RealtimeMCPApprovalResponseType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeMCPHTTPError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeMCPHTTPErrorType), TypeInfoPropertyName = "RealtimeMCPHTTPErrorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeMCPListToolsType), TypeInfoPropertyName = "RealtimeMCPListToolsType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeMCPProtocolError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeMCPProtocolErrorType), TypeInfoPropertyName = "RealtimeMCPProtocolErrorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeMCPToolCallType), TypeInfoPropertyName = "RealtimeMCPToolCallType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeMCPToolExecutionError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeMCPToolExecutionErrorType), TypeInfoPropertyName = "RealtimeMCPToolExecutionErrorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseObject), TypeInfoPropertyName = "RealtimeResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseStatus), TypeInfoPropertyName = "RealtimeResponseStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseStatusDetails))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseStatusDetailsType), TypeInfoPropertyName = "RealtimeResponseStatusDetailsType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseStatusDetailsReason), TypeInfoPropertyName = "RealtimeResponseStatusDetailsReason2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseStatusDetailsError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseAudio))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseAudioOutput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseUsage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseUsageInputTokenDetails))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseUsageInputTokenDetailsCachedTokensDetails))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseUsageOutputTokenDetails))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseOutputModalitie), TypeInfoPropertyName = "RealtimeResponseOutputModalitie2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfInt32RealtimeResponseMaxOutputTokens2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseMaxOutputTokens), TypeInfoPropertyName = "RealtimeResponseMaxOutputTokens2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseCreateParamsOutputModalitie), TypeInfoPropertyName = "RealtimeResponseCreateParamsOutputModalitie2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseCreateParamsAudio))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseCreateParamsAudioOutput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfRealtimeFunctionToolMCPTool2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfInt32RealtimeResponseCreateParamsMaxOutputTokens2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseCreateParamsMaxOutputTokens), TypeInfoPropertyName = "RealtimeResponseCreateParamsMaxOutputTokens2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfStringRealtimeResponseCreateParamsConversation2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseCreateParamsConversation), TypeInfoPropertyName = "RealtimeResponseCreateParamsConversation2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEvent), TypeInfoPropertyName = "RealtimeServerEvent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationCreated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeleted))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrieved))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCleared))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommitted))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceived))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDelta))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDone))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDelta))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDone))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAdded))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDone))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseCreated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseDone))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAdded))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDone))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDelta))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDone))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionCreated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionUpdated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStarted))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStopped))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferCleared))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemAdded))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDone))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggered))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegment))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgress))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompleted))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailed))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDelta))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDone))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgress))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompleted))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailed))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedType), TypeInfoPropertyName = "RealtimeServerEventConversationCreatedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedConversation))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemAddedType), TypeInfoPropertyName = "RealtimeServerEventConversationItemAddedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreatedType), TypeInfoPropertyName = "RealtimeServerEventConversationItemCreatedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeletedType), TypeInfoPropertyName = "RealtimeServerEventConversationItemDeletedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDoneType), TypeInfoPropertyName = "RealtimeServerEventConversationItemDoneType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedType), TypeInfoPropertyName = "RealtimeServerEventConversationItemInputAudioTranscriptionCompletedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDeltaType), TypeInfoPropertyName = "RealtimeServerEventConversationItemInputAudioTranscriptionDeltaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailedType), TypeInfoPropertyName = "RealtimeServerEventConversationItemInputAudioTranscriptionFailedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailedError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegmentType), TypeInfoPropertyName = "RealtimeServerEventConversationItemInputAudioTranscriptionSegmentType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrievedType), TypeInfoPropertyName = "RealtimeServerEventConversationItemRetrievedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncatedType), TypeInfoPropertyName = "RealtimeServerEventConversationItemTruncatedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventErrorType), TypeInfoPropertyName = "RealtimeServerEventErrorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventErrorError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferClearedType), TypeInfoPropertyName = "RealtimeServerEventInputAudioBufferClearedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommittedType), TypeInfoPropertyName = "RealtimeServerEventInputAudioBufferCommittedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceivedType), TypeInfoPropertyName = "RealtimeServerEventInputAudioBufferDtmfEventReceivedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStartedType), TypeInfoPropertyName = "RealtimeServerEventInputAudioBufferSpeechStartedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStoppedType), TypeInfoPropertyName = "RealtimeServerEventInputAudioBufferSpeechStoppedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggeredType), TypeInfoPropertyName = "RealtimeServerEventInputAudioBufferTimeoutTriggeredType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompletedType), TypeInfoPropertyName = "RealtimeServerEventMCPListToolsCompletedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailedType), TypeInfoPropertyName = "RealtimeServerEventMCPListToolsFailedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgressType), TypeInfoPropertyName = "RealtimeServerEventMCPListToolsInProgressType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferClearedType), TypeInfoPropertyName = "RealtimeServerEventOutputAudioBufferClearedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStartedType), TypeInfoPropertyName = "RealtimeServerEventOutputAudioBufferStartedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStoppedType), TypeInfoPropertyName = "RealtimeServerEventOutputAudioBufferStoppedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedType), TypeInfoPropertyName = "RealtimeServerEventRateLimitsUpdatedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedRateLimit))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedRateLimitName), TypeInfoPropertyName = "RealtimeServerEventRateLimitsUpdatedRateLimitName2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDeltaType), TypeInfoPropertyName = "RealtimeServerEventResponseAudioDeltaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDoneType), TypeInfoPropertyName = "RealtimeServerEventResponseAudioDoneType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDeltaType), TypeInfoPropertyName = "RealtimeServerEventResponseAudioTranscriptDeltaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDoneType), TypeInfoPropertyName = "RealtimeServerEventResponseAudioTranscriptDoneType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedType), TypeInfoPropertyName = "RealtimeServerEventResponseContentPartAddedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedPart))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedPartType), TypeInfoPropertyName = "RealtimeServerEventResponseContentPartAddedPartType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDoneType), TypeInfoPropertyName = "RealtimeServerEventResponseContentPartDoneType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDonePart))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDonePartType), TypeInfoPropertyName = "RealtimeServerEventResponseContentPartDonePartType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseCreatedType), TypeInfoPropertyName = "RealtimeServerEventResponseCreatedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseDoneType), TypeInfoPropertyName = "RealtimeServerEventResponseDoneType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDeltaType), TypeInfoPropertyName = "RealtimeServerEventResponseFunctionCallArgumentsDeltaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDoneType), TypeInfoPropertyName = "RealtimeServerEventResponseFunctionCallArgumentsDoneType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDeltaType), TypeInfoPropertyName = "RealtimeServerEventResponseMCPCallArgumentsDeltaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDoneType), TypeInfoPropertyName = "RealtimeServerEventResponseMCPCallArgumentsDoneType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompletedType), TypeInfoPropertyName = "RealtimeServerEventResponseMCPCallCompletedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailedType), TypeInfoPropertyName = "RealtimeServerEventResponseMCPCallFailedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgressType), TypeInfoPropertyName = "RealtimeServerEventResponseMCPCallInProgressType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAddedType), TypeInfoPropertyName = "RealtimeServerEventResponseOutputItemAddedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDoneType), TypeInfoPropertyName = "RealtimeServerEventResponseOutputItemDoneType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDeltaType), TypeInfoPropertyName = "RealtimeServerEventResponseTextDeltaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDoneType), TypeInfoPropertyName = "RealtimeServerEventResponseTextDoneType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionCreatedType), TypeInfoPropertyName = "RealtimeServerEventSessionCreatedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionUpdatedType), TypeInfoPropertyName = "RealtimeServerEventSessionUpdatedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventTranscriptionSessionUpdated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventTranscriptionSessionUpdatedType), TypeInfoPropertyName = "RealtimeServerEventTranscriptionSessionUpdatedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionObject), TypeInfoPropertyName = "RealtimeSessionObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionModalitie), TypeInfoPropertyName = "RealtimeSessionModalitie2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringRealtimeSessionModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionModel), TypeInfoPropertyName = "RealtimeSessionModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionInputAudioFormat), TypeInfoPropertyName = "RealtimeSessionInputAudioFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionOutputAudioFormat), TypeInfoPropertyName = "RealtimeSessionOutputAudioFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionInputAudioNoiseReduction))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionTracingTracingConfigurationEnum), TypeInfoPropertyName = "RealtimeSessionTracingTracingConfigurationEnum3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionTracingTracingConfigurationEnum2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfInt32RealtimeSessionMaxResponseOutputTokens2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionMaxResponseOutputTokens), TypeInfoPropertyName = "RealtimeSessionMaxResponseOutputTokens2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionIncludeVariant1Item), TypeInfoPropertyName = "RealtimeSessionIncludeVariant1Item2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecret))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestModalitie), TypeInfoPropertyName = "RealtimeSessionCreateRequestModalitie2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestInputAudioTranscription))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfRealtimeSessionCreateRequestTracingEnumRealtimeSessionCreateRequestTracingEnum22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestTracingEnum), TypeInfoPropertyName = "RealtimeSessionCreateRequestTracingEnum3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestTracingEnum2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestTurnDetection))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestTool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolType), TypeInfoPropertyName = "RealtimeSessionCreateRequestToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfInt32RealtimeSessionCreateRequestMaxResponseOutputTokens2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestMaxResponseOutputTokens), TypeInfoPropertyName = "RealtimeSessionCreateRequestMaxResponseOutputTokens2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTruncation), TypeInfoPropertyName = "RealtimeTruncation2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAType), TypeInfoPropertyName = "RealtimeSessionCreateRequestGAType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAOutputModalitie), TypeInfoPropertyName = "RealtimeSessionCreateRequestGAOutputModalitie2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringRealtimeSessionCreateRequestGAModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAModel), TypeInfoPropertyName = "RealtimeSessionCreateRequestGAModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudio))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputNoiseReduction))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioOutput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAIncludeItem), TypeInfoPropertyName = "RealtimeSessionCreateRequestGAIncludeItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfRealtimeSessionCreateRequestGATracingEnumRealtimeSessionCreateRequestGATracingEnum22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATracingEnum), TypeInfoPropertyName = "RealtimeSessionCreateRequestGATracingEnum3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATracingEnum2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfInt32RealtimeSessionCreateRequestGAMaxOutputTokens2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAMaxOutputTokens), TypeInfoPropertyName = "RealtimeSessionCreateRequestGAMaxOutputTokens2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseIncludeItem), TypeInfoPropertyName = "RealtimeSessionCreateResponseIncludeItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseOutputModalitie), TypeInfoPropertyName = "RealtimeSessionCreateResponseOutputModalitie2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudio))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputNoiseReduction))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetection))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioOutput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfRealtimeSessionCreateResponseTracingEnumRealtimeSessionCreateResponseTracingEnum22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseTracingEnum), TypeInfoPropertyName = "RealtimeSessionCreateResponseTracingEnum3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseTracingEnum2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseTurnDetection))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfInt32RealtimeSessionCreateResponseMaxOutputTokens2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseMaxOutputTokens), TypeInfoPropertyName = "RealtimeSessionCreateResponseMaxOutputTokens2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAClientSecret))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAType), TypeInfoPropertyName = "RealtimeSessionCreateResponseGAType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAOutputModalitie), TypeInfoPropertyName = "RealtimeSessionCreateResponseGAOutputModalitie2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringRealtimeSessionCreateResponseGAModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAModel), TypeInfoPropertyName = "RealtimeSessionCreateResponseGAModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAAudio))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAAudioInput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAAudioInputNoiseReduction))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAAudioOutput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAIncludeItem), TypeInfoPropertyName = "RealtimeSessionCreateResponseGAIncludeItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGATracingTracingConfigurationEnum), TypeInfoPropertyName = "RealtimeSessionCreateResponseGATracingTracingConfigurationEnum3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGATracingTracingConfigurationEnum2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfInt32RealtimeSessionCreateResponseGAMaxOutputTokens2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAMaxOutputTokens), TypeInfoPropertyName = "RealtimeSessionCreateResponseGAMaxOutputTokens2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestTurnDetection))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestTurnDetectionType), TypeInfoPropertyName = "RealtimeTranscriptionSessionCreateRequestTurnDetectionType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReduction))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioFormat), TypeInfoPropertyName = "RealtimeTranscriptionSessionCreateRequestInputAudioFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestIncludeItem), TypeInfoPropertyName = "RealtimeTranscriptionSessionCreateRequestIncludeItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAType), TypeInfoPropertyName = "RealtimeTranscriptionSessionCreateRequestGAType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudio))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputNoiseReduction))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAIncludeItem), TypeInfoPropertyName = "RealtimeTranscriptionSessionCreateRequestGAIncludeItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseClientSecret))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseModalitie), TypeInfoPropertyName = "RealtimeTranscriptionSessionCreateResponseModalitie2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseTurnDetection))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAType), TypeInfoPropertyName = "RealtimeTranscriptionSessionCreateResponseGAType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAIncludeItem), TypeInfoPropertyName = "RealtimeTranscriptionSessionCreateResponseGAIncludeItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudio))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudioInput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudioInputNoiseReduction))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudioInputTurnDetection))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTruncationEnum), TypeInfoPropertyName = "RealtimeTruncationEnum3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTruncationEnum2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTruncationEnumType), TypeInfoPropertyName = "RealtimeTruncationEnumType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTruncationEnumTokenLimits))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVadEagerness), TypeInfoPropertyName = "RealtimeTurnDetectionRealtimeTurnDetection1SemanticVadEagerness2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1Discriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Reasoning))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ReasoningSummary2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ReasoningGenerateSummary2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ReasoningItemType), TypeInfoPropertyName = "ReasoningItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SummaryTextContent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ReasoningItemStatus), TypeInfoPropertyName = "ReasoningItemStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Response), TypeInfoPropertyName = "Response2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseVariant3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseVariant3Object), TypeInfoPropertyName = "ResponseVariant3Object2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseVariant3Status), TypeInfoPropertyName = "ResponseVariant3Status2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseErrorVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseVariant3IncompleteDetails2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseVariant3IncompleteDetailsReason), TypeInfoPropertyName = "ResponseVariant3IncompleteDetailsReason2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseUsage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Conversation22))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseAudioDeltaEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseAudioDeltaEventType), TypeInfoPropertyName = "ResponseAudioDeltaEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseAudioDoneEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseAudioDoneEventType), TypeInfoPropertyName = "ResponseAudioDoneEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEventType), TypeInfoPropertyName = "ResponseAudioTranscriptDeltaEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEventType), TypeInfoPropertyName = "ResponseAudioTranscriptDoneEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEventType), TypeInfoPropertyName = "ResponseCodeInterpreterCallCodeDeltaEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEventType), TypeInfoPropertyName = "ResponseCodeInterpreterCallCodeDoneEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEventType), TypeInfoPropertyName = "ResponseCodeInterpreterCallCompletedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEventType), TypeInfoPropertyName = "ResponseCodeInterpreterCallInProgressEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEventType), TypeInfoPropertyName = "ResponseCodeInterpreterCallInterpretingEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCompletedEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCompletedEventType), TypeInfoPropertyName = "ResponseCompletedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseContentPartAddedEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseContentPartAddedEventType), TypeInfoPropertyName = "ResponseContentPartAddedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseContentPartDoneEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseContentPartDoneEventType), TypeInfoPropertyName = "ResponseContentPartDoneEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCreatedEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCreatedEventType), TypeInfoPropertyName = "ResponseCreatedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEventType), TypeInfoPropertyName = "ResponseCustomToolCallInputDeltaEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEventType), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseErrorCode), TypeInfoPropertyName = "ResponseErrorCode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseErrorEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseErrorEventType), TypeInfoPropertyName = "ResponseErrorEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFailedEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFailedEventType), TypeInfoPropertyName = "ResponseFailedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEventType), TypeInfoPropertyName = "ResponseFileSearchCallCompletedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEventType), TypeInfoPropertyName = "ResponseFileSearchCallInProgressEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEventType), TypeInfoPropertyName = "ResponseFileSearchCallSearchingEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFormatJsonObjectType), TypeInfoPropertyName = "ResponseFormatJsonObjectType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchemaType), TypeInfoPropertyName = "ResponseFormatJsonSchemaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchemaJsonSchema))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchemaSchema))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFormatTextType), TypeInfoPropertyName = "ResponseFormatTextType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFormatTextGrammar))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFormatTextGrammarType), TypeInfoPropertyName = "ResponseFormatTextGrammarType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFormatTextPython))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFormatTextPythonType), TypeInfoPropertyName = "ResponseFormatTextPythonType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEventType), TypeInfoPropertyName = "ResponseFunctionCallArgumentsDeltaEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEventType), TypeInfoPropertyName = "ResponseFunctionCallArgumentsDoneEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseImageGenCallCompletedEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseImageGenCallCompletedEventType), TypeInfoPropertyName = "ResponseImageGenCallCompletedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEventType), TypeInfoPropertyName = "ResponseImageGenCallGeneratingEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseImageGenCallInProgressEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseImageGenCallInProgressEventType), TypeInfoPropertyName = "ResponseImageGenCallInProgressEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEventType), TypeInfoPropertyName = "ResponseImageGenCallPartialImageEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseInProgressEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseInProgressEventType), TypeInfoPropertyName = "ResponseInProgressEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseIncompleteEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseIncompleteEventType), TypeInfoPropertyName = "ResponseIncompleteEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseItemList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseItemListObject), TypeInfoPropertyName = "ResponseItemListObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseLogProb))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseLogProbTopLogprob))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEventType), TypeInfoPropertyName = "ResponseMCPCallArgumentsDeltaEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEventType), TypeInfoPropertyName = "ResponseMCPCallArgumentsDoneEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseMCPCallCompletedEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseMCPCallCompletedEventType), TypeInfoPropertyName = "ResponseMCPCallCompletedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseMCPCallFailedEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseMCPCallFailedEventType), TypeInfoPropertyName = "ResponseMCPCallFailedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseMCPCallInProgressEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseMCPCallInProgressEventType), TypeInfoPropertyName = "ResponseMCPCallInProgressEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEventType), TypeInfoPropertyName = "ResponseMCPListToolsCompletedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseMCPListToolsFailedEventType), TypeInfoPropertyName = "ResponseMCPListToolsFailedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEventType), TypeInfoPropertyName = "ResponseMCPListToolsInProgressEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseModalitiesVariant1Item), TypeInfoPropertyName = "ResponseModalitiesVariant1Item2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseOutputItemAddedEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseOutputItemAddedEventType), TypeInfoPropertyName = "ResponseOutputItemAddedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseOutputItemDoneEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseOutputItemDoneEventType), TypeInfoPropertyName = "ResponseOutputItemDoneEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEventType), TypeInfoPropertyName = "ResponseOutputTextAnnotationAddedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfStringInputTextContentInputImageContentInputFileContent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseTextParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoiceParam), TypeInfoPropertyName = "ToolChoiceParam2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponsePropertiesTruncation2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseQueuedEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseQueuedEventType), TypeInfoPropertyName = "ResponseQueuedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventType), TypeInfoPropertyName = "ResponseReasoningSummaryPartAddedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventPart))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventPartType), TypeInfoPropertyName = "ResponseReasoningSummaryPartAddedEventPartType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventType), TypeInfoPropertyName = "ResponseReasoningSummaryPartDoneEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventPart))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventPartType), TypeInfoPropertyName = "ResponseReasoningSummaryPartDoneEventPartType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEventType), TypeInfoPropertyName = "ResponseReasoningSummaryTextDeltaEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEventType), TypeInfoPropertyName = "ResponseReasoningSummaryTextDoneEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseReasoningTextDeltaEventType), TypeInfoPropertyName = "ResponseReasoningTextDeltaEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseReasoningTextDoneEventType), TypeInfoPropertyName = "ResponseReasoningTextDoneEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseRefusalDeltaEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseRefusalDeltaEventType), TypeInfoPropertyName = "ResponseRefusalDeltaEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseRefusalDoneEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseRefusalDoneEventType), TypeInfoPropertyName = "ResponseRefusalDoneEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseStreamEvent), TypeInfoPropertyName = "ResponseStreamEvent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseTextDeltaEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseTextDoneEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseStreamEventDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseTextDeltaEventType), TypeInfoPropertyName = "ResponseTextDeltaEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseTextDoneEventType), TypeInfoPropertyName = "ResponseTextDoneEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseUsageInputTokensDetails))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseUsageOutputTokensDetails))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEventType), TypeInfoPropertyName = "ResponseWebSearchCallCompletedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEventType), TypeInfoPropertyName = "ResponseWebSearchCallInProgressEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEventType), TypeInfoPropertyName = "ResponseWebSearchCallSearchingEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponsesClientEvent), TypeInfoPropertyName = "ResponsesClientEvent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreate), TypeInfoPropertyName = "ResponsesClientEventResponseCreate2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponsesClientEventDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1Type), TypeInfoPropertyName = "ResponsesClientEventResponseCreateVariant1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponsesServerEvent), TypeInfoPropertyName = "ResponsesServerEvent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponsesServerEventDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RoleObject), TypeInfoPropertyName = "RoleObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RoleDeletedResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RoleDeletedResourceObject), TypeInfoPropertyName = "RoleDeletedResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RoleListResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RoleListResourceObject), TypeInfoPropertyName = "RoleListResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunCompletionUsageVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunGraderRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunGraderResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunGraderResponseMetadata))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunGraderResponseMetadataErrors))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunObjectObject), TypeInfoPropertyName = "RunObjectObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunObjectStatus), TypeInfoPropertyName = "RunObjectStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunObjectRequiredAction))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunObjectRequiredActionType), TypeInfoPropertyName = "RunObjectRequiredActionType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunObjectRequiredActionSubmitToolOutputs))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunToolCallObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunObjectLastError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunObjectLastErrorCode), TypeInfoPropertyName = "RunObjectLastErrorCode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunObjectIncompleteDetails))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunObjectIncompleteDetailsReason), TypeInfoPropertyName = "RunObjectIncompleteDetailsReason2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepCompletionUsageVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaObjectObject), TypeInfoPropertyName = "RunStepDeltaObjectObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaObjectDelta))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfRunStepDeltaStepDetailsMessageCreationObjectRunStepDeltaStepDetailsToolCallsObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObjectType), TypeInfoPropertyName = "RunStepDeltaStepDetailsMessageCreationObjectType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObjectMessageCreation))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectType), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsCodeObjectType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreter))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfRunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectRunStepDeltaStepDetailsToolCallsCodeOutputImageObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectType), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectImage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectType), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObjectType), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFileSearchObjectType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObjectType), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObjectType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObjectFunction))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObjectType), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsObjectType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfRunStepDeltaStepDetailsToolCallsCodeObjectRunStepDeltaStepDetailsToolCallsFileSearchObjectRunStepDeltaStepDetailsToolCallsFunctionObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsMessageCreationObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsMessageCreationObjectType), TypeInfoPropertyName = "RunStepDetailsMessageCreationObjectType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsMessageCreationObjectMessageCreation))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectType), TypeInfoPropertyName = "RunStepDetailsToolCallsCodeObjectType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectCodeInterpreter))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfRunStepDetailsToolCallsCodeOutputLogsObjectRunStepDetailsToolCallsCodeOutputImageObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObjectType), TypeInfoPropertyName = "RunStepDetailsToolCallsCodeOutputImageObjectType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObjectImage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObjectType), TypeInfoPropertyName = "RunStepDetailsToolCallsCodeOutputLogsObjectType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObjectType), TypeInfoPropertyName = "RunStepDetailsToolCallsFileSearchObjectType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObjectFileSearch))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchRankingOptionsObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObjectContentItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObjectContentItemType), TypeInfoPropertyName = "RunStepDetailsToolCallsFileSearchResultObjectContentItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObjectType), TypeInfoPropertyName = "RunStepDetailsToolCallsFunctionObjectType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObjectFunction))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsObjectType), TypeInfoPropertyName = "RunStepDetailsToolCallsObjectType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfRunStepDetailsToolCallsCodeObjectRunStepDetailsToolCallsFileSearchObjectRunStepDetailsToolCallsFunctionObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepObjectObject), TypeInfoPropertyName = "RunStepObjectObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepObjectType), TypeInfoPropertyName = "RunStepObjectType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepObjectStatus), TypeInfoPropertyName = "RunStepObjectStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfRunStepDetailsMessageCreationObjectRunStepDetailsToolCallsObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepObjectLastError2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepObjectLastErrorCode), TypeInfoPropertyName = "RunStepObjectLastErrorCode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant1Event), TypeInfoPropertyName = "RunStepStreamEventVariant1Event2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant2Event), TypeInfoPropertyName = "RunStepStreamEventVariant2Event2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant3Event), TypeInfoPropertyName = "RunStepStreamEventVariant3Event2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant4Event), TypeInfoPropertyName = "RunStepStreamEventVariant4Event2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant5Event), TypeInfoPropertyName = "RunStepStreamEventVariant5Event2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant6Event), TypeInfoPropertyName = "RunStepStreamEventVariant6Event2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant7))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant7Event), TypeInfoPropertyName = "RunStepStreamEventVariant7Event2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEventVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEventVariant1Event), TypeInfoPropertyName = "RunStreamEventVariant1Event2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEventVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEventVariant2Event), TypeInfoPropertyName = "RunStreamEventVariant2Event2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEventVariant3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEventVariant3Event), TypeInfoPropertyName = "RunStreamEventVariant3Event2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEventVariant4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEventVariant4Event), TypeInfoPropertyName = "RunStreamEventVariant4Event2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEventVariant5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEventVariant5Event), TypeInfoPropertyName = "RunStreamEventVariant5Event2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEventVariant6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEventVariant6Event), TypeInfoPropertyName = "RunStreamEventVariant6Event2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEventVariant7))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEventVariant7Event), TypeInfoPropertyName = "RunStreamEventVariant7Event2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEventVariant8))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEventVariant8Event), TypeInfoPropertyName = "RunStreamEventVariant8Event2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEventVariant9))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEventVariant9Event), TypeInfoPropertyName = "RunStreamEventVariant9Event2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEventVariant10))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEventVariant10Event), TypeInfoPropertyName = "RunStreamEventVariant10Event2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunToolCallObjectType), TypeInfoPropertyName = "RunToolCallObjectType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunToolCallObjectFunction))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpeechAudioDeltaEventType), TypeInfoPropertyName = "SpeechAudioDeltaEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpeechAudioDoneEventType), TypeInfoPropertyName = "SpeechAudioDoneEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpeechAudioDoneEventUsage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.StaticChunkingStrategy))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.StaticChunkingStrategyRequestParamType), TypeInfoPropertyName = "StaticChunkingStrategyRequestParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.StaticChunkingStrategyResponseParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.StaticChunkingStrategyResponseParamType), TypeInfoPropertyName = "StaticChunkingStrategyResponseParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SubmitToolOutputsRunRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SubmitToolOutputsRunRequestToolOutput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TextResponseFormatJsonSchema))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TextResponseFormatJsonSchemaType), TypeInfoPropertyName = "TextResponseFormatJsonSchemaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadObjectObject), TypeInfoPropertyName = "ThreadObjectObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadObjectToolResources2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadObjectToolResourcesCodeInterpreter))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadObjectToolResourcesFileSearch))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadStreamEventVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadStreamEventVariant1Event), TypeInfoPropertyName = "ThreadStreamEventVariant1Event2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToggleCertificatesRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionTool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileSearchTool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerTool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerUsePreviewTool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchTool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LocalShellToolParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellToolParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.NamespaceToolParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchToolParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchPreviewTool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchToolParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoiceAllowed))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoiceAllowedType), TypeInfoPropertyName = "ToolChoiceAllowedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoiceAllowedMode), TypeInfoPropertyName = "ToolChoiceAllowedMode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoiceCustom))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoiceCustomType), TypeInfoPropertyName = "ToolChoiceCustomType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoiceFunctionType), TypeInfoPropertyName = "ToolChoiceFunctionType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoiceMCPType), TypeInfoPropertyName = "ToolChoiceMCPType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoiceTypes))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpecificApplyPatchParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpecificFunctionShellParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoiceTypesType), TypeInfoPropertyName = "ToolChoiceTypesType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptTextDeltaEventType), TypeInfoPropertyName = "TranscriptTextDeltaEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptTextDeltaEventLogprob))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptTextDoneEventType), TypeInfoPropertyName = "TranscriptTextDoneEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptTextDoneEventLogprob))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptTextSegmentEventType), TypeInfoPropertyName = "TranscriptTextSegmentEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptTextUsageDurationType), TypeInfoPropertyName = "TranscriptTextUsageDurationType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptTextUsageTokensType), TypeInfoPropertyName = "TranscriptTextUsageTokensType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptTextUsageTokensInputTokenDetails))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptionChunkingStrategy), TypeInfoPropertyName = "TranscriptionChunkingStrategy2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum), TypeInfoPropertyName = "TranscriptionChunkingStrategyEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptionDiarizedSegmentType), TypeInfoPropertyName = "TranscriptionDiarizedSegmentType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TruncationObjectType), TypeInfoPropertyName = "TruncationObjectType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UpdateGroupBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UpdateVectorStoreFileAttributesRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UpdateVectorStoreRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "AllOfVectorStoreExpirationAfterObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UpdateVoiceConsentRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Upload))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UploadStatus), TypeInfoPropertyName = "UploadStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UploadObject), TypeInfoPropertyName = "UploadObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "AllOfOpenAIFileObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UploadCertificateRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UploadPart))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UploadPartObject), TypeInfoPropertyName = "UploadPartObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageAudioSpeechesResult))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageAudioSpeechesResultObject), TypeInfoPropertyName = "UsageAudioSpeechesResultObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageAudioTranscriptionsResult))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageAudioTranscriptionsResultObject), TypeInfoPropertyName = "UsageAudioTranscriptionsResultObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResultObject), TypeInfoPropertyName = "UsageCodeInterpreterSessionsResultObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageCompletionsResult))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageCompletionsResultObject), TypeInfoPropertyName = "UsageCompletionsResultObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageEmbeddingsResult))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageEmbeddingsResultObject), TypeInfoPropertyName = "UsageEmbeddingsResultObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageImagesResult))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageImagesResultObject), TypeInfoPropertyName = "UsageImagesResultObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageModerationsResult))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageModerationsResultObject), TypeInfoPropertyName = "UsageModerationsResultObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageResponseObject), TypeInfoPropertyName = "UsageResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageTimeBucket))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageTimeBucketObject), TypeInfoPropertyName = "UsageTimeBucketObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfUsageCompletionsResultUsageEmbeddingsResultUsageModerationsResultUsageImagesResultUsageAudioSpeechesResultUsageAudioTranscriptionsResultUsageVectorStoresResultUsageCodeInterpreterSessionsResultCostsResult2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageVectorStoresResult))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageVectorStoresResultObject), TypeInfoPropertyName = "UsageVectorStoresResultObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.User))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserObject), TypeInfoPropertyName = "UserObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserRole), TypeInfoPropertyName = "UserRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserDeleteResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserDeleteResponseObject), TypeInfoPropertyName = "UserDeleteResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserListResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserListResourceObject), TypeInfoPropertyName = "UserListResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserListResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserListResponseObject), TypeInfoPropertyName = "UserListResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserRoleAssignment))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserRoleAssignmentObject), TypeInfoPropertyName = "UserRoleAssignmentObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserRoleUpdateRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserRoleUpdateRequestRole), TypeInfoPropertyName = "UserRoleUpdateRequestRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VadConfigType), TypeInfoPropertyName = "VadConfigType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ValidateGraderRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ValidateGraderResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreExpirationAfterAnchor), TypeInfoPropertyName = "VectorStoreExpirationAfterAnchor2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfStringDoubleBoolean2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreFileBatchObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreFileBatchObjectObject), TypeInfoPropertyName = "VectorStoreFileBatchObjectObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreFileBatchObjectStatus), TypeInfoPropertyName = "VectorStoreFileBatchObjectStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreFileBatchObjectFileCounts))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreFileContentResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreFileContentResponseObject), TypeInfoPropertyName = "VectorStoreFileContentResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreFileContentResponseDataItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreFileObjectObject), TypeInfoPropertyName = "VectorStoreFileObjectObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreFileObjectStatus), TypeInfoPropertyName = "VectorStoreFileObjectStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreFileObjectLastError2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreFileObjectLastErrorCode), TypeInfoPropertyName = "VectorStoreFileObjectLastErrorCode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfStaticChunkingStrategyResponseParamOtherChunkingStrategyResponseParam2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreObjectObject), TypeInfoPropertyName = "VectorStoreObjectObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreObjectFileCounts))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreObjectStatus), TypeInfoPropertyName = "VectorStoreObjectStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreSearchRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>), TypeInfoPropertyName = "OneOfStringIListString2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfComparisonFilterCompoundFilter2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreSearchRequestRankingOptions))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreSearchRequestRankingOptionsRanker), TypeInfoPropertyName = "VectorStoreSearchRequestRankingOptionsRanker2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreSearchResultContentObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreSearchResultContentObjectType), TypeInfoPropertyName = "VectorStoreSearchResultContentObjectType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreSearchResultItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreSearchResultsPage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreSearchResultsPageObject), TypeInfoPropertyName = "VectorStoreSearchResultsPageObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceConsentDeletedResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceConsentDeletedResourceObject), TypeInfoPropertyName = "VoiceConsentDeletedResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceConsentListResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceConsentListResourceObject), TypeInfoPropertyName = "VoiceConsentListResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceConsentResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceConsentResourceObject), TypeInfoPropertyName = "VoiceConsentResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceIdsSharedEnum), TypeInfoPropertyName = "VoiceIdsSharedEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceResourceObject), TypeInfoPropertyName = "VoiceResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchActionFind))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchActionFindType), TypeInfoPropertyName = "WebSearchActionFindType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchActionOpenPage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchActionOpenPageType), TypeInfoPropertyName = "WebSearchActionOpenPageType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchActionSearch))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchActionSearchType), TypeInfoPropertyName = "WebSearchActionSearchType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchActionSearchSource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchActionSearchSourceType), TypeInfoPropertyName = "WebSearchActionSearchSourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchApproximateLocationWebSearchApproximateLocation1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchApproximateLocationWebSearchApproximateLocation1Type), TypeInfoPropertyName = "WebSearchApproximateLocationWebSearchApproximateLocation1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchToolType), TypeInfoPropertyName = "WebSearchToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchToolFilters2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchToolSearchContextSize), TypeInfoPropertyName = "WebSearchToolSearchContextSize2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchToolCallType), TypeInfoPropertyName = "WebSearchToolCallType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchToolCallStatus), TypeInfoPropertyName = "WebSearchToolCallStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchToolCallAction), TypeInfoPropertyName = "WebSearchToolCallAction2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookBatchCancelled))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookBatchCancelledData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookBatchCancelledObject), TypeInfoPropertyName = "WebhookBatchCancelledObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookBatchCancelledType), TypeInfoPropertyName = "WebhookBatchCancelledType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookBatchCompleted))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookBatchCompletedData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookBatchCompletedObject), TypeInfoPropertyName = "WebhookBatchCompletedObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookBatchCompletedType), TypeInfoPropertyName = "WebhookBatchCompletedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookBatchExpired))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookBatchExpiredData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookBatchExpiredObject), TypeInfoPropertyName = "WebhookBatchExpiredObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookBatchExpiredType), TypeInfoPropertyName = "WebhookBatchExpiredType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookBatchFailed))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookBatchFailedData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookBatchFailedObject), TypeInfoPropertyName = "WebhookBatchFailedObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookBatchFailedType), TypeInfoPropertyName = "WebhookBatchFailedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookEvalRunCanceled))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookEvalRunCanceledData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookEvalRunCanceledObject), TypeInfoPropertyName = "WebhookEvalRunCanceledObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookEvalRunCanceledType), TypeInfoPropertyName = "WebhookEvalRunCanceledType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookEvalRunFailed))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookEvalRunFailedData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookEvalRunFailedObject), TypeInfoPropertyName = "WebhookEvalRunFailedObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookEvalRunFailedType), TypeInfoPropertyName = "WebhookEvalRunFailedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookEvalRunSucceeded))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookEvalRunSucceededData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookEvalRunSucceededObject), TypeInfoPropertyName = "WebhookEvalRunSucceededObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookEvalRunSucceededType), TypeInfoPropertyName = "WebhookEvalRunSucceededType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookFineTuningJobCancelled))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookFineTuningJobCancelledData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookFineTuningJobCancelledObject), TypeInfoPropertyName = "WebhookFineTuningJobCancelledObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookFineTuningJobCancelledType), TypeInfoPropertyName = "WebhookFineTuningJobCancelledType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookFineTuningJobFailed))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookFineTuningJobFailedData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookFineTuningJobFailedObject), TypeInfoPropertyName = "WebhookFineTuningJobFailedObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookFineTuningJobFailedType), TypeInfoPropertyName = "WebhookFineTuningJobFailedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookFineTuningJobSucceeded))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookFineTuningJobSucceededData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookFineTuningJobSucceededObject), TypeInfoPropertyName = "WebhookFineTuningJobSucceededObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookFineTuningJobSucceededType), TypeInfoPropertyName = "WebhookFineTuningJobSucceededType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookRealtimeCallIncoming))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookRealtimeCallIncomingData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookRealtimeCallIncomingDataSipHeader))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookRealtimeCallIncomingObject), TypeInfoPropertyName = "WebhookRealtimeCallIncomingObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookRealtimeCallIncomingType), TypeInfoPropertyName = "WebhookRealtimeCallIncomingType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseCancelled))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseCancelledData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseCancelledObject), TypeInfoPropertyName = "WebhookResponseCancelledObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseCancelledType), TypeInfoPropertyName = "WebhookResponseCancelledType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseCompleted))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseCompletedData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseCompletedObject), TypeInfoPropertyName = "WebhookResponseCompletedObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseCompletedType), TypeInfoPropertyName = "WebhookResponseCompletedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseFailed))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseFailedData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseFailedObject), TypeInfoPropertyName = "WebhookResponseFailedObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseFailedType), TypeInfoPropertyName = "WebhookResponseFailedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseIncomplete))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseIncompleteData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseIncompleteObject), TypeInfoPropertyName = "WebhookResponseIncompleteObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseIncompleteType), TypeInfoPropertyName = "WebhookResponseIncompleteType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SkillReferenceParamType), TypeInfoPropertyName = "SkillReferenceParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InlineSkillSourceParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InlineSkillSourceParamType), TypeInfoPropertyName = "InlineSkillSourceParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InlineSkillSourceParamMediaType), TypeInfoPropertyName = "InlineSkillSourceParamMediaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InlineSkillParamType), TypeInfoPropertyName = "InlineSkillParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParamType), TypeInfoPropertyName = "ContainerNetworkPolicyDisabledParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDomainSecretParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParamType), TypeInfoPropertyName = "ContainerNetworkPolicyAllowlistParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageStatus), TypeInfoPropertyName = "MessageStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageRole), TypeInfoPropertyName = "MessageRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputTextContentType), TypeInfoPropertyName = "InputTextContentType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileCitationBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileCitationBodyType), TypeInfoPropertyName = "FileCitationBodyType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UrlCitationBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UrlCitationBodyType), TypeInfoPropertyName = "UrlCitationBodyType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerFileCitationBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerFileCitationBodyType), TypeInfoPropertyName = "ContainerFileCitationBodyType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Annotation), TypeInfoPropertyName = "Annotation2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnnotationDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TopLogProb))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LogProb))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputTextContentType), TypeInfoPropertyName = "OutputTextContentType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TextContent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TextContentType), TypeInfoPropertyName = "TextContentType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SummaryTextContentType), TypeInfoPropertyName = "SummaryTextContentType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ReasoningTextContentType), TypeInfoPropertyName = "ReasoningTextContentType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RefusalContentType), TypeInfoPropertyName = "RefusalContentType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageDetail), TypeInfoPropertyName = "ImageDetail2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputImageContentType), TypeInfoPropertyName = "InputImageContentType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerScreenshotContent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerScreenshotContentType), TypeInfoPropertyName = "ComputerScreenshotContentType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputFileContentType), TypeInfoPropertyName = "InputFileContentType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessagePhase2), TypeInfoPropertyName = "MessagePhase22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageType), TypeInfoPropertyName = "MessageType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContentItem3), TypeInfoPropertyName = "ContentItem32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentItemDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ClickButtonType), TypeInfoPropertyName = "ClickButtonType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ClickParamType), TypeInfoPropertyName = "ClickParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DoubleClickActionType), TypeInfoPropertyName = "DoubleClickActionType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CoordParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DragParamType), TypeInfoPropertyName = "DragParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.KeyPressActionType), TypeInfoPropertyName = "KeyPressActionType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MoveParamType), TypeInfoPropertyName = "MoveParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ScreenshotParamType), TypeInfoPropertyName = "ScreenshotParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ScrollParamType), TypeInfoPropertyName = "ScrollParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TypeParamType), TypeInfoPropertyName = "TypeParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WaitParamType), TypeInfoPropertyName = "WaitParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchExecutionType), TypeInfoPropertyName = "ToolSearchExecutionType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchCallType), TypeInfoPropertyName = "ToolSearchCallType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionToolType), TypeInfoPropertyName = "FunctionToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RankerVersionType), TypeInfoPropertyName = "RankerVersionType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.HybridSearchOptions))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RankingOptions))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Filters2), TypeInfoPropertyName = "Filters22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileSearchToolType), TypeInfoPropertyName = "FileSearchToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerToolType), TypeInfoPropertyName = "ComputerToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerEnvironment), TypeInfoPropertyName = "ComputerEnvironment2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerUsePreviewToolType), TypeInfoPropertyName = "ComputerUsePreviewToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerMemoryLimit), TypeInfoPropertyName = "ContainerMemoryLimit2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AutoCodeInterpreterToolParamType), TypeInfoPropertyName = "AutoCodeInterpreterToolParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.NetworkPolicy2), TypeInfoPropertyName = "NetworkPolicy22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LocalShellToolParamType), TypeInfoPropertyName = "LocalShellToolParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerAutoParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerAutoParamType), TypeInfoPropertyName = "ContainerAutoParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.NetworkPolicy3), TypeInfoPropertyName = "NetworkPolicy32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SkillsItem2), TypeInfoPropertyName = "SkillsItem22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LocalSkillParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LocalEnvironmentParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LocalEnvironmentParamType), TypeInfoPropertyName = "LocalEnvironmentParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerReferenceParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerReferenceParamType), TypeInfoPropertyName = "ContainerReferenceParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellToolParamType), TypeInfoPropertyName = "FunctionShellToolParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EnvironmentVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1Discriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomTextFormatParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomTextFormatParamType), TypeInfoPropertyName = "CustomTextFormatParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GrammarSyntax1), TypeInfoPropertyName = "GrammarSyntax12")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomGrammarFormatParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomGrammarFormatParamType), TypeInfoPropertyName = "CustomGrammarFormatParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolParamType), TypeInfoPropertyName = "CustomToolParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Format2), TypeInfoPropertyName = "Format22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolParamFormatDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EmptyModelParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionToolParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionToolParamType), TypeInfoPropertyName = "FunctionToolParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.NamespaceToolParamType), TypeInfoPropertyName = "NamespaceToolParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolsItem13), TypeInfoPropertyName = "ToolsItem132")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchToolParamType), TypeInfoPropertyName = "ToolSearchToolParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApproximateLocation))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApproximateLocationType), TypeInfoPropertyName = "ApproximateLocationType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SearchContextSize), TypeInfoPropertyName = "SearchContextSize2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SearchContentType), TypeInfoPropertyName = "SearchContentType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchPreviewToolType), TypeInfoPropertyName = "WebSearchPreviewToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchToolParamType), TypeInfoPropertyName = "ApplyPatchToolParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchOutputType), TypeInfoPropertyName = "ToolSearchOutputType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CompactionBodyType), TypeInfoPropertyName = "CompactionBodyType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CodeInterpreterOutputLogsType), TypeInfoPropertyName = "CodeInterpreterOutputLogsType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CodeInterpreterOutputImageType), TypeInfoPropertyName = "CodeInterpreterOutputImageType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LocalShellExecActionType), TypeInfoPropertyName = "LocalShellExecActionType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellAction))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LocalShellCallStatus), TypeInfoPropertyName = "LocalShellCallStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LocalEnvironmentResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LocalEnvironmentResourceType), TypeInfoPropertyName = "LocalEnvironmentResourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerReferenceResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerReferenceResourceType), TypeInfoPropertyName = "ContainerReferenceResourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallType), TypeInfoPropertyName = "FunctionShellCallType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EnvironmentVariant12))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1Discriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LocalShellCallOutputStatusEnum), TypeInfoPropertyName = "LocalShellCallOutputStatusEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcome))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeType), TypeInfoPropertyName = "FunctionShellCallOutputTimeoutOutcomeType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeType), TypeInfoPropertyName = "FunctionShellCallOutputExitOutcomeType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputContent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Outcome), TypeInfoPropertyName = "Outcome2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputType), TypeInfoPropertyName = "FunctionShellCallOutputType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchCallStatus), TypeInfoPropertyName = "ApplyPatchCallStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperation))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperationType), TypeInfoPropertyName = "ApplyPatchCreateFileOperationType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperation))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationType), TypeInfoPropertyName = "ApplyPatchDeleteFileOperationType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationType), TypeInfoPropertyName = "ApplyPatchUpdateFileOperationType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallType), TypeInfoPropertyName = "ApplyPatchToolCallType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Operation), TypeInfoPropertyName = "Operation2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchCallOutputStatus), TypeInfoPropertyName = "ApplyPatchCallOutputStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutputType), TypeInfoPropertyName = "ApplyPatchToolCallOutputType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DetailEnum), TypeInfoPropertyName = "DetailEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionCallItemStatus), TypeInfoPropertyName = "FunctionCallItemStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerCallOutputItemParamType), TypeInfoPropertyName = "ComputerCallOutputItemParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputTextContentParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputTextContentParamType), TypeInfoPropertyName = "InputTextContentParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputImageContentParamAutoParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputImageContentParamAutoParamType), TypeInfoPropertyName = "InputImageContentParamAutoParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputFileContentParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputFileContentParamType), TypeInfoPropertyName = "InputFileContentParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionCallOutputItemParamType), TypeInfoPropertyName = "FunctionCallOutputItemParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>), TypeInfoPropertyName = "OneOfStringIListOutputVariant2Item2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputVariant2Item), TypeInfoPropertyName = "OutputVariant2Item2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchCallItemParamType), TypeInfoPropertyName = "ToolSearchCallItemParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchOutputItemParamType), TypeInfoPropertyName = "ToolSearchOutputItemParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CompactionSummaryItemParamType), TypeInfoPropertyName = "CompactionSummaryItemParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellActionParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallItemStatus), TypeInfoPropertyName = "FunctionShellCallItemStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallItemParamType), TypeInfoPropertyName = "FunctionShellCallItemParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EnvironmentVariant13))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1Discriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParamType), TypeInfoPropertyName = "FunctionShellCallOutputTimeoutOutcomeParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParamType), TypeInfoPropertyName = "FunctionShellCallOutputExitOutcomeParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParam), TypeInfoPropertyName = "FunctionShellCallOutputOutcomeParam2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputContentParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputItemParamType), TypeInfoPropertyName = "FunctionShellCallOutputItemParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchCallStatusParam), TypeInfoPropertyName = "ApplyPatchCallStatusParam2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParamType), TypeInfoPropertyName = "ApplyPatchCreateFileOperationParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParamType), TypeInfoPropertyName = "ApplyPatchDeleteFileOperationParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParamType), TypeInfoPropertyName = "ApplyPatchUpdateFileOperationParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchOperationParam), TypeInfoPropertyName = "ApplyPatchOperationParam2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallItemParamType), TypeInfoPropertyName = "ApplyPatchToolCallItemParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchCallOutputStatusParam), TypeInfoPropertyName = "ApplyPatchCallOutputStatusParam2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParamType), TypeInfoPropertyName = "ApplyPatchToolCallOutputItemParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ItemReferenceParamType2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ConversationResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ConversationResourceObject), TypeInfoPropertyName = "ConversationResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenOutputTokensDetails))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenInputUsageDetails))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpecificApplyPatchParamType), TypeInfoPropertyName = "SpecificApplyPatchParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpecificFunctionShellParamType), TypeInfoPropertyName = "SpecificFunctionShellParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateConversationBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UpdateConversationBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeletedConversationResourceObject), TypeInfoPropertyName = "DeletedConversationResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrderEnum), TypeInfoPropertyName = "OrderEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VideoModel), TypeInfoPropertyName = "VideoModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VideoModelEnum), TypeInfoPropertyName = "VideoModelEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VideoStatus), TypeInfoPropertyName = "VideoStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VideoSize), TypeInfoPropertyName = "VideoSize2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Error2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VideoResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VideoResourceObject), TypeInfoPropertyName = "VideoResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VideoListResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VideoListResourceObject), TypeInfoPropertyName = "VideoListResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageRefParam2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VideoSeconds), TypeInfoPropertyName = "VideoSeconds2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateVideoMultipartBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfByteArrayImageRefParam22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateVideoJsonBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateVideoCharacterBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VideoCharacterResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VideoReferenceInputParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateVideoEditMultipartBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfByteArrayVideoReferenceInputParam2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateVideoEditJsonBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateVideoExtendMultipartBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfVideoReferenceInputParamByteArray2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateVideoExtendJsonBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeletedVideoResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeletedVideoResourceObject), TypeInfoPropertyName = "DeletedVideoResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VideoContentVariant), TypeInfoPropertyName = "VideoContentVariant2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateVideoRemixBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TruncationEnum), TypeInfoPropertyName = "TruncationEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TokenCountsBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TokenCountsResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TokenCountsResourceObject), TypeInfoPropertyName = "TokenCountsResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CompactResponseMethodPublicBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ItemField), TypeInfoPropertyName = "ItemField2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ItemFieldDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CompactResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CompactResourceObject), TypeInfoPropertyName = "CompactResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SkillResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SkillResourceObject), TypeInfoPropertyName = "SkillResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SkillListResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SkillListResourceObject), TypeInfoPropertyName = "SkillListResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSkillBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, byte[]>), TypeInfoPropertyName = "OneOfIListByteArrayByteArray2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SetDefaultSkillVersionBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeletedSkillResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeletedSkillResourceObject), TypeInfoPropertyName = "DeletedSkillResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SkillVersionResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SkillVersionResourceObject), TypeInfoPropertyName = "SkillVersionResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SkillVersionListResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SkillVersionListResourceObject), TypeInfoPropertyName = "SkillVersionListResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSkillVersionBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeletedSkillVersionResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeletedSkillVersionResourceObject), TypeInfoPropertyName = "DeletedSkillVersionResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatkitWorkflowTracing))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatkitWorkflow))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfStringInt32BooleanDouble2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatSessionRateLimits))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatSessionStatus), TypeInfoPropertyName = "ChatSessionStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatSessionAutomaticThreadTitling))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatSessionFileUpload))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatSessionHistory))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatSessionChatkitConfiguration))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatSessionResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatSessionResourceObject), TypeInfoPropertyName = "ChatSessionResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WorkflowTracingParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WorkflowParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ExpiresAfterParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ExpiresAfterParamAnchor), TypeInfoPropertyName = "ExpiresAfterParamAnchor2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RateLimitsParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AutomaticThreadTitlingParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileUploadParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.HistoryParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatkitConfigurationParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatSessionBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserMessageInputText))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserMessageInputTextType), TypeInfoPropertyName = "UserMessageInputTextType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserMessageQuotedText))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserMessageQuotedTextType), TypeInfoPropertyName = "UserMessageQuotedTextType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AttachmentType), TypeInfoPropertyName = "AttachmentType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Attachment))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoice8))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InferenceOptions))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserMessageItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserMessageItemObject), TypeInfoPropertyName = "UserMessageItemObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserMessageItemType), TypeInfoPropertyName = "UserMessageItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContentItem4), TypeInfoPropertyName = "ContentItem42")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileAnnotationSource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileAnnotationSourceType), TypeInfoPropertyName = "FileAnnotationSourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileAnnotation))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileAnnotationType), TypeInfoPropertyName = "FileAnnotationType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UrlAnnotationSource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UrlAnnotationSourceType), TypeInfoPropertyName = "UrlAnnotationSourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UrlAnnotation))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UrlAnnotationType), TypeInfoPropertyName = "UrlAnnotationType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseOutputText))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseOutputTextType), TypeInfoPropertyName = "ResponseOutputTextType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnnotationsItem3), TypeInfoPropertyName = "AnnotationsItem32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantMessageItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantMessageItemObject), TypeInfoPropertyName = "AssistantMessageItemObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantMessageItemType), TypeInfoPropertyName = "AssistantMessageItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WidgetMessageItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WidgetMessageItemObject), TypeInfoPropertyName = "WidgetMessageItemObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WidgetMessageItemType), TypeInfoPropertyName = "WidgetMessageItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ClientToolCallStatus), TypeInfoPropertyName = "ClientToolCallStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ClientToolCallItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ClientToolCallItemObject), TypeInfoPropertyName = "ClientToolCallItemObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ClientToolCallItemType), TypeInfoPropertyName = "ClientToolCallItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TaskType), TypeInfoPropertyName = "TaskType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TaskItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TaskItemObject), TypeInfoPropertyName = "TaskItemObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TaskItemType), TypeInfoPropertyName = "TaskItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TaskGroupTask))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TaskGroupItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TaskGroupItemObject), TypeInfoPropertyName = "TaskGroupItemObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TaskGroupItemType), TypeInfoPropertyName = "TaskGroupItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadItem), TypeInfoPropertyName = "ThreadItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadItemDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadItemListResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadItemListResourceObject), TypeInfoPropertyName = "ThreadItemListResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ActiveStatus))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ActiveStatusType), TypeInfoPropertyName = "ActiveStatusType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LockedStatus))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LockedStatusType), TypeInfoPropertyName = "LockedStatusType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ClosedStatus))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ClosedStatusType), TypeInfoPropertyName = "ClosedStatusType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadResourceObject), TypeInfoPropertyName = "ThreadResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Status), TypeInfoPropertyName = "Status2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadResourceStatusDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeletedThreadResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeletedThreadResourceObject), TypeInfoPropertyName = "DeletedThreadResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadListResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadListResourceObject), TypeInfoPropertyName = "ThreadListResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DragPoint))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateBatchRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateBatchRequestEndpoint), TypeInfoPropertyName = "CreateBatchRequestEndpoint2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateBatchRequestCompletionWindow), TypeInfoPropertyName = "CreateBatchRequestCompletionWindow2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UpdateChatCompletionRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateConversationItemsRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UpdateEvalRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AdminApiKeysCreateRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListAssistantsOrder), TypeInfoPropertyName = "ListAssistantsOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListChatCompletionsOrder), TypeInfoPropertyName = "ListChatCompletionsOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GetChatCompletionMessagesOrder), TypeInfoPropertyName = "GetChatCompletionMessagesOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListContainersOrder), TypeInfoPropertyName = "ListContainersOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListContainerFilesOrder), TypeInfoPropertyName = "ListContainerFilesOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListConversationItemsOrder), TypeInfoPropertyName = "ListConversationItemsOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListEvalsOrder), TypeInfoPropertyName = "ListEvalsOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListEvalsOrderBy), TypeInfoPropertyName = "ListEvalsOrderBy2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GetEvalRunsOrder), TypeInfoPropertyName = "GetEvalRunsOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GetEvalRunsStatus), TypeInfoPropertyName = "GetEvalRunsStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GetEvalRunOutputItemsStatus), TypeInfoPropertyName = "GetEvalRunOutputItemsStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GetEvalRunOutputItemsOrder), TypeInfoPropertyName = "GetEvalRunOutputItemsOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListFilesOrder), TypeInfoPropertyName = "ListFilesOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionsOrder), TypeInfoPropertyName = "ListFineTuningCheckpointPermissionsOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AdminApiKeysListOrder), TypeInfoPropertyName = "AdminApiKeysListOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListAuditLogsEffectiveAt))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListOrganizationCertificatesOrder), TypeInfoPropertyName = "ListOrganizationCertificatesOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GetCertificateIncludeItem), TypeInfoPropertyName = "GetCertificateIncludeItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageCostsBucketWidth), TypeInfoPropertyName = "UsageCostsBucketWidth2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageCostsGroupByItem), TypeInfoPropertyName = "UsageCostsGroupByItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListGroupsOrder), TypeInfoPropertyName = "ListGroupsOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListGroupRoleAssignmentsOrder), TypeInfoPropertyName = "ListGroupRoleAssignmentsOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListGroupUsersOrder), TypeInfoPropertyName = "ListGroupUsersOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListProjectCertificatesOrder), TypeInfoPropertyName = "ListProjectCertificatesOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListProjectGroupsOrder), TypeInfoPropertyName = "ListProjectGroupsOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListRolesOrder), TypeInfoPropertyName = "ListRolesOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageAudioSpeechesBucketWidth), TypeInfoPropertyName = "UsageAudioSpeechesBucketWidth2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageAudioSpeechesGroupByItem), TypeInfoPropertyName = "UsageAudioSpeechesGroupByItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageAudioTranscriptionsBucketWidth), TypeInfoPropertyName = "UsageAudioTranscriptionsBucketWidth2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageAudioTranscriptionsGroupByItem), TypeInfoPropertyName = "UsageAudioTranscriptionsGroupByItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageCodeInterpreterSessionsBucketWidth), TypeInfoPropertyName = "UsageCodeInterpreterSessionsBucketWidth2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageCodeInterpreterSessionsGroupByItem), TypeInfoPropertyName = "UsageCodeInterpreterSessionsGroupByItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageCompletionsBucketWidth), TypeInfoPropertyName = "UsageCompletionsBucketWidth2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageCompletionsGroupByItem), TypeInfoPropertyName = "UsageCompletionsGroupByItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageEmbeddingsBucketWidth), TypeInfoPropertyName = "UsageEmbeddingsBucketWidth2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageEmbeddingsGroupByItem), TypeInfoPropertyName = "UsageEmbeddingsGroupByItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageImagesBucketWidth), TypeInfoPropertyName = "UsageImagesBucketWidth2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageImagesSource), TypeInfoPropertyName = "UsageImagesSource2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageImagesSize), TypeInfoPropertyName = "UsageImagesSize2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageImagesGroupByItem), TypeInfoPropertyName = "UsageImagesGroupByItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageModerationsBucketWidth), TypeInfoPropertyName = "UsageModerationsBucketWidth2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageModerationsGroupByItem), TypeInfoPropertyName = "UsageModerationsGroupByItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageVectorStoresBucketWidth), TypeInfoPropertyName = "UsageVectorStoresBucketWidth2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageVectorStoresGroupByItem), TypeInfoPropertyName = "UsageVectorStoresGroupByItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListUserRoleAssignmentsOrder), TypeInfoPropertyName = "ListUserRoleAssignmentsOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListProjectGroupRoleAssignmentsOrder), TypeInfoPropertyName = "ListProjectGroupRoleAssignmentsOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListProjectRolesOrder), TypeInfoPropertyName = "ListProjectRolesOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListProjectUserRoleAssignmentsOrder), TypeInfoPropertyName = "ListProjectUserRoleAssignmentsOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListInputItemsOrder), TypeInfoPropertyName = "ListInputItemsOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListMessagesOrder), TypeInfoPropertyName = "ListMessagesOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListRunsOrder), TypeInfoPropertyName = "ListRunsOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateRunIncludeItem), TypeInfoPropertyName = "CreateRunIncludeItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListRunStepsOrder), TypeInfoPropertyName = "ListRunStepsOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListRunStepsIncludeItem), TypeInfoPropertyName = "ListRunStepsIncludeItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GetRunStepIncludeItem), TypeInfoPropertyName = "GetRunStepIncludeItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListVectorStoresOrder), TypeInfoPropertyName = "ListVectorStoresOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListFilesInVectorStoreBatchOrder), TypeInfoPropertyName = "ListFilesInVectorStoreBatchOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListFilesInVectorStoreBatchFilter), TypeInfoPropertyName = "ListFilesInVectorStoreBatchFilter2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListVectorStoreFilesOrder), TypeInfoPropertyName = "ListVectorStoreFilesOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListVectorStoreFilesFilter), TypeInfoPropertyName = "ListVectorStoreFilesFilter2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfCreateTranscriptionResponseJsonCreateTranscriptionResponseDiarizedJsonCreateTranscriptionResponseVerboseJson2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfCreateTranslationResponseJsonCreateTranslationResponseVerboseJson2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteEvalResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteEvalRunResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AdminApiKeysDeleteResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List, global::System.Collections.Generic.List>>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::tryAGI.OpenAI.MCPToolFilter>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, byte[]>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - public sealed partial class SourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext - { - } -} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContextTypes.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContextTypes.g.cs deleted file mode 100644 index 42ebc51e..00000000 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContextTypes.g.cs +++ /dev/null @@ -1,11938 +0,0 @@ - -#nullable enable - -#pragma warning disable CS0618 // Type or member is obsolete - -namespace tryAGI.OpenAI -{ - /// - /// - /// - public sealed partial class JsonSerializerContextTypes - { - /// - /// - /// - public global::System.Collections.Generic.Dictionary? StringStringDictionary { get; set; } - - /// - /// - /// - public global::System.Collections.Generic.Dictionary? StringObjectDictionary { get; set; } - - /// - /// - /// - public global::System.Text.Json.JsonElement? JsonElement { get; set; } - - /// - /// - /// - public global::tryAGI.OpenAI.AddUploadPartRequest? Type0 { get; set; } - /// - /// - /// - public byte[]? Type1 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AdminApiKey? Type2 { get; set; } - /// - /// - /// - public string? Type3 { get; set; } - /// - /// - /// - public global::System.DateTimeOffset? Type4 { get; set; } - /// - /// - /// - public object? Type5 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AdminApiKeyOwner? Type6 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ApiKeyList? Type7 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type8 { get; set; } - /// - /// - /// - public bool? Type9 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AssignedRoleDetails? Type10 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type11 { get; set; } - /// - /// - /// - public long? Type12 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AssistantObject? Type13 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AssistantObjectObject? Type14 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList>? Type15 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type16 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AssistantToolsCode? Type17 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AssistantToolsFileSearch? Type18 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AssistantToolsFunction? Type19 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AssistantObjectToolResources2? Type20 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AssistantObjectToolResourcesCodeInterpreter? Type21 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AssistantObjectToolResourcesFileSearch? Type22 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.Dictionary? Type23 { get; set; } - /// - /// - /// - public double? Type24 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AssistantsApiResponseFormatOption? Type25 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AssistantStreamEvent? Type26 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ThreadStreamEvent? Type27 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStreamEvent? Type28 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepStreamEvent? Type29 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageStreamEvent? Type30 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ErrorEvent? Type31 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.DoneEvent? Type32 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AssistantSupportedModels? Type33 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AssistantToolsCodeType? Type34 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AssistantToolsFileSearchType? Type35 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AssistantToolsFileSearchFileSearch? Type36 { get; set; } - /// - /// - /// - public int? Type37 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FileSearchRankingOptions? Type38 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AssistantToolsFileSearchTypeOnly? Type39 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AssistantToolsFileSearchTypeOnlyType? Type40 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AssistantToolsFunctionType? Type41 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionObject? Type42 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum? Type43 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseFormatText? Type44 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseFormatJsonObject? Type45 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseFormatJsonSchema? Type46 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AssistantsApiToolChoiceOption? Type47 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum? Type48 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AssistantsNamedToolChoice? Type49 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AssistantsNamedToolChoiceType? Type50 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AssistantsNamedToolChoiceFunction? Type51 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AudioResponseFormat? Type52 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AudioTranscription? Type53 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AnyOf? Type54 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AudioTranscriptionModel? Type55 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLog? Type56 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogEventType? Type57 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogProject? Type58 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogActor? Type59 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogApiKeyCreated? Type60 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogApiKeyCreatedData? Type61 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogApiKeyUpdated? Type62 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogApiKeyUpdatedChangesRequested? Type63 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogApiKeyDeleted? Type64 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogCheckpointPermissionCreated? Type65 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogCheckpointPermissionCreatedData? Type66 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogCheckpointPermissionDeleted? Type67 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogExternalKeyRegistered? Type68 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogExternalKeyRemoved? Type69 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogGroupCreated? Type70 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogGroupCreatedData? Type71 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogGroupUpdated? Type72 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogGroupUpdatedChangesRequested? Type73 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogGroupDeleted? Type74 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogScimEnabled? Type75 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogScimDisabled? Type76 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogInviteSent? Type77 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogInviteSentData? Type78 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogInviteAccepted? Type79 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogInviteDeleted? Type80 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogIpAllowlistCreated? Type81 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogIpAllowlistUpdated? Type82 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogIpAllowlistDeleted? Type83 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogIpAllowlistConfigActivated? Type84 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type85 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogIpAllowlistConfigActivatedConfig? Type86 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogIpAllowlistConfigDeactivated? Type87 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type88 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogIpAllowlistConfigDeactivatedConfig? Type89 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogLoginFailed? Type90 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogLogoutFailed? Type91 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogOrganizationUpdated? Type92 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogOrganizationUpdatedChangesRequested? Type93 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogProjectCreated? Type94 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogProjectCreatedData? Type95 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogProjectUpdated? Type96 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogProjectUpdatedChangesRequested? Type97 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogProjectArchived? Type98 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogProjectDeleted? Type99 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogRateLimitUpdated? Type100 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogRateLimitUpdatedChangesRequested? Type101 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogRateLimitDeleted? Type102 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogRoleCreated? Type103 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogRoleUpdated? Type104 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogRoleUpdatedChangesRequested? Type105 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogRoleDeleted? Type106 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogRoleAssignmentCreated? Type107 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogRoleAssignmentDeleted? Type108 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogServiceAccountCreated? Type109 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogServiceAccountCreatedData? Type110 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogServiceAccountUpdated? Type111 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogServiceAccountUpdatedChangesRequested? Type112 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogServiceAccountDeleted? Type113 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogUserAdded? Type114 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogUserAddedData? Type115 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogUserUpdated? Type116 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogUserUpdatedChangesRequested? Type117 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogUserDeleted? Type118 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogCertificateCreated? Type119 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogCertificateUpdated? Type120 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogCertificateDeleted? Type121 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogCertificatesActivated? Type122 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type123 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogCertificatesActivatedCertificate? Type124 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogCertificatesDeactivated? Type125 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type126 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogCertificatesDeactivatedCertificate? Type127 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogActorType? Type128 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogActorSession? Type129 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogActorApiKey? Type130 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogActorApiKeyType? Type131 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogActorUser? Type132 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AuditLogActorServiceAccount? Type133 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AutoChunkingStrategyRequestParam? Type134 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AutoChunkingStrategyRequestParamType? Type135 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.Batch? Type136 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.BatchObject? Type137 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.BatchErrors? Type138 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type139 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.BatchErrorsDataItem? Type140 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.BatchStatus? Type141 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.BatchRequestCounts? Type142 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.BatchUsage? Type143 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.BatchUsageInputTokensDetails? Type144 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.BatchUsageOutputTokensDetails? Type145 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.BatchFileExpirationAfter? Type146 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.BatchFileExpirationAfterAnchor? Type147 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.Certificate? Type148 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CertificateObject? Type149 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CertificateCertificateDetails? Type150 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionAllowedTools? Type151 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionAllowedToolsMode? Type152 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type153 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionAllowedToolsChoice? Type154 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionAllowedToolsChoiceType? Type155 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionDeleted? Type156 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionDeletedObject? Type157 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionFunctionCallOption? Type158 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionFunctions? Type159 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionParameters? Type160 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionList? Type161 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionListObject? Type162 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type163 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateChatCompletionResponse? Type164 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCall? Type165 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCallType? Type166 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCallCustom? Type167 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionMessageList? Type168 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionMessageListObject? Type169 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList>? Type170 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AllOf? Type171 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionResponseMessage? Type172 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionMessageListDataItem? Type173 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList>? Type174 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type175 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText? Type176 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImage? Type177 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionMessageToolCall? Type178 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionMessageToolCallType? Type179 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionMessageToolCallFunction? Type180 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionMessageToolCallChunk? Type181 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionMessageToolCallChunkType? Type182 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionMessageToolCallChunkFunction? Type183 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type184 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionMessageToolCallsItem? Type185 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionMessageToolCallDiscriminator? Type186 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type187 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionModalitiesVariant1Item? Type188 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionNamedToolChoice? Type189 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceType? Type190 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceFunction? Type191 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustom? Type192 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustomType? Type193 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustomCustom? Type194 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage? Type195 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf>? Type196 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type197 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPart? Type198 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageRole? Type199 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageAudio2? Type200 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageFunctionCall2? Type201 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusal? Type202 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminator? Type203 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessage? Type204 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf>? Type205 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type206 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessageRole? Type207 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessage? Type208 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessageRole? Type209 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessage? Type210 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionRequestSystemMessage? Type211 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionRequestUserMessage? Type212 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionRequestToolMessage? Type213 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminator? Type214 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudio? Type215 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudioType? Type216 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudioInputAudio? Type217 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudioInputAudioFormat? Type218 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFile? Type219 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFileType? Type220 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFileFile? Type221 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImageType? Type222 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImageImageUrl? Type223 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImageImageUrlDetail? Type224 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusalType? Type225 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartTextType? Type226 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf>? Type227 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type228 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionRequestSystemMessageContentPart? Type229 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionRequestSystemMessageRole? Type230 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionRequestToolMessageRole? Type231 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf>? Type232 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type233 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionRequestToolMessageContentPart? Type234 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf>? Type235 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type236 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionRequestUserMessageContentPart? Type237 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionRequestUserMessageRole? Type238 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type239 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionResponseMessageAnnotation? Type240 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionResponseMessageAnnotationType? Type241 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionResponseMessageAnnotationUrlCitation? Type242 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionResponseMessageRole? Type243 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionResponseMessageFunctionCall? Type244 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionResponseMessageAudio2? Type245 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionRole? Type246 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionStreamOptionsVariant1? Type247 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionStreamResponseDelta? Type248 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionStreamResponseDeltaFunctionCall? Type249 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type250 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionStreamResponseDeltaRole? Type251 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionTokenLogprob? Type252 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type253 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type254 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionTokenLogprobTopLogprob? Type255 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionTool? Type256 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionToolType? Type257 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionToolChoiceOption? Type258 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatCompletionToolChoiceOptionEnum? Type259 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChunkingStrategyRequestParam? Type260 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.StaticChunkingStrategyRequestParam? Type261 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminator? Type262 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CodeInterpreterFileOutput? Type263 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CodeInterpreterFileOutputType? Type264 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type265 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CodeInterpreterFileOutputFile? Type266 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CodeInterpreterTextOutput? Type267 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CodeInterpreterTextOutputType? Type268 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CodeInterpreterTool? Type269 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CodeInterpreterToolType? Type270 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type271 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AutoCodeInterpreterToolParam? Type272 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CodeInterpreterToolCall? Type273 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CodeInterpreterToolCallType? Type274 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CodeInterpreterToolCallStatus? Type275 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type276 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OutputsVariant1Item? Type277 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CodeInterpreterOutputLogs? Type278 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CodeInterpreterOutputImage? Type279 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CodeInterpreterToolCallOutputsVariant1ItemDiscriminator? Type280 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ComparisonFilter? Type281 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ComparisonFilterType? Type282 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf>>? Type283 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList>? Type284 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type285 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CompleteUploadRequest? Type286 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CompletionUsage? Type287 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CompletionUsageCompletionTokensDetails? Type288 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CompletionUsagePromptTokensDetails? Type289 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CompoundFilter? Type290 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CompoundFilterType? Type291 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type292 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FiltersItem? Type293 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CompoundFilterFilterDiscriminator? Type294 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ComputerAction? Type295 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ClickParam? Type296 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.DoubleClickAction? Type297 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.DragParam? Type298 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.KeyPressAction? Type299 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MoveParam? Type300 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ScreenshotParam? Type301 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ScrollParam? Type302 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TypeParam? Type303 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WaitParam? Type304 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ComputerActionDiscriminator? Type305 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type306 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ComputerScreenshotImage? Type307 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ComputerScreenshotImageType? Type308 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ComputerToolCall? Type309 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ComputerToolCallType? Type310 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type311 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ComputerCallSafetyCheckParam? Type312 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ComputerToolCallStatus? Type313 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ComputerToolCallOutput? Type314 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ComputerToolCallOutputType? Type315 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ComputerToolCallOutputStatus? Type316 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ComputerToolCallOutputResource? Type317 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2? Type318 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ComputerCallOutputStatus? Type319 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ContainerFileListResource? Type320 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ContainerFileListResourceObject? Type321 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type322 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ContainerFileResource? Type323 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ContainerListResource? Type324 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ContainerListResourceObject? Type325 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type326 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ContainerResource? Type327 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ContainerResourceExpiresAfter? Type328 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ContainerResourceExpiresAfterAnchor? Type329 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ContainerResourceMemoryLimit? Type330 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ContainerResourceNetworkPolicy? Type331 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ContainerResourceNetworkPolicyType? Type332 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.Content5? Type333 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InputContent? Type334 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OutputContent? Type335 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ConversationItem? Type336 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.Message? Type337 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionToolCallResource? Type338 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionToolCallOutputResource? Type339 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FileSearchToolCall? Type340 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebSearchToolCall? Type341 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageGenToolCall? Type342 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ToolSearchCall? Type343 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ToolSearchOutput? Type344 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ReasoningItem? Type345 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CompactionBody? Type346 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.LocalShellToolCall? Type347 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.LocalShellToolCallOutput? Type348 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionShellCall? Type349 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionShellCallOutput? Type350 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ApplyPatchToolCall? Type351 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ApplyPatchToolCallOutput? Type352 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MCPListTools? Type353 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MCPApprovalRequest? Type354 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MCPApprovalResponseResource? Type355 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MCPToolCall? Type356 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CustomToolCall? Type357 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CustomToolCallOutput? Type358 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ConversationItemDiscriminator? Type359 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ConversationItemList? Type360 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ConversationItemListObject? Type361 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type362 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ConversationParam? Type363 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ConversationParam2? Type364 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CostsResult? Type365 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CostsResultObject? Type366 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CostsResultAmount? Type367 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateAssistantRequest? Type368 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AnyOf? Type369 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ReasoningEffortEnum? Type370 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResources2? Type371 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesCodeInterpreter? Type372 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearch? Type373 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type374 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStore? Type375 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type376 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategy? Type377 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyType? Type378 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy? Type379 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyType? Type380 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyStatic? Type381 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateChatCompletionRequest? Type382 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateModelResponseProperties? Type383 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2? Type384 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type385 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ModelIdsShared? Type386 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type387 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VerbosityEnum? Type388 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2WebSearchOptions? Type389 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocation? Type390 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocationType? Type391 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebSearchLocation? Type392 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebSearchContextSize? Type393 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseFormat? Type394 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2ResponseFormatDiscriminator? Type395 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2Audio? Type396 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VoiceIdsOrCustomVoice? Type397 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2AudioFormat? Type398 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.StopConfiguration? Type399 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.Dictionary? Type400 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.PredictionContent? Type401 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList>? Type402 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type403 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CustomToolChatCompletions? Type404 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type405 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2FunctionCall? Type406 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type407 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type408 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateChatCompletionResponseChoice? Type409 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateChatCompletionResponseChoiceFinishReason? Type410 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateChatCompletionResponseChoiceLogprobs2? Type411 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type412 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ServiceTierEnum? Type413 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateChatCompletionResponseObject? Type414 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateChatCompletionStreamResponse? Type415 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type416 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateChatCompletionStreamResponseChoice? Type417 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateChatCompletionStreamResponseChoiceLogprobs? Type418 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateChatCompletionStreamResponseChoiceFinishReason? Type419 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateChatCompletionStreamResponseObject? Type420 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateCompletionRequest? Type421 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AnyOf? Type422 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateCompletionRequestModel? Type423 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>? Type424 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type425 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList>? Type426 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateCompletionResponse? Type427 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type428 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateCompletionResponseChoice? Type429 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateCompletionResponseChoiceFinishReason? Type430 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateCompletionResponseChoiceLogprobs2? Type431 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type432 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList>? Type433 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.Dictionary? Type434 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateCompletionResponseObject? Type435 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateContainerBody? Type436 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateContainerBodyExpiresAfter? Type437 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateContainerBodyExpiresAfterAnchor? Type438 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type439 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.SkillsItem? Type440 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.SkillReferenceParam? Type441 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InlineSkillParam? Type442 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateContainerBodySkillDiscriminator? Type443 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateContainerBodyMemoryLimit? Type444 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.NetworkPolicy? Type445 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam? Type446 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam? Type447 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateContainerBodyNetworkPolicyDiscriminator? Type448 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateContainerFileBody? Type449 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateEmbeddingRequest? Type450 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AnyOf? Type451 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateEmbeddingRequestModel? Type452 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateEmbeddingRequestEncodingFormat? Type453 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateEmbeddingResponse? Type454 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type455 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.Embedding? Type456 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateEmbeddingResponseObject? Type457 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateEmbeddingResponseUsage? Type458 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSource? Type459 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceType? Type460 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type461 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesTemplateInputMessages? Type462 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesTemplateInputMessagesType? Type463 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList>? Type464 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type465 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EasyInputMessage? Type466 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalItem? Type467 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages? Type468 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessagesType? Type469 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceSamplingParams? Type470 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type471 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type472 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type473 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalJsonlFileContentSource? Type474 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalJsonlFileIdSource? Type475 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalStoredCompletionsSource? Type476 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateEvalCustomDataSourceConfig? Type477 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateEvalCustomDataSourceConfigType? Type478 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateEvalItem? Type479 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateEvalItemSimpleInputMessage? Type480 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateEvalJsonlRunDataSource? Type481 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateEvalJsonlRunDataSourceType? Type482 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type483 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateEvalLabelModelGrader? Type484 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateEvalLabelModelGraderType? Type485 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type486 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateEvalLogsDataSourceConfig? Type487 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateEvalLogsDataSourceConfigType? Type488 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateEvalRequest? Type489 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type490 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfig? Type491 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList>? Type492 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type493 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalGraderStringCheck? Type494 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalGraderTextSimilarity? Type495 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalGraderPython? Type496 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalGraderScoreModel? Type497 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSource? Type498 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceType? Type499 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type500 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesTemplate? Type501 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesTemplateType? Type502 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList>? Type503 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type504 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesTemplateTemplateItem? Type505 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference? Type506 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReferenceType? Type507 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceSamplingParams? Type508 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type509 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.Tool? Type510 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceSamplingParamsText? Type511 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TextResponseFormatConfiguration? Type512 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type513 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalResponsesSource? Type514 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateEvalRunRequest? Type515 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type516 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfigType? Type517 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateFileRequest? Type518 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateFileRequestPurpose? Type519 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FileExpirationAfter? Type520 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateFineTuningCheckpointPermissionRequest? Type521 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequest? Type522 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AnyOf? Type523 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequestModel? Type524 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparameters? Type525 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type526 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersBatchSize? Type527 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type528 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersLearningRateMultiplier? Type529 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type530 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersNEpochs? Type531 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type532 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequestIntegration? Type533 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequestIntegrationType? Type534 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequestIntegrationWandb? Type535 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuneMethod? Type536 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateGroupBody? Type537 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateGroupUserBody? Type538 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateImageEditRequest? Type539 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AnyOf>? Type540 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type541 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateImageEditRequestBackground? Type542 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AnyOf? Type543 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateImageEditRequestModel? Type544 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateImageEditRequestSize? Type545 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateImageEditRequestResponseFormat? Type546 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateImageEditRequestOutputFormat? Type547 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InputFidelity? Type548 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateImageEditRequestQuality? Type549 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateImageRequest? Type550 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AnyOf? Type551 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateImageRequestModel? Type552 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateImageRequestQuality? Type553 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateImageRequestResponseFormat? Type554 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateImageRequestOutputFormat? Type555 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateImageRequestSize? Type556 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateImageRequestModeration? Type557 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateImageRequestBackground? Type558 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateImageRequestStyle? Type559 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateImageVariationRequest? Type560 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AnyOf? Type561 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateImageVariationRequestModel? Type562 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateImageVariationRequestResponseFormat? Type563 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateImageVariationRequestSize? Type564 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateMessageRequest? Type565 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateMessageRequestRole? Type566 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf>>? Type567 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList>? Type568 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type569 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageContentImageFileObject? Type570 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageContentImageUrlObject? Type571 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageRequestContentTextObject? Type572 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type573 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateMessageRequestAttachmentsVariant1Item? Type574 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList>? Type575 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type576 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ModelResponseProperties? Type577 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2? Type578 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateModerationRequest? Type579 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>? Type580 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList>? Type581 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type582 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1? Type583 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1Type? Type584 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1ImageUrl? Type585 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant2? Type586 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant2Type? Type587 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AnyOf? Type588 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateModerationRequestModel? Type589 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateModerationResponse? Type590 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type591 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateModerationResponseResult? Type592 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategories? Type593 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryScores? Type594 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypes? Type595 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type596 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHateItem? Type597 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type598 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItem? Type599 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type600 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItem? Type601 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type602 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItem? Type603 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type604 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItem? Type605 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type606 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItem? Type607 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type608 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItem? Type609 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type610 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItem? Type611 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type612 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstruction? Type613 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type614 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSexualItem? Type615 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type616 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinor? Type617 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type618 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItem? Type619 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type620 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItem? Type621 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateResponse? Type622 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseProperties? Type623 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateResponseVariant3? Type624 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InputParam? Type625 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type626 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.IncludeEnum? Type627 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseStreamOptionsVariant1? Type628 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type629 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ContextManagementParam? Type630 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateRunRequest? Type631 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type632 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AllOf? Type633 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TruncationObject? Type634 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AllOf? Type635 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateSpeechRequest? Type636 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AnyOf? Type637 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateSpeechRequestModel? Type638 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateSpeechRequestResponseFormat? Type639 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateSpeechRequestStreamFormat? Type640 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateSpeechResponseStreamEvent? Type641 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.SpeechAudioDeltaEvent? Type642 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.SpeechAudioDoneEvent? Type643 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateSpeechResponseStreamEventDiscriminator? Type644 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateThreadAndRunRequest? Type645 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateThreadRequest? Type646 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AnyOf? Type647 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateThreadAndRunRequestModel? Type648 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResources? Type649 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResourcesCodeInterpreter? Type650 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResourcesFileSearch? Type651 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResources2? Type652 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesCodeInterpreter? Type653 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearch? Type654 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type655 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStore? Type656 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type657 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategy? Type658 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyType? Type659 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy? Type660 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyType? Type661 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyStatic? Type662 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateTranscriptionRequest? Type663 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AnyOf? Type664 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateTranscriptionRequestModel? Type665 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type666 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TranscriptionInclude? Type667 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type668 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateTranscriptionRequestTimestampGranularitie? Type669 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AnyOf? Type670 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateTranscriptionRequestChunkingStrategyVariant1? Type671 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VadConfig? Type672 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJson? Type673 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonTask? Type674 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type675 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TranscriptionDiarizedSegment? Type676 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsage? Type677 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TranscriptTextUsageTokens? Type678 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TranscriptTextUsageDuration? Type679 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsageDiscriminator? Type680 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseJson? Type681 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type682 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseJsonLogprob? Type683 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type684 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEvent? Type685 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TranscriptTextSegmentEvent? Type686 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TranscriptTextDeltaEvent? Type687 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TranscriptTextDoneEvent? Type688 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminator? Type689 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseVerboseJson? Type690 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type691 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TranscriptionWord? Type692 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type693 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TranscriptionSegment? Type694 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateTranslationRequest? Type695 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AnyOf? Type696 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateTranslationRequestModel? Type697 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateTranslationRequestResponseFormat? Type698 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateTranslationResponseJson? Type699 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateTranslationResponseVerboseJson? Type700 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateUploadRequest? Type701 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateUploadRequestPurpose? Type702 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateVectorStoreFileBatchRequest? Type703 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type704 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateVectorStoreFileRequest? Type705 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateVectorStoreRequest? Type706 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VectorStoreExpirationAfter? Type707 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type708 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateVoiceConsentRequest? Type709 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateVoiceRequest? Type710 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CustomToolCallType? Type711 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CustomToolCallOutputType? Type712 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf>? Type713 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type714 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionAndCustomToolCallOutput? Type715 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CustomToolCallOutputResource? Type716 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CustomToolCallOutputResourceVariant2? Type717 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionCallOutputStatusEnum? Type718 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CustomToolCallResource? Type719 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CustomToolCallResourceVariant2? Type720 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionCallStatus? Type721 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CustomToolChatCompletionsType? Type722 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CustomToolChatCompletionsCustom? Type723 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type724 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatTextFormat? Type725 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatTextFormatType? Type726 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatGrammarFormat? Type727 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatGrammarFormatType? Type728 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatGrammarFormatGrammar? Type729 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatGrammarFormatGrammarSyntax? Type730 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.DeleteAssistantResponse? Type731 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.DeleteAssistantResponseObject? Type732 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.DeleteCertificateResponse? Type733 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.DeleteCertificateResponseObject? Type734 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.DeleteFileResponse? Type735 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.DeleteFileResponseObject? Type736 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.DeleteFineTuningCheckpointPermissionResponse? Type737 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.DeleteFineTuningCheckpointPermissionResponseObject? Type738 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.DeleteMessageResponse? Type739 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.DeleteMessageResponseObject? Type740 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.DeleteModelResponse? Type741 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.DeleteThreadResponse? Type742 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.DeleteThreadResponseObject? Type743 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.DeleteVectorStoreFileResponse? Type744 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.DeleteVectorStoreFileResponseObject? Type745 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.DeleteVectorStoreResponse? Type746 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.DeleteVectorStoreResponseObject? Type747 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.DeletedConversation? Type748 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.DeletedConversationResource? Type749 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.DeletedRoleAssignmentResource? Type750 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.DoneEventEvent? Type751 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.DoneEventData? Type752 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EasyInputMessageRole? Type753 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf>? Type754 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type755 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessagePhase? Type756 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EasyInputMessageType? Type757 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EditImageBodyJsonParam? Type758 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AnyOf? Type759 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EditImageBodyJsonParamModel? Type760 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type761 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageRefParam? Type762 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EditImageBodyJsonParamQuality2? Type763 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EditImageBodyJsonParamInputFidelity2? Type764 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EditImageBodyJsonParamSize2? Type765 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EditImageBodyJsonParamOutputFormat2? Type766 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EditImageBodyJsonParamModeration2? Type767 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EditImageBodyJsonParamBackground2? Type768 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type769 { get; set; } - /// - /// - /// - public float? Type770 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EmbeddingObject? Type771 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.Error? Type772 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ErrorEventEvent? Type773 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ErrorResponse? Type774 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.Eval? Type775 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalObject? Type776 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type777 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalCustomDataSourceConfig? Type778 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalLogsDataSourceConfig? Type779 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfig? Type780 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList>? Type781 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type782 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalGraderLabelModel? Type783 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalApiError? Type784 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalCustomDataSourceConfigType? Type785 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.GraderLabelModel? Type786 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.GraderPython? Type787 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalGraderPythonVariant2? Type788 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.GraderScoreModel? Type789 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalGraderScoreModelVariant2? Type790 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.GraderStringCheck? Type791 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.GraderTextSimilarity? Type792 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2? Type793 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalItemRole? Type794 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalItemContent? Type795 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalItemType? Type796 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalItemContentItem? Type797 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type798 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InputTextContent? Type799 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalItemContentOutputText? Type800 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalItemInputImage? Type801 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InputAudio? Type802 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalItemContentOutputTextType? Type803 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalItemInputImageType? Type804 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalJsonlFileContentSourceType? Type805 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type806 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalJsonlFileContentSourceContentItem? Type807 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalJsonlFileIdSourceType? Type808 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalList? Type809 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalListObject? Type810 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type811 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalLogsDataSourceConfigType? Type812 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalResponsesSourceType? Type813 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalRun? Type814 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalRunObject? Type815 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalRunResultCounts? Type816 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type817 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalRunPerModelUsageItem? Type818 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type819 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalRunPerTestingCriteriaResult? Type820 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalRunList? Type821 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalRunListObject? Type822 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type823 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalRunOutputItem? Type824 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalRunOutputItemObject? Type825 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type826 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalRunOutputItemResult? Type827 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalRunOutputItemSample? Type828 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type829 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalRunOutputItemSampleInputItem? Type830 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type831 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalRunOutputItemSampleOutputItem? Type832 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalRunOutputItemSampleUsage? Type833 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalRunOutputItemList? Type834 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalRunOutputItemListObject? Type835 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type836 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfigType? Type837 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EvalStoredCompletionsSourceType? Type838 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FileExpirationAfterAnchor? Type839 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FilePath? Type840 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FilePathType? Type841 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FileSearchRanker? Type842 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FileSearchToolCallType? Type843 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FileSearchToolCallStatus? Type844 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type845 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FileSearchToolCallResultsVariant1Item? Type846 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessage? Type847 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessageAssistantMessage? Type848 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuneDPOHyperparameters? Type849 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type850 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuneDPOHyperparametersBeta? Type851 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type852 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuneDPOHyperparametersBatchSize? Type853 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type854 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuneDPOHyperparametersLearningRateMultiplier? Type855 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type856 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuneDPOHyperparametersNEpochs? Type857 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuneDPOMethod? Type858 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuneMethodType? Type859 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuneSupervisedMethod? Type860 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuneReinforcementMethod? Type861 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparameters? Type862 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type863 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersBatchSize? Type864 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type865 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersLearningRateMultiplier? Type866 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type867 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersNEpochs? Type868 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersReasoningEffort? Type869 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type870 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersComputeMultiplier? Type871 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type872 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersEvalInterval? Type873 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type874 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersEvalSamples? Type875 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type876 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.GraderMulti? Type877 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuneSupervisedHyperparameters? Type878 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type879 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersBatchSize? Type880 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type881 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersLearningRateMultiplier? Type882 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type883 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersNEpochs? Type884 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuningCheckpointPermission? Type885 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuningCheckpointPermissionObject? Type886 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuningIntegration? Type887 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuningIntegrationType? Type888 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuningIntegrationWandb? Type889 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuningJob? Type890 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuningJobError2? Type891 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuningJobHyperparameters? Type892 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type893 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuningJobHyperparametersBatchSizeVariant1? Type894 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type895 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuningJobHyperparametersLearningRateMultiplier? Type896 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type897 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuningJobHyperparametersNEpochs? Type898 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuningJobObject? Type899 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuningJobStatus? Type900 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type901 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuningJobCheckpoint? Type902 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuningJobCheckpointMetrics? Type903 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuningJobCheckpointObject? Type904 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuningJobEvent? Type905 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuningJobEventObject? Type906 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuningJobEventLevel? Type907 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FineTuningJobEventType? Type908 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InputImageContent? Type909 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InputFileContent? Type910 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionAndCustomToolCallOutputDiscriminator? Type911 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionToolCall? Type912 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionToolCallType? Type913 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionToolCallStatus? Type914 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionToolCallOutput? Type915 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionToolCallOutputType? Type916 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionToolCallOutputStatus? Type917 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2? Type918 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionToolCallResourceVariant2? Type919 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.GraderLabelModelType? Type920 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type921 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.GraderMultiType? Type922 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type923 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.GraderPythonType? Type924 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.GraderScoreModelType? Type925 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.GraderScoreModelSamplingParams? Type926 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.GraderStringCheckType? Type927 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.GraderStringCheckOperation? Type928 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.GraderTextSimilarityType? Type929 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.GraderTextSimilarityEvaluationMetric? Type930 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.Group? Type931 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.GroupObject? Type932 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.GroupDeletedResource? Type933 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.GroupDeletedResourceObject? Type934 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.GroupListResource? Type935 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.GroupListResourceObject? Type936 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type937 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.GroupResponse? Type938 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.GroupResourceWithSuccess? Type939 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.GroupRoleAssignment? Type940 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.GroupRoleAssignmentObject? Type941 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.Role? Type942 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.GroupUserAssignment? Type943 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.GroupUserAssignmentObject? Type944 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.GroupUserDeletedResource? Type945 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.GroupUserDeletedResourceObject? Type946 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.Image2? Type947 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageEditCompletedEvent? Type948 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageEditCompletedEventType? Type949 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageEditCompletedEventSize? Type950 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageEditCompletedEventQuality? Type951 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageEditCompletedEventBackground? Type952 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageEditCompletedEventOutputFormat? Type953 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImagesUsage? Type954 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageEditPartialImageEvent? Type955 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageEditPartialImageEventType? Type956 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageEditPartialImageEventSize? Type957 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageEditPartialImageEventQuality? Type958 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageEditPartialImageEventBackground? Type959 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageEditPartialImageEventOutputFormat? Type960 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageEditStreamEvent? Type961 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageEditStreamEventDiscriminator? Type962 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageGenCompletedEvent? Type963 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageGenCompletedEventType? Type964 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageGenCompletedEventSize? Type965 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageGenCompletedEventQuality? Type966 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageGenCompletedEventBackground? Type967 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageGenCompletedEventOutputFormat? Type968 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageGenPartialImageEvent? Type969 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageGenPartialImageEventType? Type970 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageGenPartialImageEventSize? Type971 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageGenPartialImageEventQuality? Type972 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageGenPartialImageEventBackground? Type973 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageGenPartialImageEventOutputFormat? Type974 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageGenStreamEvent? Type975 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageGenStreamEventDiscriminator? Type976 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageGenTool? Type977 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageGenToolType? Type978 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AnyOf? Type979 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageGenToolModel? Type980 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageGenToolQuality? Type981 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageGenToolSize? Type982 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageGenToolOutputFormat? Type983 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageGenToolModeration? Type984 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageGenToolBackground? Type985 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageGenToolInputImageMask? Type986 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageGenActionEnum? Type987 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageGenToolCallType? Type988 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageGenToolCallStatus? Type989 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImagesResponse? Type990 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type991 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImagesResponseBackground? Type992 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImagesResponseOutputFormat? Type993 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImagesResponseSize? Type994 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImagesResponseQuality? Type995 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageGenUsage? Type996 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImagesUsageInputTokensDetails? Type997 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InputAudioType? Type998 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InputAudioInputAudio1? Type999 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InputAudioInputAudio1Format? Type1000 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InputContentDiscriminator? Type1001 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InputItem? Type1002 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.Item? Type1003 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ItemReferenceParam? Type1004 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InputItemDiscriminator? Type1005 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InputMessage? Type1006 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InputMessageType? Type1007 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InputMessageRole? Type1008 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InputMessageStatus? Type1009 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InputMessageResource? Type1010 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InputMessageResourceVariant2? Type1011 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1012 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.Invite? Type1013 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InviteObject? Type1014 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InviteRole? Type1015 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InviteStatus? Type1016 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1017 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InviteProject? Type1018 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InviteProjectRole? Type1019 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InviteDeleteResponse? Type1020 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InviteDeleteResponseObject? Type1021 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InviteListResponse? Type1022 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InviteListResponseObject? Type1023 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1024 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InviteProjectGroupBody? Type1025 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InviteRequest? Type1026 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InviteRequestRole? Type1027 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1028 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InviteRequestProject? Type1029 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InviteRequestProjectRole? Type1030 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OutputMessage? Type1031 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ComputerCallOutputItemParam? Type1032 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionCallOutputItemParam? Type1033 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ToolSearchCallItemParam? Type1034 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ToolSearchOutputItemParam? Type1035 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CompactionSummaryItemParam? Type1036 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionShellCallItemParam? Type1037 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionShellCallOutputItemParam? Type1038 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ApplyPatchToolCallItemParam? Type1039 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParam? Type1040 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MCPApprovalResponse? Type1041 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ItemDiscriminator? Type1042 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ItemResource? Type1043 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ItemResourceDiscriminator? Type1044 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListAssistantsResponse? Type1045 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1046 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListAuditLogsResponse? Type1047 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListAuditLogsResponseObject? Type1048 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1049 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListBatchesResponse? Type1050 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1051 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListBatchesResponseObject? Type1052 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListCertificatesResponse? Type1053 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1054 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListCertificatesResponseObject? Type1055 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListFilesResponse? Type1056 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1057 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OpenAIFile? Type1058 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponse? Type1059 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1060 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponseObject? Type1061 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListFineTuningJobCheckpointsResponse? Type1062 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1063 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListFineTuningJobCheckpointsResponseObject? Type1064 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListFineTuningJobEventsResponse? Type1065 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1066 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListFineTuningJobEventsResponseObject? Type1067 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListMessagesResponse? Type1068 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1069 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageObject? Type1070 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListModelsResponse? Type1071 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListModelsResponseObject? Type1072 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1073 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.Model17? Type1074 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListPaginatedFineTuningJobsResponse? Type1075 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1076 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListPaginatedFineTuningJobsResponseObject? Type1077 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListRunStepsResponse? Type1078 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1079 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepObject? Type1080 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListRunsResponse? Type1081 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1082 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunObject? Type1083 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListVectorStoreFilesResponse? Type1084 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1085 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VectorStoreFileObject? Type1086 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListVectorStoresResponse? Type1087 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1088 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VectorStoreObject? Type1089 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.LocalShellToolCallType? Type1090 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.LocalShellExecAction? Type1091 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.LocalShellToolCallStatus? Type1092 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.LocalShellToolCallOutputType? Type1093 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.LocalShellToolCallOutputStatus2? Type1094 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.LogProbProperties? Type1095 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MCPApprovalRequestType? Type1096 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MCPApprovalResponseType? Type1097 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MCPApprovalResponseResourceType? Type1098 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MCPListToolsType? Type1099 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1100 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MCPListToolsTool? Type1101 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MCPTool? Type1102 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MCPToolType? Type1103 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MCPToolConnectorId? Type1104 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf, global::tryAGI.OpenAI.MCPToolFilter>? Type1105 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MCPToolFilter? Type1106 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type1107 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MCPToolRequireApprovalVariant1Enum? Type1108 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MCPToolRequireApprovalVariant1Enum2? Type1109 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MCPToolCallType? Type1110 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MCPToolCallStatus? Type1111 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageContentImageFileObjectType? Type1112 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageContentImageFileObjectImageFile? Type1113 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageContentImageFileObjectImageFileDetail? Type1114 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageContentImageUrlObjectType? Type1115 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageContentImageUrlObjectImageUrl? Type1116 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageContentImageUrlObjectImageUrlDetail? Type1117 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageContentRefusalObject? Type1118 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageContentRefusalObjectType? Type1119 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObject? Type1120 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObjectType? Type1121 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObjectFileCitation? Type1122 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObject? Type1123 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObjectType? Type1124 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObjectFilePath? Type1125 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageContentTextObject? Type1126 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageContentTextObjectType? Type1127 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageContentTextObjectText? Type1128 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList>? Type1129 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type1130 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageDeltaContentImageFileObject? Type1131 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageDeltaContentImageFileObjectType? Type1132 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageDeltaContentImageFileObjectImageFile? Type1133 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageDeltaContentImageFileObjectImageFileDetail? Type1134 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObject? Type1135 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObjectType? Type1136 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObjectImageUrl? Type1137 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObjectImageUrlDetail? Type1138 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageDeltaContentRefusalObject? Type1139 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageDeltaContentRefusalObjectType? Type1140 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject? Type1141 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObjectType? Type1142 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObjectFileCitation? Type1143 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObject? Type1144 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObjectType? Type1145 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObjectFilePath? Type1146 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageDeltaContentTextObject? Type1147 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageDeltaContentTextObjectType? Type1148 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageDeltaContentTextObjectText? Type1149 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList>? Type1150 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type1151 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageDeltaObject? Type1152 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageDeltaObjectObject? Type1153 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageDeltaObjectDelta? Type1154 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageDeltaObjectDeltaRole? Type1155 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList>? Type1156 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type1157 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageObjectObject? Type1158 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageObjectStatus? Type1159 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageObjectIncompleteDetails2? Type1160 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageObjectIncompleteDetailsReason? Type1161 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageObjectRole? Type1162 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList>? Type1163 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type1164 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1165 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageObjectAttachmentsVariant1Item? Type1166 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageRequestContentTextObjectType? Type1167 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageStreamEventVariant1? Type1168 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageStreamEventVariant1Event? Type1169 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageStreamEventVariant2? Type1170 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageStreamEventVariant2Event? Type1171 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageStreamEventVariant3? Type1172 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageStreamEventVariant3Event? Type1173 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageStreamEventVariant4? Type1174 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageStreamEventVariant4Event? Type1175 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageStreamEventVariant5? Type1176 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageStreamEventVariant5Event? Type1177 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ModelObject? Type1178 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ModelIds? Type1179 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ModelIdsResponses? Type1180 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ModelIdsCompaction? Type1181 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ModelIdsResponsesEnum? Type1182 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ModelIdsSharedEnum? Type1183 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ModelResponsePropertiesPromptCacheRetention2? Type1184 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ModifyAssistantRequest? Type1185 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ModifyAssistantRequestToolResources2? Type1186 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ModifyAssistantRequestToolResourcesCodeInterpreter? Type1187 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ModifyAssistantRequestToolResourcesFileSearch? Type1188 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ModifyCertificateRequest? Type1189 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ModifyMessageRequest? Type1190 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ModifyRunRequest? Type1191 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ModifyThreadRequest? Type1192 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ModifyThreadRequestToolResources2? Type1193 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ModifyThreadRequestToolResourcesCodeInterpreter? Type1194 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ModifyThreadRequestToolResourcesFileSearch? Type1195 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.NoiseReductionType? Type1196 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OpenAIFileObject? Type1197 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OpenAIFilePurpose? Type1198 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OpenAIFileStatus? Type1199 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OtherChunkingStrategyResponseParam? Type1200 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OtherChunkingStrategyResponseParamType? Type1201 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OutputAudio? Type1202 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OutputAudioType? Type1203 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OutputTextContent? Type1204 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RefusalContent? Type1205 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ReasoningTextContent? Type1206 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OutputContentDiscriminator? Type1207 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OutputItem? Type1208 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OutputItemDiscriminator? Type1209 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OutputMessageType? Type1210 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OutputMessageRole? Type1211 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1212 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OutputMessageContent? Type1213 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OutputMessageStatus? Type1214 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OutputMessageContentDiscriminator? Type1215 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.PredictionContentType? Type1216 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.Project? Type1217 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectObject? Type1218 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectStatus? Type1219 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectApiKey? Type1220 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectApiKeyObject? Type1221 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectApiKeyOwner? Type1222 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectApiKeyOwnerType? Type1223 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectUser? Type1224 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectServiceAccount? Type1225 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectApiKeyDeleteResponse? Type1226 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectApiKeyDeleteResponseObject? Type1227 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectApiKeyListResponse? Type1228 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectApiKeyListResponseObject? Type1229 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1230 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectCreateRequest? Type1231 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectCreateRequestGeography? Type1232 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectGroup? Type1233 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectGroupObject? Type1234 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectGroupDeletedResource? Type1235 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectGroupDeletedResourceObject? Type1236 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectGroupListResource? Type1237 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectGroupListResourceObject? Type1238 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1239 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectListResponse? Type1240 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectListResponseObject? Type1241 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1242 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectRateLimit? Type1243 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectRateLimitObject? Type1244 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectRateLimitListResponse? Type1245 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectRateLimitListResponseObject? Type1246 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1247 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectRateLimitUpdateRequest? Type1248 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectServiceAccountObject? Type1249 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectServiceAccountRole? Type1250 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectServiceAccountApiKey? Type1251 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectServiceAccountApiKeyObject? Type1252 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectServiceAccountCreateRequest? Type1253 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectServiceAccountCreateResponse? Type1254 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectServiceAccountCreateResponseObject? Type1255 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectServiceAccountCreateResponseRole? Type1256 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectServiceAccountDeleteResponse? Type1257 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectServiceAccountDeleteResponseObject? Type1258 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectServiceAccountListResponse? Type1259 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectServiceAccountListResponseObject? Type1260 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1261 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectUpdateRequest? Type1262 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectUserObject? Type1263 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectUserRole? Type1264 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectUserCreateRequest? Type1265 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectUserCreateRequestRole? Type1266 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectUserDeleteResponse? Type1267 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectUserDeleteResponseObject? Type1268 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectUserListResponse? Type1269 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1270 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectUserUpdateRequest? Type1271 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ProjectUserUpdateRequestRole? Type1272 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.PromptVariant1? Type1273 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.PublicAssignOrganizationGroupRoleBody? Type1274 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.PublicCreateOrganizationRoleBody? Type1275 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.PublicRoleListResource? Type1276 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.PublicRoleListResourceObject? Type1277 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1278 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.PublicUpdateOrganizationRoleBody? Type1279 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeAudioFormats? Type1280 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmAudioFormat? Type1281 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmAudioFormatType? Type1282 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmuAudioFormat? Type1283 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmuAudioFormatType? Type1284 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioFormat? Type1285 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioFormatType? Type1286 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemCreate? Type1287 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemCreateType? Type1288 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeConversationItem? Type1289 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemDelete? Type1290 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemDeleteType? Type1291 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemRetrieve? Type1292 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemRetrieveType? Type1293 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemTruncate? Type1294 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemTruncateType? Type1295 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferAppend? Type1296 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferAppendType? Type1297 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferClear? Type1298 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferClearType? Type1299 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferCommit? Type1300 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferCommitType? Type1301 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventOutputAudioBufferClear? Type1302 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventOutputAudioBufferClearType? Type1303 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCancel? Type1304 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCancelType? Type1305 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCreate? Type1306 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCreateType? Type1307 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParams? Type1308 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventSessionUpdate? Type1309 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventSessionUpdateType? Type1310 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequest? Type1311 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventTranscriptionSessionUpdate? Type1312 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventTranscriptionSessionUpdateType? Type1313 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequest? Type1314 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaResponse? Type1315 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaResponseObject? Type1316 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaResponseStatus? Type1317 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetails? Type1318 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsType? Type1319 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsReason? Type1320 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsError? Type1321 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1322 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaResponseUsage? Type1323 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaResponseUsageInputTokenDetails? Type1324 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaResponseUsageInputTokenDetailsCachedTokensDetails? Type1325 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaResponseUsageOutputTokenDetails? Type1326 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VoiceIdsShared? Type1327 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1328 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaResponseModalitie? Type1329 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaResponseOutputAudioFormat? Type1330 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type1331 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaResponseMaxOutputTokens? Type1332 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1333 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsModalitie? Type1334 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsOutputAudioFormat? Type1335 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1336 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsTool? Type1337 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsToolType? Type1338 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type1339 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ToolChoiceOptions? Type1340 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ToolChoiceFunction? Type1341 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ToolChoiceMCP? Type1342 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type1343 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsMaxOutputTokens? Type1344 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type1345 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsConversation? Type1346 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemCreated? Type1347 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemCreatedType? Type1348 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemDeleted? Type1349 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemDeletedType? Type1350 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompleted? Type1351 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedType? Type1352 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1353 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDelta? Type1354 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaType? Type1355 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailed? Type1356 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedType? Type1357 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedError? Type1358 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegment? Type1359 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentType? Type1360 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemRetrieved? Type1361 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemRetrievedType? Type1362 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemTruncated? Type1363 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemTruncatedType? Type1364 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventError? Type1365 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventErrorType? Type1366 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventErrorError? Type1367 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCleared? Type1368 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferClearedType? Type1369 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCommitted? Type1370 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCommittedType? Type1371 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStarted? Type1372 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStartedType? Type1373 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStopped? Type1374 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStoppedType? Type1375 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsCompleted? Type1376 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsCompletedType? Type1377 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsFailed? Type1378 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsFailedType? Type1379 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsInProgress? Type1380 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsInProgressType? Type1381 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdated? Type1382 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedType? Type1383 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1384 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedRateLimit? Type1385 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedRateLimitName? Type1386 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDelta? Type1387 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDeltaType? Type1388 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDone? Type1389 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDoneType? Type1390 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDelta? Type1391 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDeltaType? Type1392 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDone? Type1393 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDoneType? Type1394 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAdded? Type1395 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedType? Type1396 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPart? Type1397 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPartType? Type1398 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDone? Type1399 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDoneType? Type1400 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePart? Type1401 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePartType? Type1402 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseCreated? Type1403 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseCreatedType? Type1404 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseDone? Type1405 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseDoneType? Type1406 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDelta? Type1407 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaType? Type1408 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDone? Type1409 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneType? Type1410 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDelta? Type1411 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaType? Type1412 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDone? Type1413 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDoneType? Type1414 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallCompleted? Type1415 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallCompletedType? Type1416 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallFailed? Type1417 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallFailedType? Type1418 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallInProgress? Type1419 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallInProgressType? Type1420 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemAdded? Type1421 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemAddedType? Type1422 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemDone? Type1423 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemDoneType? Type1424 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDelta? Type1425 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDeltaType? Type1426 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDone? Type1427 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDoneType? Type1428 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventSessionCreated? Type1429 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventSessionCreatedType? Type1430 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSession? Type1431 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventSessionUpdated? Type1432 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventSessionUpdatedType? Type1433 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionCreated? Type1434 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionCreatedType? Type1435 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse? Type1436 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionUpdated? Type1437 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionUpdatedType? Type1438 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeCallCreateRequest? Type1439 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGA? Type1440 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeCallReferRequest? Type1441 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeCallRejectRequest? Type1442 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeClientEvent? Type1443 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreate? Type1444 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemDelete? Type1445 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieve? Type1446 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncate? Type1447 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppend? Type1448 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClear? Type1449 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClear? Type1450 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommit? Type1451 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeClientEventResponseCancel? Type1452 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeClientEventResponseCreate? Type1453 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate? Type1454 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeClientEventDiscriminator? Type1455 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreateType? Type1456 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemDeleteType? Type1457 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieveType? Type1458 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncateType? Type1459 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppendType? Type1460 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClearType? Type1461 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommitType? Type1462 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClearType? Type1463 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeClientEventResponseCancelType? Type1464 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeClientEventResponseCreateType? Type1465 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeResponseCreateParams? Type1466 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeClientEventSessionUpdateType? Type1467 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type1468 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGA? Type1469 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeClientEventTranscriptionSessionUpdate? Type1470 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeClientEventTranscriptionSessionUpdateType? Type1471 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystem? Type1472 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageUser? Type1473 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistant? Type1474 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCall? Type1475 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutput? Type1476 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeMCPApprovalResponse? Type1477 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeMCPListTools? Type1478 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeMCPToolCall? Type1479 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeMCPApprovalRequest? Type1480 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeConversationItemDiscriminator? Type1481 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallObject? Type1482 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallType? Type1483 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallStatus? Type1484 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutputObject? Type1485 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutputType? Type1486 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutputStatus? Type1487 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantObject? Type1488 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantType? Type1489 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantStatus? Type1490 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantRole? Type1491 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1492 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantContentItem? Type1493 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantContentItemType? Type1494 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemObject? Type1495 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemType? Type1496 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemStatus? Type1497 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemRole? Type1498 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1499 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemContentItem? Type1500 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemContentItemType? Type1501 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserObject? Type1502 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserType? Type1503 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserStatus? Type1504 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserRole? Type1505 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1506 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItem? Type1507 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItemType? Type1508 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItemDetail? Type1509 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReference? Type1510 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceType? Type1511 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceObject? Type1512 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceStatus? Type1513 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceRole? Type1514 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1515 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceContentItem? Type1516 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceContentItemType? Type1517 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeCreateClientSecretRequest? Type1518 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeCreateClientSecretRequestExpiresAfter? Type1519 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeCreateClientSecretRequestExpiresAfterAnchor? Type1520 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeCreateClientSecretResponse? Type1521 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.Session2? Type1522 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGA? Type1523 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGA? Type1524 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminator? Type1525 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeFunctionTool? Type1526 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeFunctionToolType? Type1527 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeMCPApprovalRequestType? Type1528 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeMCPApprovalResponseType? Type1529 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeMCPHTTPError? Type1530 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeMCPHTTPErrorType? Type1531 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeMCPListToolsType? Type1532 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeMCPProtocolError? Type1533 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeMCPProtocolErrorType? Type1534 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeMCPToolCallType? Type1535 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type1536 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeMCPToolExecutionError? Type1537 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeMCPToolExecutionErrorType? Type1538 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeResponse? Type1539 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeResponseObject? Type1540 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeResponseStatus? Type1541 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeResponseStatusDetails? Type1542 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeResponseStatusDetailsType? Type1543 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeResponseStatusDetailsReason? Type1544 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeResponseStatusDetailsError? Type1545 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeResponseAudio? Type1546 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeResponseAudioOutput? Type1547 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeResponseUsage? Type1548 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeResponseUsageInputTokenDetails? Type1549 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeResponseUsageInputTokenDetailsCachedTokensDetails? Type1550 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeResponseUsageOutputTokenDetails? Type1551 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1552 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeResponseOutputModalitie? Type1553 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type1554 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeResponseMaxOutputTokens? Type1555 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1556 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeResponseCreateParamsOutputModalitie? Type1557 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeResponseCreateParamsAudio? Type1558 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeResponseCreateParamsAudioOutput? Type1559 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList>? Type1560 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type1561 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type1562 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeResponseCreateParamsMaxOutputTokens? Type1563 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type1564 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeResponseCreateParamsConversation? Type1565 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEvent? Type1566 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationCreated? Type1567 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreated? Type1568 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeleted? Type1569 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted? Type1570 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta? Type1571 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed? Type1572 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrieved? Type1573 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncated? Type1574 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventError? Type1575 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCleared? Type1576 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommitted? Type1577 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceived? Type1578 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted? Type1579 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped? Type1580 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdated? Type1581 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDelta? Type1582 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDone? Type1583 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDelta? Type1584 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDone? Type1585 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAdded? Type1586 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDone? Type1587 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseCreated? Type1588 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseDone? Type1589 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta? Type1590 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone? Type1591 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAdded? Type1592 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDone? Type1593 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDelta? Type1594 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDone? Type1595 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventSessionCreated? Type1596 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventSessionUpdated? Type1597 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStarted? Type1598 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStopped? Type1599 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferCleared? Type1600 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemAdded? Type1601 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDone? Type1602 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggered? Type1603 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegment? Type1604 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgress? Type1605 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompleted? Type1606 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailed? Type1607 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDelta? Type1608 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDone? Type1609 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgress? Type1610 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompleted? Type1611 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailed? Type1612 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventDiscriminator? Type1613 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedType? Type1614 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedConversation? Type1615 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemAddedType? Type1616 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreatedType? Type1617 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeletedType? Type1618 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDoneType? Type1619 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedType? Type1620 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDeltaType? Type1621 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailedType? Type1622 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailedError? Type1623 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegmentType? Type1624 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrievedType? Type1625 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncatedType? Type1626 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventErrorType? Type1627 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventErrorError? Type1628 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferClearedType? Type1629 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommittedType? Type1630 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceivedType? Type1631 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStartedType? Type1632 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStoppedType? Type1633 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggeredType? Type1634 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompletedType? Type1635 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailedType? Type1636 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgressType? Type1637 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferClearedType? Type1638 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStartedType? Type1639 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStoppedType? Type1640 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedType? Type1641 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1642 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedRateLimit? Type1643 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedRateLimitName? Type1644 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDeltaType? Type1645 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDoneType? Type1646 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDeltaType? Type1647 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDoneType? Type1648 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedType? Type1649 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedPart? Type1650 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedPartType? Type1651 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDoneType? Type1652 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDonePart? Type1653 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDonePartType? Type1654 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseCreatedType? Type1655 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseDoneType? Type1656 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDeltaType? Type1657 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDoneType? Type1658 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDeltaType? Type1659 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDoneType? Type1660 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompletedType? Type1661 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailedType? Type1662 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgressType? Type1663 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAddedType? Type1664 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDoneType? Type1665 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDeltaType? Type1666 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDoneType? Type1667 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventSessionCreatedType? Type1668 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventSessionUpdatedType? Type1669 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventTranscriptionSessionUpdated? Type1670 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeServerEventTranscriptionSessionUpdatedType? Type1671 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionObject? Type1672 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1673 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionModalitie? Type1674 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AnyOf? Type1675 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionModel? Type1676 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionInputAudioFormat? Type1677 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionOutputAudioFormat? Type1678 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1? Type1679 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionInputAudioNoiseReduction? Type1680 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type1681 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionTracingTracingConfigurationEnum? Type1682 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionTracingTracingConfigurationEnum2? Type1683 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1684 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type1685 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionMaxResponseOutputTokens? Type1686 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1687 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionIncludeVariant1Item? Type1688 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecret? Type1689 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1690 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestModalitie? Type1691 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestInputAudioTranscription? Type1692 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type1693 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTracingEnum? Type1694 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTracingEnum2? Type1695 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTurnDetection? Type1696 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1697 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTool? Type1698 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolType? Type1699 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type1700 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestMaxResponseOutputTokens? Type1701 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeTruncation? Type1702 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAType? Type1703 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1704 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAOutputModalitie? Type1705 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AnyOf? Type1706 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAModel? Type1707 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudio? Type1708 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInput? Type1709 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputNoiseReduction? Type1710 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioOutput? Type1711 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1712 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAIncludeItem? Type1713 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type1714 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATracingEnum? Type1715 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATracingEnum2? Type1716 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type1717 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAMaxOutputTokens? Type1718 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponse? Type1719 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1720 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseIncludeItem? Type1721 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1722 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseOutputModalitie? Type1723 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudio? Type1724 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInput? Type1725 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputNoiseReduction? Type1726 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetection? Type1727 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioOutput? Type1728 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type1729 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseTracingEnum? Type1730 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseTracingEnum2? Type1731 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseTurnDetection? Type1732 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type1733 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseMaxOutputTokens? Type1734 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAClientSecret? Type1735 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAType? Type1736 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1737 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAOutputModalitie? Type1738 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AnyOf? Type1739 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAModel? Type1740 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAAudio? Type1741 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAAudioInput? Type1742 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAAudioInputNoiseReduction? Type1743 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAAudioOutput? Type1744 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1745 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAIncludeItem? Type1746 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type1747 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGATracingTracingConfigurationEnum? Type1748 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGATracingTracingConfigurationEnum2? Type1749 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type1750 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAMaxOutputTokens? Type1751 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestTurnDetection? Type1752 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestTurnDetectionType? Type1753 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReduction? Type1754 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioFormat? Type1755 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1756 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestIncludeItem? Type1757 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAType? Type1758 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudio? Type1759 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInput? Type1760 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputNoiseReduction? Type1761 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1762 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAIncludeItem? Type1763 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseClientSecret? Type1764 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1765 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseModalitie? Type1766 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseTurnDetection? Type1767 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAType? Type1768 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1769 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAIncludeItem? Type1770 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudio? Type1771 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudioInput? Type1772 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudioInputNoiseReduction? Type1773 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudioInputTurnDetection? Type1774 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeTruncationEnum? Type1775 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeTruncationEnum2? Type1776 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeTruncationEnumType? Type1777 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeTruncationEnumTokenLimits? Type1778 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad? Type1779 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad? Type1780 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVadEagerness? Type1781 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1Discriminator? Type1782 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.Reasoning? Type1783 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ReasoningSummary2? Type1784 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ReasoningGenerateSummary2? Type1785 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ReasoningItemType? Type1786 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1787 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.SummaryTextContent? Type1788 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1789 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ReasoningItemStatus? Type1790 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.Response? Type1791 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseVariant3? Type1792 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseVariant3Object? Type1793 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseVariant3Status? Type1794 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseErrorVariant1? Type1795 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseVariant3IncompleteDetails2? Type1796 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseVariant3IncompleteDetailsReason? Type1797 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1798 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf>? Type1799 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseUsage? Type1800 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.Conversation22? Type1801 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseAudioDeltaEvent? Type1802 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseAudioDeltaEventType? Type1803 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseAudioDoneEvent? Type1804 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseAudioDoneEventType? Type1805 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEvent? Type1806 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEventType? Type1807 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEvent? Type1808 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEventType? Type1809 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent? Type1810 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEventType? Type1811 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent? Type1812 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEventType? Type1813 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent? Type1814 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEventType? Type1815 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent? Type1816 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEventType? Type1817 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent? Type1818 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEventType? Type1819 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseCompletedEvent? Type1820 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseCompletedEventType? Type1821 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseContentPartAddedEvent? Type1822 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseContentPartAddedEventType? Type1823 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseContentPartDoneEvent? Type1824 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseContentPartDoneEventType? Type1825 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseCreatedEvent? Type1826 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseCreatedEventType? Type1827 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEvent? Type1828 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEventType? Type1829 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent? Type1830 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEventType? Type1831 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseErrorCode? Type1832 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseErrorEvent? Type1833 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseErrorEventType? Type1834 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseFailedEvent? Type1835 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseFailedEventType? Type1836 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent? Type1837 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEventType? Type1838 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent? Type1839 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEventType? Type1840 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEvent? Type1841 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEventType? Type1842 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseFormatJsonObjectType? Type1843 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseFormatJsonSchemaType? Type1844 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseFormatJsonSchemaJsonSchema? Type1845 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseFormatJsonSchemaSchema? Type1846 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseFormatTextType? Type1847 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseFormatTextGrammar? Type1848 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseFormatTextGrammarType? Type1849 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseFormatTextPython? Type1850 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseFormatTextPythonType? Type1851 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEvent? Type1852 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEventType? Type1853 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEvent? Type1854 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEventType? Type1855 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseImageGenCallCompletedEvent? Type1856 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseImageGenCallCompletedEventType? Type1857 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEvent? Type1858 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEventType? Type1859 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseImageGenCallInProgressEvent? Type1860 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseImageGenCallInProgressEventType? Type1861 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEvent? Type1862 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEventType? Type1863 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseInProgressEvent? Type1864 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseInProgressEventType? Type1865 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseIncompleteEvent? Type1866 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseIncompleteEventType? Type1867 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseItemList? Type1868 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseItemListObject? Type1869 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1870 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseLogProb? Type1871 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1872 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseLogProbTopLogprob? Type1873 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEvent? Type1874 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEventType? Type1875 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEvent? Type1876 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEventType? Type1877 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseMCPCallCompletedEvent? Type1878 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseMCPCallCompletedEventType? Type1879 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseMCPCallFailedEvent? Type1880 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseMCPCallFailedEventType? Type1881 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseMCPCallInProgressEvent? Type1882 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseMCPCallInProgressEventType? Type1883 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEvent? Type1884 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEventType? Type1885 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent? Type1886 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseMCPListToolsFailedEventType? Type1887 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEvent? Type1888 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEventType? Type1889 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseModalitiesVariant1Item? Type1890 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseOutputItemAddedEvent? Type1891 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseOutputItemAddedEventType? Type1892 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseOutputItemDoneEvent? Type1893 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseOutputItemDoneEventType? Type1894 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent? Type1895 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEventType? Type1896 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type1897 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseTextParam? Type1898 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ToolChoiceParam? Type1899 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponsePropertiesTruncation2? Type1900 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseQueuedEvent? Type1901 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseQueuedEventType? Type1902 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEvent? Type1903 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventType? Type1904 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventPart? Type1905 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventPartType? Type1906 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEvent? Type1907 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventType? Type1908 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventPart? Type1909 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventPartType? Type1910 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent? Type1911 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEventType? Type1912 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent? Type1913 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEventType? Type1914 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent? Type1915 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseReasoningTextDeltaEventType? Type1916 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent? Type1917 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseReasoningTextDoneEventType? Type1918 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseRefusalDeltaEvent? Type1919 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseRefusalDeltaEventType? Type1920 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseRefusalDoneEvent? Type1921 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseRefusalDoneEventType? Type1922 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseStreamEvent? Type1923 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseTextDeltaEvent? Type1924 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseTextDoneEvent? Type1925 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEvent? Type1926 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEvent? Type1927 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEvent? Type1928 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseStreamEventDiscriminator? Type1929 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseTextDeltaEventType? Type1930 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1931 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseTextDoneEventType? Type1932 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseUsageInputTokensDetails? Type1933 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseUsageOutputTokensDetails? Type1934 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEventType? Type1935 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEventType? Type1936 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEventType? Type1937 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponsesClientEvent? Type1938 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponsesClientEventResponseCreate? Type1939 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponsesClientEventDiscriminator? Type1940 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1? Type1941 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1Type? Type1942 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponsesServerEvent? Type1943 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponsesServerEventDiscriminator? Type1944 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RoleObject? Type1945 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RoleDeletedResource? Type1946 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RoleDeletedResourceObject? Type1947 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RoleListResource? Type1948 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RoleListResourceObject? Type1949 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1950 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunCompletionUsageVariant1? Type1951 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunGraderRequest? Type1952 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunGraderResponse? Type1953 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunGraderResponseMetadata? Type1954 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunGraderResponseMetadataErrors? Type1955 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunObjectObject? Type1956 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunObjectStatus? Type1957 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunObjectRequiredAction? Type1958 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunObjectRequiredActionType? Type1959 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunObjectRequiredActionSubmitToolOutputs? Type1960 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type1961 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunToolCallObject? Type1962 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunObjectLastError? Type1963 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunObjectLastErrorCode? Type1964 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunObjectIncompleteDetails? Type1965 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunObjectIncompleteDetailsReason? Type1966 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepCompletionUsageVariant1? Type1967 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDeltaObject? Type1968 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDeltaObjectObject? Type1969 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDeltaObjectDelta? Type1970 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type1971 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObject? Type1972 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObject? Type1973 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObjectType? Type1974 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObjectMessageCreation? Type1975 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject? Type1976 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectType? Type1977 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreter? Type1978 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList>? Type1979 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type1980 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject? Type1981 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject? Type1982 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectType? Type1983 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectImage? Type1984 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectType? Type1985 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject? Type1986 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObjectType? Type1987 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject? Type1988 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObjectType? Type1989 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObjectFunction? Type1990 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObjectType? Type1991 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList>? Type1992 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type1993 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDetailsMessageCreationObject? Type1994 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDetailsMessageCreationObjectType? Type1995 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDetailsMessageCreationObjectMessageCreation? Type1996 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObject? Type1997 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectType? Type1998 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectCodeInterpreter? Type1999 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList>? Type2000 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type2001 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObject? Type2002 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObject? Type2003 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObjectType? Type2004 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObjectImage? Type2005 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObjectType? Type2006 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObject? Type2007 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObjectType? Type2008 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObjectFileSearch? Type2009 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchRankingOptionsObject? Type2010 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2011 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObject? Type2012 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2013 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObjectContentItem? Type2014 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObjectContentItemType? Type2015 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObject? Type2016 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObjectType? Type2017 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObjectFunction? Type2018 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsObject? Type2019 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsObjectType? Type2020 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList>? Type2021 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type2022 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepObjectObject? Type2023 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepObjectType? Type2024 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepObjectStatus? Type2025 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type2026 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepObjectLastError2? Type2027 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepObjectLastErrorCode? Type2028 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant1? Type2029 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant1Event? Type2030 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant2? Type2031 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant2Event? Type2032 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant3? Type2033 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant3Event? Type2034 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant4? Type2035 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant4Event? Type2036 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant5? Type2037 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant5Event? Type2038 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant6? Type2039 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant6Event? Type2040 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant7? Type2041 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant7Event? Type2042 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStreamEventVariant1? Type2043 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStreamEventVariant1Event? Type2044 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStreamEventVariant2? Type2045 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStreamEventVariant2Event? Type2046 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStreamEventVariant3? Type2047 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStreamEventVariant3Event? Type2048 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStreamEventVariant4? Type2049 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStreamEventVariant4Event? Type2050 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStreamEventVariant5? Type2051 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStreamEventVariant5Event? Type2052 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStreamEventVariant6? Type2053 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStreamEventVariant6Event? Type2054 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStreamEventVariant7? Type2055 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStreamEventVariant7Event? Type2056 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStreamEventVariant8? Type2057 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStreamEventVariant8Event? Type2058 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStreamEventVariant9? Type2059 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStreamEventVariant9Event? Type2060 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStreamEventVariant10? Type2061 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunStreamEventVariant10Event? Type2062 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunToolCallObjectType? Type2063 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RunToolCallObjectFunction? Type2064 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.SpeechAudioDeltaEventType? Type2065 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.SpeechAudioDoneEventType? Type2066 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.SpeechAudioDoneEventUsage? Type2067 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.StaticChunkingStrategy? Type2068 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.StaticChunkingStrategyRequestParamType? Type2069 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.StaticChunkingStrategyResponseParam? Type2070 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.StaticChunkingStrategyResponseParamType? Type2071 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.SubmitToolOutputsRunRequest? Type2072 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2073 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.SubmitToolOutputsRunRequestToolOutput? Type2074 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TextResponseFormatJsonSchema? Type2075 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TextResponseFormatJsonSchemaType? Type2076 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ThreadObject? Type2077 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ThreadObjectObject? Type2078 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ThreadObjectToolResources2? Type2079 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ThreadObjectToolResourcesCodeInterpreter? Type2080 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ThreadObjectToolResourcesFileSearch? Type2081 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ThreadStreamEventVariant1? Type2082 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ThreadStreamEventVariant1Event? Type2083 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ToggleCertificatesRequest? Type2084 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionTool? Type2085 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FileSearchTool? Type2086 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ComputerTool? Type2087 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ComputerUsePreviewTool? Type2088 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebSearchTool? Type2089 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.LocalShellToolParam? Type2090 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionShellToolParam? Type2091 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CustomToolParam? Type2092 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.NamespaceToolParam? Type2093 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ToolSearchToolParam? Type2094 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebSearchPreviewTool? Type2095 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ApplyPatchToolParam? Type2096 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ToolDiscriminator? Type2097 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ToolChoiceAllowed? Type2098 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ToolChoiceAllowedType? Type2099 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ToolChoiceAllowedMode? Type2100 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ToolChoiceCustom? Type2101 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ToolChoiceCustomType? Type2102 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ToolChoiceFunctionType? Type2103 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ToolChoiceMCPType? Type2104 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ToolChoiceTypes? Type2105 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.SpecificApplyPatchParam? Type2106 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.SpecificFunctionShellParam? Type2107 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ToolChoiceTypesType? Type2108 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TranscriptTextDeltaEventType? Type2109 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2110 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TranscriptTextDeltaEventLogprob? Type2111 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TranscriptTextDoneEventType? Type2112 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2113 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TranscriptTextDoneEventLogprob? Type2114 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TranscriptTextSegmentEventType? Type2115 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TranscriptTextUsageDurationType? Type2116 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TranscriptTextUsageTokensType? Type2117 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TranscriptTextUsageTokensInputTokenDetails? Type2118 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TranscriptionChunkingStrategy? Type2119 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum? Type2120 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TranscriptionDiarizedSegmentType? Type2121 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TruncationObjectType? Type2122 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UpdateGroupBody? Type2123 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UpdateVectorStoreFileAttributesRequest? Type2124 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UpdateVectorStoreRequest? Type2125 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AllOf? Type2126 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UpdateVoiceConsentRequest? Type2127 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.Upload? Type2128 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UploadStatus? Type2129 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UploadObject? Type2130 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AllOf? Type2131 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UploadCertificateRequest? Type2132 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UploadPart? Type2133 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UploadPartObject? Type2134 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UsageAudioSpeechesResult? Type2135 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UsageAudioSpeechesResultObject? Type2136 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UsageAudioTranscriptionsResult? Type2137 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UsageAudioTranscriptionsResultObject? Type2138 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult? Type2139 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResultObject? Type2140 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UsageCompletionsResult? Type2141 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UsageCompletionsResultObject? Type2142 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UsageEmbeddingsResult? Type2143 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UsageEmbeddingsResultObject? Type2144 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UsageImagesResult? Type2145 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UsageImagesResultObject? Type2146 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UsageModerationsResult? Type2147 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UsageModerationsResultObject? Type2148 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UsageResponse? Type2149 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UsageResponseObject? Type2150 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2151 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UsageTimeBucket? Type2152 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UsageTimeBucketObject? Type2153 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList>? Type2154 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type2155 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UsageVectorStoresResult? Type2156 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UsageVectorStoresResultObject? Type2157 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.User? Type2158 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UserObject? Type2159 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UserRole? Type2160 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UserDeleteResponse? Type2161 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UserDeleteResponseObject? Type2162 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UserListResource? Type2163 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UserListResourceObject? Type2164 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2165 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UserListResponse? Type2166 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UserListResponseObject? Type2167 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UserRoleAssignment? Type2168 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UserRoleAssignmentObject? Type2169 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UserRoleUpdateRequest? Type2170 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UserRoleUpdateRequestRole? Type2171 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VadConfigType? Type2172 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ValidateGraderRequest? Type2173 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ValidateGraderResponse? Type2174 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VectorStoreExpirationAfterAnchor? Type2175 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type2176 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VectorStoreFileBatchObject? Type2177 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VectorStoreFileBatchObjectObject? Type2178 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VectorStoreFileBatchObjectStatus? Type2179 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VectorStoreFileBatchObjectFileCounts? Type2180 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VectorStoreFileContentResponse? Type2181 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VectorStoreFileContentResponseObject? Type2182 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2183 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VectorStoreFileContentResponseDataItem? Type2184 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VectorStoreFileObjectObject? Type2185 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VectorStoreFileObjectStatus? Type2186 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VectorStoreFileObjectLastError2? Type2187 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VectorStoreFileObjectLastErrorCode? Type2188 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type2189 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VectorStoreObjectObject? Type2190 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VectorStoreObjectFileCounts? Type2191 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VectorStoreObjectStatus? Type2192 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VectorStoreSearchRequest? Type2193 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf>? Type2194 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type2195 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VectorStoreSearchRequestRankingOptions? Type2196 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VectorStoreSearchRequestRankingOptionsRanker? Type2197 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VectorStoreSearchResultContentObject? Type2198 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VectorStoreSearchResultContentObjectType? Type2199 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VectorStoreSearchResultItem? Type2200 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2201 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VectorStoreSearchResultsPage? Type2202 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VectorStoreSearchResultsPageObject? Type2203 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2204 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VoiceConsentDeletedResource? Type2205 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VoiceConsentDeletedResourceObject? Type2206 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VoiceConsentListResource? Type2207 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VoiceConsentListResourceObject? Type2208 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2209 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VoiceConsentResource? Type2210 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VoiceConsentResourceObject? Type2211 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2? Type2212 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VoiceIdsSharedEnum? Type2213 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VoiceResource? Type2214 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VoiceResourceObject? Type2215 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebSearchActionFind? Type2216 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebSearchActionFindType? Type2217 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebSearchActionOpenPage? Type2218 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebSearchActionOpenPageType? Type2219 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebSearchActionSearch? Type2220 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebSearchActionSearchType? Type2221 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2222 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebSearchActionSearchSource? Type2223 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebSearchActionSearchSourceType? Type2224 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebSearchApproximateLocationWebSearchApproximateLocation1? Type2225 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebSearchApproximateLocationWebSearchApproximateLocation1Type? Type2226 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebSearchToolType? Type2227 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebSearchToolFilters2? Type2228 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebSearchToolSearchContextSize? Type2229 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebSearchToolCallType? Type2230 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebSearchToolCallStatus? Type2231 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebSearchToolCallAction? Type2232 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminator? Type2233 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookBatchCancelled? Type2234 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookBatchCancelledData? Type2235 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookBatchCancelledObject? Type2236 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookBatchCancelledType? Type2237 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookBatchCompleted? Type2238 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookBatchCompletedData? Type2239 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookBatchCompletedObject? Type2240 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookBatchCompletedType? Type2241 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookBatchExpired? Type2242 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookBatchExpiredData? Type2243 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookBatchExpiredObject? Type2244 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookBatchExpiredType? Type2245 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookBatchFailed? Type2246 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookBatchFailedData? Type2247 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookBatchFailedObject? Type2248 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookBatchFailedType? Type2249 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookEvalRunCanceled? Type2250 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookEvalRunCanceledData? Type2251 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookEvalRunCanceledObject? Type2252 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookEvalRunCanceledType? Type2253 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookEvalRunFailed? Type2254 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookEvalRunFailedData? Type2255 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookEvalRunFailedObject? Type2256 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookEvalRunFailedType? Type2257 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookEvalRunSucceeded? Type2258 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookEvalRunSucceededData? Type2259 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookEvalRunSucceededObject? Type2260 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookEvalRunSucceededType? Type2261 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookFineTuningJobCancelled? Type2262 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledData? Type2263 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledObject? Type2264 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledType? Type2265 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookFineTuningJobFailed? Type2266 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookFineTuningJobFailedData? Type2267 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookFineTuningJobFailedObject? Type2268 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookFineTuningJobFailedType? Type2269 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookFineTuningJobSucceeded? Type2270 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededData? Type2271 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededObject? Type2272 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededType? Type2273 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookRealtimeCallIncoming? Type2274 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingData? Type2275 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2276 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingDataSipHeader? Type2277 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingObject? Type2278 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingType? Type2279 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookResponseCancelled? Type2280 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookResponseCancelledData? Type2281 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookResponseCancelledObject? Type2282 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookResponseCancelledType? Type2283 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookResponseCompleted? Type2284 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookResponseCompletedData? Type2285 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookResponseCompletedObject? Type2286 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookResponseCompletedType? Type2287 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookResponseFailed? Type2288 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookResponseFailedData? Type2289 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookResponseFailedObject? Type2290 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookResponseFailedType? Type2291 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookResponseIncomplete? Type2292 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookResponseIncompleteData? Type2293 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookResponseIncompleteObject? Type2294 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebhookResponseIncompleteType? Type2295 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.SkillReferenceParamType? Type2296 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InlineSkillSourceParam? Type2297 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InlineSkillSourceParamType? Type2298 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InlineSkillSourceParamMediaType? Type2299 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InlineSkillParamType? Type2300 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParamType? Type2301 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ContainerNetworkPolicyDomainSecretParam? Type2302 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParamType? Type2303 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2304 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageStatus? Type2305 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageRole? Type2306 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InputTextContentType? Type2307 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FileCitationBody? Type2308 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FileCitationBodyType? Type2309 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UrlCitationBody? Type2310 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UrlCitationBodyType? Type2311 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ContainerFileCitationBody? Type2312 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ContainerFileCitationBodyType? Type2313 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.Annotation? Type2314 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AnnotationDiscriminator? Type2315 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TopLogProb? Type2316 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.LogProb? Type2317 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2318 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OutputTextContentType? Type2319 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2320 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2321 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TextContent? Type2322 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TextContentType? Type2323 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.SummaryTextContentType? Type2324 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ReasoningTextContentType? Type2325 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RefusalContentType? Type2326 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageDetail? Type2327 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InputImageContentType? Type2328 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ComputerScreenshotContent? Type2329 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ComputerScreenshotContentType? Type2330 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InputFileContentType? Type2331 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessagePhase2? Type2332 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageType? Type2333 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2334 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ContentItem3? Type2335 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MessageContentItemDiscriminator? Type2336 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ClickButtonType? Type2337 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ClickParamType? Type2338 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.DoubleClickActionType? Type2339 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CoordParam? Type2340 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.DragParamType? Type2341 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2342 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.KeyPressActionType? Type2343 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.MoveParamType? Type2344 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ScreenshotParamType? Type2345 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ScrollParamType? Type2346 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TypeParamType? Type2347 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WaitParamType? Type2348 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ToolSearchExecutionType? Type2349 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ToolSearchCallType? Type2350 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionToolType? Type2351 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RankerVersionType? Type2352 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.HybridSearchOptions? Type2353 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RankingOptions? Type2354 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.Filters2? Type2355 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FileSearchToolType? Type2356 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ComputerToolType? Type2357 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ComputerEnvironment? Type2358 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ComputerUsePreviewToolType? Type2359 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ContainerMemoryLimit? Type2360 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AutoCodeInterpreterToolParamType? Type2361 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.NetworkPolicy2? Type2362 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminator? Type2363 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.LocalShellToolParamType? Type2364 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ContainerAutoParam? Type2365 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ContainerAutoParamType? Type2366 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.NetworkPolicy3? Type2367 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminator? Type2368 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2369 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.SkillsItem2? Type2370 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminator? Type2371 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.LocalSkillParam? Type2372 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.LocalEnvironmentParam? Type2373 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.LocalEnvironmentParamType? Type2374 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2375 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ContainerReferenceParam? Type2376 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ContainerReferenceParamType? Type2377 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionShellToolParamType? Type2378 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EnvironmentVariant1? Type2379 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1Discriminator? Type2380 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CustomTextFormatParam? Type2381 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CustomTextFormatParamType? Type2382 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.GrammarSyntax1? Type2383 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CustomGrammarFormatParam? Type2384 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CustomGrammarFormatParamType? Type2385 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CustomToolParamType? Type2386 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.Format2? Type2387 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CustomToolParamFormatDiscriminator? Type2388 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EmptyModelParam? Type2389 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionToolParam? Type2390 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionToolParamType? Type2391 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.NamespaceToolParamType? Type2392 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2393 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ToolsItem13? Type2394 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminator? Type2395 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ToolSearchToolParamType? Type2396 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ApproximateLocation? Type2397 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ApproximateLocationType? Type2398 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.SearchContextSize? Type2399 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.SearchContentType? Type2400 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WebSearchPreviewToolType? Type2401 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2402 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ApplyPatchToolParamType? Type2403 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ToolSearchOutputType? Type2404 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CompactionBodyType? Type2405 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CodeInterpreterOutputLogsType? Type2406 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CodeInterpreterOutputImageType? Type2407 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.LocalShellExecActionType? Type2408 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionShellAction? Type2409 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.LocalShellCallStatus? Type2410 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.LocalEnvironmentResource? Type2411 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.LocalEnvironmentResourceType? Type2412 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ContainerReferenceResource? Type2413 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ContainerReferenceResourceType? Type2414 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionShellCallType? Type2415 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EnvironmentVariant12? Type2416 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1Discriminator? Type2417 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.LocalShellCallOutputStatusEnum? Type2418 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcome? Type2419 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeType? Type2420 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome? Type2421 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeType? Type2422 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionShellCallOutputContent? Type2423 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.Outcome? Type2424 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminator? Type2425 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionShellCallOutputType? Type2426 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2427 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ApplyPatchCallStatus? Type2428 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ApplyPatchCreateFileOperation? Type2429 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ApplyPatchCreateFileOperationType? Type2430 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperation? Type2431 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationType? Type2432 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation? Type2433 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationType? Type2434 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ApplyPatchToolCallType? Type2435 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.Operation? Type2436 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminator? Type2437 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ApplyPatchCallOutputStatus? Type2438 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ApplyPatchToolCallOutputType? Type2439 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.DetailEnum? Type2440 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionCallItemStatus? Type2441 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ComputerCallOutputItemParamType? Type2442 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InputTextContentParam? Type2443 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InputTextContentParamType? Type2444 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InputImageContentParamAutoParam? Type2445 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InputImageContentParamAutoParamType? Type2446 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InputFileContentParam? Type2447 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InputFileContentParamType? Type2448 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionCallOutputItemParamType? Type2449 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf>? Type2450 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2451 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OutputVariant2Item? Type2452 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminator? Type2453 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ToolSearchCallItemParamType? Type2454 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ToolSearchOutputItemParamType? Type2455 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CompactionSummaryItemParamType? Type2456 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionShellActionParam? Type2457 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionShellCallItemStatus? Type2458 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionShellCallItemParamType? Type2459 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.EnvironmentVariant13? Type2460 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1Discriminator? Type2461 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParam? Type2462 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParamType? Type2463 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParam? Type2464 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParamType? Type2465 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParam? Type2466 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminator? Type2467 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionShellCallOutputContentParam? Type2468 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FunctionShellCallOutputItemParamType? Type2469 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2470 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ApplyPatchCallStatusParam? Type2471 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParam? Type2472 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParamType? Type2473 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParam? Type2474 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParamType? Type2475 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam? Type2476 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParamType? Type2477 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ApplyPatchOperationParam? Type2478 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminator? Type2479 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ApplyPatchToolCallItemParamType? Type2480 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ApplyPatchCallOutputStatusParam? Type2481 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParamType? Type2482 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ItemReferenceParamType2? Type2483 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ConversationResource? Type2484 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ConversationResourceObject? Type2485 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageGenOutputTokensDetails? Type2486 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageGenInputUsageDetails? Type2487 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.SpecificApplyPatchParamType? Type2488 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.SpecificFunctionShellParamType? Type2489 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateConversationBody? Type2490 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UpdateConversationBody? Type2491 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.DeletedConversationResourceObject? Type2492 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OrderEnum? Type2493 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VideoModel? Type2494 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VideoModelEnum? Type2495 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VideoStatus? Type2496 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VideoSize? Type2497 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.Error2? Type2498 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VideoResource? Type2499 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VideoResourceObject? Type2500 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VideoListResource? Type2501 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VideoListResourceObject? Type2502 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2503 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ImageRefParam2? Type2504 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VideoSeconds? Type2505 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateVideoMultipartBody? Type2506 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type2507 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateVideoJsonBody? Type2508 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateVideoCharacterBody? Type2509 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VideoCharacterResource? Type2510 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VideoReferenceInputParam? Type2511 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateVideoEditMultipartBody? Type2512 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type2513 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateVideoEditJsonBody? Type2514 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateVideoExtendMultipartBody? Type2515 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type2516 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateVideoExtendJsonBody? Type2517 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.DeletedVideoResource? Type2518 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.DeletedVideoResourceObject? Type2519 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.VideoContentVariant? Type2520 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateVideoRemixBody? Type2521 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TruncationEnum? Type2522 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TokenCountsBody? Type2523 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TokenCountsResource? Type2524 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TokenCountsResourceObject? Type2525 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CompactResponseMethodPublicBody? Type2526 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ItemField? Type2527 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ItemFieldDiscriminator? Type2528 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CompactResource? Type2529 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CompactResourceObject? Type2530 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2531 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.SkillResource? Type2532 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.SkillResourceObject? Type2533 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.SkillListResource? Type2534 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.SkillListResourceObject? Type2535 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2536 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateSkillBody? Type2537 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf, byte[]>? Type2538 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.SetDefaultSkillVersionBody? Type2539 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.DeletedSkillResource? Type2540 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.DeletedSkillResourceObject? Type2541 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.SkillVersionResource? Type2542 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.SkillVersionResourceObject? Type2543 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.SkillVersionListResource? Type2544 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.SkillVersionListResourceObject? Type2545 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2546 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateSkillVersionBody? Type2547 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.DeletedSkillVersionResource? Type2548 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.DeletedSkillVersionResourceObject? Type2549 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatkitWorkflowTracing? Type2550 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatkitWorkflow? Type2551 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type2552 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatSessionRateLimits? Type2553 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatSessionStatus? Type2554 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatSessionAutomaticThreadTitling? Type2555 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatSessionFileUpload? Type2556 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatSessionHistory? Type2557 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatSessionChatkitConfiguration? Type2558 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatSessionResource? Type2559 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatSessionResourceObject? Type2560 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WorkflowTracingParam? Type2561 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WorkflowParam? Type2562 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ExpiresAfterParam? Type2563 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ExpiresAfterParamAnchor? Type2564 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.RateLimitsParam? Type2565 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AutomaticThreadTitlingParam? Type2566 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FileUploadParam? Type2567 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.HistoryParam? Type2568 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ChatkitConfigurationParam? Type2569 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateChatSessionBody? Type2570 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UserMessageInputText? Type2571 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UserMessageInputTextType? Type2572 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UserMessageQuotedText? Type2573 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UserMessageQuotedTextType? Type2574 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AttachmentType? Type2575 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.Attachment? Type2576 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ToolChoice8? Type2577 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.InferenceOptions? Type2578 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UserMessageItem? Type2579 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UserMessageItemObject? Type2580 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UserMessageItemType? Type2581 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2582 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ContentItem4? Type2583 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminator? Type2584 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2585 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FileAnnotationSource? Type2586 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FileAnnotationSourceType? Type2587 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FileAnnotation? Type2588 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.FileAnnotationType? Type2589 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UrlAnnotationSource? Type2590 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UrlAnnotationSourceType? Type2591 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UrlAnnotation? Type2592 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UrlAnnotationType? Type2593 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseOutputText? Type2594 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseOutputTextType? Type2595 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2596 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AnnotationsItem3? Type2597 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminator? Type2598 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AssistantMessageItem? Type2599 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AssistantMessageItemObject? Type2600 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AssistantMessageItemType? Type2601 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2602 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WidgetMessageItem? Type2603 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WidgetMessageItemObject? Type2604 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.WidgetMessageItemType? Type2605 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ClientToolCallStatus? Type2606 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ClientToolCallItem? Type2607 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ClientToolCallItemObject? Type2608 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ClientToolCallItemType? Type2609 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TaskType? Type2610 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TaskItem? Type2611 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TaskItemObject? Type2612 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TaskItemType? Type2613 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TaskGroupTask? Type2614 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TaskGroupItem? Type2615 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TaskGroupItemObject? Type2616 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.TaskGroupItemType? Type2617 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2618 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ThreadItem? Type2619 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ThreadItemDiscriminator? Type2620 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ThreadItemListResource? Type2621 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ThreadItemListResourceObject? Type2622 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2623 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ActiveStatus? Type2624 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ActiveStatusType? Type2625 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.LockedStatus? Type2626 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.LockedStatusType? Type2627 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ClosedStatus? Type2628 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ClosedStatusType? Type2629 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ThreadResource? Type2630 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ThreadResourceObject? Type2631 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.Status? Type2632 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ThreadResourceStatusDiscriminator? Type2633 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.DeletedThreadResource? Type2634 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.DeletedThreadResourceObject? Type2635 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ThreadListResource? Type2636 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ThreadListResourceObject? Type2637 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2638 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.DragPoint? Type2639 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateBatchRequest? Type2640 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateBatchRequestEndpoint? Type2641 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateBatchRequestCompletionWindow? Type2642 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UpdateChatCompletionRequest? Type2643 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateConversationItemsRequest? Type2644 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UpdateEvalRequest? Type2645 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AdminApiKeysCreateRequest? Type2646 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListAssistantsOrder? Type2647 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListChatCompletionsOrder? Type2648 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.GetChatCompletionMessagesOrder? Type2649 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListContainersOrder? Type2650 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListContainerFilesOrder? Type2651 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListConversationItemsOrder? Type2652 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListEvalsOrder? Type2653 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListEvalsOrderBy? Type2654 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.GetEvalRunsOrder? Type2655 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.GetEvalRunsStatus? Type2656 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.GetEvalRunOutputItemsStatus? Type2657 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.GetEvalRunOutputItemsOrder? Type2658 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListFilesOrder? Type2659 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionsOrder? Type2660 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AdminApiKeysListOrder? Type2661 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListAuditLogsEffectiveAt? Type2662 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2663 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListOrganizationCertificatesOrder? Type2664 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2665 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.GetCertificateIncludeItem? Type2666 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UsageCostsBucketWidth? Type2667 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2668 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UsageCostsGroupByItem? Type2669 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListGroupsOrder? Type2670 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListGroupRoleAssignmentsOrder? Type2671 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListGroupUsersOrder? Type2672 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListProjectCertificatesOrder? Type2673 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListProjectGroupsOrder? Type2674 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListRolesOrder? Type2675 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UsageAudioSpeechesBucketWidth? Type2676 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2677 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UsageAudioSpeechesGroupByItem? Type2678 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UsageAudioTranscriptionsBucketWidth? Type2679 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2680 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UsageAudioTranscriptionsGroupByItem? Type2681 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsBucketWidth? Type2682 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2683 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsGroupByItem? Type2684 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UsageCompletionsBucketWidth? Type2685 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2686 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UsageCompletionsGroupByItem? Type2687 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UsageEmbeddingsBucketWidth? Type2688 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2689 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UsageEmbeddingsGroupByItem? Type2690 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UsageImagesBucketWidth? Type2691 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2692 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UsageImagesSource? Type2693 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2694 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UsageImagesSize? Type2695 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2696 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UsageImagesGroupByItem? Type2697 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UsageModerationsBucketWidth? Type2698 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2699 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UsageModerationsGroupByItem? Type2700 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UsageVectorStoresBucketWidth? Type2701 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2702 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.UsageVectorStoresGroupByItem? Type2703 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListUserRoleAssignmentsOrder? Type2704 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListProjectGroupRoleAssignmentsOrder? Type2705 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListProjectRolesOrder? Type2706 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListProjectUserRoleAssignmentsOrder? Type2707 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListInputItemsOrder? Type2708 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListMessagesOrder? Type2709 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListRunsOrder? Type2710 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2711 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.CreateRunIncludeItem? Type2712 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListRunStepsOrder? Type2713 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2714 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListRunStepsIncludeItem? Type2715 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type2716 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.GetRunStepIncludeItem? Type2717 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListVectorStoresOrder? Type2718 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListFilesInVectorStoreBatchOrder? Type2719 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListFilesInVectorStoreBatchFilter? Type2720 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListVectorStoreFilesOrder? Type2721 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.ListVectorStoreFilesFilter? Type2722 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type2723 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf? Type2724 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.DeleteEvalResponse? Type2725 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.DeleteEvalRunResponse? Type2726 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AdminApiKeysDeleteResponse? Type2727 { get; set; } - - /// - /// - /// - public global::System.Collections.Generic.List? ListType0 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType1 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List>? ListType2 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType3 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType4 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType5 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType6 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType7 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType8 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType9 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List>? ListType10 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List>? ListType11 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType12 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType13 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf>? ListType14 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType15 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf>? ListType16 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType17 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf>? ListType18 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType19 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf>? ListType20 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType21 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf>? ListType22 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType23 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType24 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType25 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType26 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType27 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType28 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType29 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf>>? ListType30 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List>? ListType31 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType32 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType33 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType34 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType35 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType36 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType37 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType38 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType39 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType40 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List>? ListType41 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType42 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType43 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType44 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType45 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List, global::System.Collections.Generic.List>>? ListType46 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType47 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List>? ListType48 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType49 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType50 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List>? ListType51 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType52 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType53 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List>? ListType54 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType55 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType56 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List>? ListType57 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List>? ListType58 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType59 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType60 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.AnyOf>? ListType61 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType62 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf>>? ListType63 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List>? ListType64 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType65 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List>? ListType66 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>? ListType67 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List>? ListType68 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType69 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType70 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType71 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType72 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType73 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType74 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType75 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType76 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType77 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType78 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType79 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType80 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType81 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType82 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType83 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType84 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType85 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType86 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType87 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType88 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType89 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType90 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType91 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType92 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType93 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf>? ListType94 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType95 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf>? ListType96 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType97 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType98 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType99 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List>? ListType100 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType101 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType102 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType103 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType104 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType105 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType106 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType107 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType108 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType109 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType110 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType111 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType112 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType113 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType114 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType115 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType116 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType117 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType118 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType119 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType120 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType121 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType122 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType123 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType124 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType125 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType126 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType127 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType128 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType129 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType130 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType131 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType132 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType133 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType134 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType135 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf, global::tryAGI.OpenAI.MCPToolFilter>? ListType136 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List>? ListType137 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List>? ListType138 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List>? ListType139 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List>? ListType140 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType141 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType142 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType143 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType144 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType145 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType146 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType147 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType148 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType149 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType150 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType151 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType152 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType153 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType154 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType155 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType156 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType157 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType158 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType159 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType160 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType161 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List>? ListType162 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType163 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType164 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType165 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType166 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType167 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType168 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType169 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType170 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType171 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType172 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType173 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType174 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType175 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType176 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType177 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType178 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType179 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType180 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType181 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf>? ListType182 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType183 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType184 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType185 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType186 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType187 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List>? ListType188 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List>? ListType189 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List>? ListType190 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType191 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType192 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List>? ListType193 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType194 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType195 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType196 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType197 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List>? ListType198 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType199 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType200 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf>? ListType201 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType202 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType203 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType204 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType205 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType206 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType207 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType208 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType209 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType210 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType211 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType212 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType213 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType214 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType215 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType216 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType217 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf>? ListType218 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType219 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType220 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType221 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType222 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType223 { get; set; } - /// - /// - /// - public global::tryAGI.OpenAI.OneOf, byte[]>? ListType224 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType225 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType226 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType227 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType228 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType229 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType230 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType231 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType232 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType233 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType234 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType235 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType236 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType237 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType238 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType239 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType240 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType241 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType242 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType243 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType244 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType245 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType246 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType247 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType248 { get; set; } - } -} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.DeleteAFineTunedModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.DeleteAFineTunedModel.g.cs index 7334c933..bf086b1b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.DeleteAFineTunedModel.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.DeleteAFineTunedModel.g.cs @@ -109,7 +109,7 @@ partial void ProcessDeleteAFineTunedModelResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.DeleteModelResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.DeleteModelResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -140,7 +140,7 @@ partial void ProcessDeleteAFineTunedModelResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.DeleteModelResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.DeleteModelResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.ListModels.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.ListModels.g.cs index 896e6e4a..bcd1944d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.ListModels.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.ListModels.g.cs @@ -101,7 +101,7 @@ partial void ProcessListModelsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListModelsResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ListModelsResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -132,7 +132,7 @@ partial void ProcessListModelsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListModelsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListModelsResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.RetrieveModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.RetrieveModel.g.cs index 9cad0e8b..e0ce4747 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.RetrieveModel.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.RetrieveModel.g.cs @@ -109,7 +109,7 @@ partial void ProcessRetrieveModelResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Model17.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.Model17.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -140,7 +140,7 @@ partial void ProcessRetrieveModelResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Model17.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Model17.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.g.cs index 90714c48..20807049 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.g.cs @@ -34,7 +34,7 @@ public sealed partial class ModelsClient : global::tryAGI.OpenAI.IModelsClient, /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModerationsClient.CreateModeration.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModerationsClient.CreateModeration.g.cs index d3825522..753e053c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModerationsClient.CreateModeration.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModerationsClient.CreateModeration.g.cs @@ -68,7 +68,7 @@ partial void ProcessCreateModerationResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessCreateModerationResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.CreateModerationResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.CreateModerationResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessCreateModerationResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.CreateModerationResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.CreateModerationResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModerationsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModerationsClient.g.cs index f2f83915..0c2b5294 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModerationsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModerationsClient.g.cs @@ -34,7 +34,7 @@ public sealed partial class ModerationsClient : global::tryAGI.OpenAI.IModeratio /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CancelChatSession.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CancelChatSession.g.cs index 6ce65088..fac94293 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CancelChatSession.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CancelChatSession.g.cs @@ -110,7 +110,7 @@ partial void ProcessCancelChatSessionResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ChatSessionResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ChatSessionResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -141,7 +141,7 @@ partial void ProcessCancelChatSessionResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ChatSessionResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ChatSessionResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CompactAResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CompactAResponse.g.cs index f79c7c66..7bca778d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CompactAResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CompactAResponse.g.cs @@ -68,7 +68,7 @@ partial void ProcessCompactAResponseResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessCompactAResponseResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.CompactResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.CompactResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessCompactAResponseResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.CompactResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.CompactResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateAdminApiKey.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateAdminApiKey.g.cs index 768f687c..6a1e9001 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateAdminApiKey.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateAdminApiKey.g.cs @@ -68,7 +68,7 @@ partial void ProcessCreateAdminApiKeyResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessCreateAdminApiKeyResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.AdminApiKey.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.AdminApiKey.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessCreateAdminApiKeyResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.AdminApiKey.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.AdminApiKey.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateChatKitSession.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateChatKitSession.g.cs index 9c2da353..4952ffcf 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateChatKitSession.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateChatKitSession.g.cs @@ -67,7 +67,7 @@ partial void ProcessCreateChatKitSessionResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -116,7 +116,7 @@ partial void ProcessCreateChatKitSessionResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ChatSessionResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ChatSessionResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessCreateChatKitSessionResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ChatSessionResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ChatSessionResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateContainer.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateContainer.g.cs index d3a6c42c..5ce2aa93 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateContainer.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateContainer.g.cs @@ -68,7 +68,7 @@ partial void ProcessCreateContainerResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessCreateContainerResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ContainerResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ContainerResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessCreateContainerResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ContainerResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ContainerResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateContainerFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateContainerFile.g.cs index 339ba5f9..7bd2820d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateContainerFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateContainerFile.g.cs @@ -74,7 +74,7 @@ partial void ProcessCreateContainerFileResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -124,7 +124,7 @@ partial void ProcessCreateContainerFileResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ContainerFileResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ContainerFileResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -155,7 +155,7 @@ partial void ProcessCreateContainerFileResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ContainerFileResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ContainerFileResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteAdminApiKey.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteAdminApiKey.g.cs index 1cfd298c..4315d93e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteAdminApiKey.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteAdminApiKey.g.cs @@ -110,7 +110,7 @@ partial void ProcessDeleteAdminApiKeyResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.AdminApiKeysDeleteResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.AdminApiKeysDeleteResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -141,7 +141,7 @@ partial void ProcessDeleteAdminApiKeyResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.AdminApiKeysDeleteResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.AdminApiKeysDeleteResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteChatKitThread.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteChatKitThread.g.cs index e8ab3575..9931048d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteChatKitThread.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteChatKitThread.g.cs @@ -109,7 +109,7 @@ partial void ProcessDeleteChatKitThreadResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.DeletedThreadResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.DeletedThreadResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -140,7 +140,7 @@ partial void ProcessDeleteChatKitThreadResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.DeletedThreadResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.DeletedThreadResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.GetInputTokenCounts.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.GetInputTokenCounts.g.cs index 27dd66c8..7016c5ff 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.GetInputTokenCounts.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.GetInputTokenCounts.g.cs @@ -68,7 +68,7 @@ partial void ProcessGetInputTokenCountsResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessGetInputTokenCountsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.TokenCountsResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.TokenCountsResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessGetInputTokenCountsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.TokenCountsResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.TokenCountsResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListAllOrganizationAndProjectApiKeys.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListAllOrganizationAndProjectApiKeys.g.cs index a3a431d7..7b5491a1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListAllOrganizationAndProjectApiKeys.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListAllOrganizationAndProjectApiKeys.g.cs @@ -133,7 +133,7 @@ partial void ProcessListAllOrganizationAndProjectApiKeysResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ApiKeyList.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ApiKeyList.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -164,7 +164,7 @@ partial void ProcessListAllOrganizationAndProjectApiKeysResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ApiKeyList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ApiKeyList.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListChatKitThreadItems.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListChatKitThreadItems.g.cs index a391cb17..b4172c7c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListChatKitThreadItems.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListChatKitThreadItems.g.cs @@ -143,7 +143,7 @@ partial void ProcessListChatKitThreadItemsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ThreadItemListResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ThreadItemListResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -174,7 +174,7 @@ partial void ProcessListChatKitThreadItemsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ThreadItemListResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ThreadItemListResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListChatKitThreads.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListChatKitThreads.g.cs index 4dc0c894..268fb895 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListChatKitThreads.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListChatKitThreads.g.cs @@ -144,7 +144,7 @@ partial void ProcessListChatKitThreadsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ThreadListResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ThreadListResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -175,7 +175,7 @@ partial void ProcessListChatKitThreadsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ThreadListResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ThreadListResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListContainerFiles.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListContainerFiles.g.cs index 4c2f8718..d99779ab 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListContainerFiles.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListContainerFiles.g.cs @@ -135,7 +135,7 @@ partial void ProcessListContainerFilesResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ContainerFileListResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ContainerFileListResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -166,7 +166,7 @@ partial void ProcessListContainerFilesResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ContainerFileListResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ContainerFileListResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListContainers.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListContainers.g.cs index 4a25a9cd..4f02fad5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListContainers.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListContainers.g.cs @@ -136,7 +136,7 @@ partial void ProcessListContainersResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ContainerListResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ContainerListResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -167,7 +167,7 @@ partial void ProcessListContainersResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ContainerListResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ContainerListResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveAdminApiKey.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveAdminApiKey.g.cs index b2e6a2b0..273a6ded 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveAdminApiKey.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveAdminApiKey.g.cs @@ -110,7 +110,7 @@ partial void ProcessRetrieveAdminApiKeyResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.AdminApiKey.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.AdminApiKey.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -141,7 +141,7 @@ partial void ProcessRetrieveAdminApiKeyResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.AdminApiKey.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.AdminApiKey.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveChatKitThread.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveChatKitThread.g.cs index de578fee..5b3ffc6a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveChatKitThread.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveChatKitThread.g.cs @@ -109,7 +109,7 @@ partial void ProcessRetrieveChatKitThreadResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ThreadResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ThreadResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -140,7 +140,7 @@ partial void ProcessRetrieveChatKitThreadResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ThreadResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ThreadResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainer.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainer.g.cs index 989ddaa0..cd58678a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainer.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainer.g.cs @@ -108,7 +108,7 @@ partial void ProcessRetrieveContainerResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ContainerResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ContainerResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessRetrieveContainerResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ContainerResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ContainerResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainerFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainerFile.g.cs index 39081ce9..7f0af581 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainerFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainerFile.g.cs @@ -114,7 +114,7 @@ partial void ProcessRetrieveContainerFileResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ContainerFileResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ContainerFileResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -145,7 +145,7 @@ partial void ProcessRetrieveContainerFileResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ContainerFileResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ContainerFileResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.g.cs index 8a6a2801..386460aa 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.g.cs @@ -34,7 +34,2364 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; + #pragma warning disable CS0618 // Type or member is obsolete + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions + { + PropertyNameCaseInsensitive = true, + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, + Converters = + { + new global::tryAGI.OpenAI.JsonConverters.AssistantObjectObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AssistantObjectObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AssistantSupportedModelsJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AssistantSupportedModelsNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AssistantToolsCodeTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AssistantToolsCodeTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AssistantToolsFileSearchTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AssistantToolsFileSearchTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AssistantToolsFileSearchTypeOnlyTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AssistantToolsFileSearchTypeOnlyTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AssistantToolsFunctionTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AssistantToolsFunctionTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AssistantsApiResponseFormatOptionEnumJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AssistantsApiResponseFormatOptionEnumNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AssistantsApiToolChoiceOptionEnumJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AssistantsApiToolChoiceOptionEnumNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AssistantsNamedToolChoiceTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AssistantsNamedToolChoiceTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AudioResponseFormatJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AudioResponseFormatNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AudioTranscriptionModelJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AudioTranscriptionModelNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AuditLogActorTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AuditLogActorTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AuditLogActorApiKeyTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AuditLogActorApiKeyTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AuditLogEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AuditLogEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AutoChunkingStrategyRequestParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AutoChunkingStrategyRequestParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.BatchObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.BatchObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.BatchStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.BatchStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.BatchFileExpirationAfterAnchorJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.BatchFileExpirationAfterAnchorNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CertificateObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CertificateObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionAllowedToolsModeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionAllowedToolsModeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionAllowedToolsChoiceTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionAllowedToolsChoiceTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionDeletedObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionDeletedObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionListObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionListObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageCustomToolCallTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageCustomToolCallTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageListObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageListObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallChunkTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallChunkTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionModalitiesVariant1ItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionModalitiesVariant1ItemNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionNamedToolChoiceTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionNamedToolChoiceTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionNamedToolChoiceCustomTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionNamedToolChoiceCustomTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageRoleJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageRoleNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestDeveloperMessageRoleJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestDeveloperMessageRoleNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestFunctionMessageRoleJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestFunctionMessageRoleNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartAudioTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartAudioTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartAudioInputAudioFormatJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartAudioInputAudioFormatNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartFileTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartFileTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartImageTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartImageTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartImageImageUrlDetailJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartImageImageUrlDetailNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartRefusalTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartRefusalTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartTextTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartTextTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestSystemMessageRoleJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestSystemMessageRoleNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestToolMessageRoleJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestToolMessageRoleNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestUserMessageRoleJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestUserMessageRoleNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionResponseMessageAnnotationTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionResponseMessageAnnotationTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionResponseMessageRoleJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionResponseMessageRoleNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRoleJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRoleNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionStreamResponseDeltaRoleJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionStreamResponseDeltaRoleNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionToolTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionToolTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionToolChoiceOptionEnumJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionToolChoiceOptionEnumNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CodeInterpreterFileOutputTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CodeInterpreterFileOutputTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CodeInterpreterTextOutputTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CodeInterpreterTextOutputTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ComparisonFilterTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ComparisonFilterTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CompoundFilterTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CompoundFilterTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ComputerScreenshotImageTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ComputerScreenshotImageTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ComputerToolCallTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ComputerToolCallTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ComputerToolCallStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ComputerToolCallStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ComputerToolCallOutputTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ComputerToolCallOutputTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ComputerToolCallOutputStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ComputerToolCallOutputStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ContainerFileListResourceObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ContainerFileListResourceObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ContainerListResourceObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ContainerListResourceObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ContainerResourceExpiresAfterAnchorJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ContainerResourceExpiresAfterAnchorNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ContainerResourceMemoryLimitJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ContainerResourceMemoryLimitNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ContainerResourceNetworkPolicyTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ContainerResourceNetworkPolicyTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ConversationItemListObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ConversationItemListObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CostsResultObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CostsResultObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocationTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocationTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2AudioFormatJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2AudioFormatNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2FunctionCallJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2FunctionCallNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionResponseChoiceFinishReasonJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionResponseChoiceFinishReasonNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionResponseObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionResponseObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionStreamResponseChoiceFinishReasonJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionStreamResponseChoiceFinishReasonNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionStreamResponseObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionStreamResponseObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateCompletionRequestModelJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateCompletionRequestModelNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateCompletionResponseChoiceFinishReasonJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateCompletionResponseChoiceFinishReasonNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateCompletionResponseObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateCompletionResponseObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyExpiresAfterAnchorJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyExpiresAfterAnchorNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyMemoryLimitJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyMemoryLimitNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateEmbeddingRequestModelJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateEmbeddingRequestModelNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateEmbeddingRequestEncodingFormatJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateEmbeddingRequestEncodingFormatNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateEmbeddingResponseObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateEmbeddingResponseObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateEvalCompletionsRunDataSourceTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateEvalCompletionsRunDataSourceTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateEvalCompletionsRunDataSourceInputMessagesTemplateInputMessagesTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateEvalCompletionsRunDataSourceInputMessagesTemplateInputMessagesTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessagesTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessagesTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateEvalCustomDataSourceConfigTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateEvalCustomDataSourceConfigTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateEvalJsonlRunDataSourceTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateEvalJsonlRunDataSourceTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateEvalLabelModelGraderTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateEvalLabelModelGraderTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateEvalLogsDataSourceConfigTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateEvalLogsDataSourceConfigTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateEvalResponsesRunDataSourceTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateEvalResponsesRunDataSourceTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesTemplateTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesTemplateTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReferenceTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReferenceTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateEvalStoredCompletionsDataSourceConfigTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateEvalStoredCompletionsDataSourceConfigTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateFileRequestPurposeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateFileRequestPurposeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestModelJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestModelNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestHyperparametersBatchSizeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestHyperparametersBatchSizeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestHyperparametersLearningRateMultiplierJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestHyperparametersLearningRateMultiplierNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestHyperparametersNEpochsJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestHyperparametersNEpochsNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestIntegrationTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestIntegrationTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestBackgroundJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestBackgroundNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestModelJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestModelNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestSizeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestSizeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestResponseFormatJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestResponseFormatNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestOutputFormatJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestOutputFormatNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestQualityJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestQualityNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateImageRequestModelJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateImageRequestModelNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateImageRequestQualityJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateImageRequestQualityNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateImageRequestResponseFormatJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateImageRequestResponseFormatNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateImageRequestOutputFormatJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateImageRequestOutputFormatNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateImageRequestSizeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateImageRequestSizeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateImageRequestModerationJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateImageRequestModerationNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateImageRequestBackgroundJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateImageRequestBackgroundNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateImageRequestStyleJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateImageRequestStyleNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateImageVariationRequestModelJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateImageVariationRequestModelNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateImageVariationRequestResponseFormatJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateImageVariationRequestResponseFormatNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateImageVariationRequestSizeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateImageVariationRequestSizeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateMessageRequestRoleJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateMessageRequestRoleNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateModerationRequestInputVariant3ItemVariant1TypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateModerationRequestInputVariant3ItemVariant1TypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateModerationRequestInputVariant3ItemVariant2TypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateModerationRequestInputVariant3ItemVariant2TypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateModerationRequestModelJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateModerationRequestModelNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHateItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHateItemNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItemNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItemNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItemNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItemNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItemNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItemNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItemNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstructionJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstructionNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSexualItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSexualItemNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinorJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinorNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItemNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItemNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestModelJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestModelNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestResponseFormatJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestResponseFormatNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestStreamFormatJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestStreamFormatNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateThreadAndRunRequestModelJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateThreadAndRunRequestModelNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionRequestModelJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionRequestModelNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionRequestTimestampGranularitieJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionRequestTimestampGranularitieNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionRequestChunkingStrategyVariant1JsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionRequestChunkingStrategyVariant1NullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonTaskJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonTaskNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateTranslationRequestModelJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateTranslationRequestModelNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateTranslationRequestResponseFormatJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateTranslationRequestResponseFormatNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateUploadRequestPurposeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateUploadRequestPurposeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CustomToolCallTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CustomToolCallTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CustomToolCallOutputTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CustomToolCallOutputTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsCustomFormatTextFormatTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsCustomFormatTextFormatTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsCustomFormatGrammarFormatTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsCustomFormatGrammarFormatTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsCustomFormatGrammarFormatGrammarSyntaxJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsCustomFormatGrammarFormatGrammarSyntaxNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.DeleteAssistantResponseObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.DeleteAssistantResponseObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.DeleteCertificateResponseObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.DeleteCertificateResponseObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.DeleteFileResponseObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.DeleteFileResponseObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.DeleteFineTuningCheckpointPermissionResponseObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.DeleteFineTuningCheckpointPermissionResponseObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.DeleteMessageResponseObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.DeleteMessageResponseObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.DeleteThreadResponseObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.DeleteThreadResponseObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.DeleteVectorStoreFileResponseObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.DeleteVectorStoreFileResponseObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.DeleteVectorStoreResponseObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.DeleteVectorStoreResponseObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.DoneEventEventJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.DoneEventEventNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.DoneEventDataJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.DoneEventDataNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EasyInputMessageRoleJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EasyInputMessageRoleNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EasyInputMessageTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EasyInputMessageTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamModelJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamModelNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamQuality2JsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamQuality2NullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamInputFidelity2JsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamInputFidelity2NullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamSize2JsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamSize2NullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamOutputFormat2JsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamOutputFormat2NullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamModeration2JsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamModeration2NullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamBackground2JsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamBackground2NullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EmbeddingObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EmbeddingObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ErrorEventEventJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ErrorEventEventNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EvalObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EvalObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EvalCustomDataSourceConfigTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EvalCustomDataSourceConfigTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EvalItemRoleJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EvalItemRoleNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EvalItemTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EvalItemTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EvalItemContentOutputTextTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EvalItemContentOutputTextTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EvalItemInputImageTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EvalItemInputImageTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EvalJsonlFileContentSourceTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EvalJsonlFileContentSourceTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EvalJsonlFileIdSourceTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EvalJsonlFileIdSourceTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EvalListObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EvalListObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EvalLogsDataSourceConfigTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EvalLogsDataSourceConfigTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EvalResponsesSourceTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EvalResponsesSourceTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EvalRunObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EvalRunObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EvalRunListObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EvalRunListObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EvalRunOutputItemObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EvalRunOutputItemObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EvalRunOutputItemListObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EvalRunOutputItemListObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EvalStoredCompletionsDataSourceConfigTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EvalStoredCompletionsDataSourceConfigTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EvalStoredCompletionsSourceTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EvalStoredCompletionsSourceTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FileExpirationAfterAnchorJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FileExpirationAfterAnchorNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FilePathTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FilePathTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FileSearchRankerJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FileSearchRankerNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FileSearchToolCallTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FileSearchToolCallTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FileSearchToolCallStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FileSearchToolCallStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuneDPOHyperparametersBetaJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuneDPOHyperparametersBetaNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuneDPOHyperparametersBatchSizeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuneDPOHyperparametersBatchSizeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuneDPOHyperparametersLearningRateMultiplierJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuneDPOHyperparametersLearningRateMultiplierNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuneDPOHyperparametersNEpochsJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuneDPOHyperparametersNEpochsNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuneMethodTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuneMethodTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersBatchSizeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersBatchSizeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersLearningRateMultiplierJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersLearningRateMultiplierNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersNEpochsJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersNEpochsNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersReasoningEffortJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersReasoningEffortNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersComputeMultiplierJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersComputeMultiplierNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersEvalIntervalJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersEvalIntervalNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersEvalSamplesJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersEvalSamplesNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuneSupervisedHyperparametersBatchSizeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuneSupervisedHyperparametersBatchSizeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuneSupervisedHyperparametersLearningRateMultiplierJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuneSupervisedHyperparametersLearningRateMultiplierNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuneSupervisedHyperparametersNEpochsJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuneSupervisedHyperparametersNEpochsNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuningCheckpointPermissionObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuningCheckpointPermissionObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuningIntegrationTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuningIntegrationTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuningJobHyperparametersBatchSizeVariant1JsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuningJobHyperparametersBatchSizeVariant1NullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuningJobHyperparametersLearningRateMultiplierJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuningJobHyperparametersLearningRateMultiplierNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuningJobHyperparametersNEpochsJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuningJobHyperparametersNEpochsNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuningJobObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuningJobObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuningJobStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuningJobStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuningJobCheckpointObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuningJobCheckpointObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuningJobEventObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuningJobEventObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuningJobEventLevelJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuningJobEventLevelNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuningJobEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuningJobEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionToolCallTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionToolCallTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionToolCallStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionToolCallStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionToolCallOutputTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionToolCallOutputTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionToolCallOutputStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionToolCallOutputStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GraderLabelModelTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GraderLabelModelTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GraderMultiTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GraderMultiTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GraderPythonTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GraderPythonTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GraderScoreModelTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GraderScoreModelTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GraderStringCheckTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GraderStringCheckTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GraderStringCheckOperationJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GraderStringCheckOperationNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GraderTextSimilarityTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GraderTextSimilarityTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GraderTextSimilarityEvaluationMetricJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GraderTextSimilarityEvaluationMetricNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GroupObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GroupObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GroupDeletedResourceObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GroupDeletedResourceObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GroupListResourceObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GroupListResourceObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GroupRoleAssignmentObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GroupRoleAssignmentObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GroupUserAssignmentObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GroupUserAssignmentObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GroupUserDeletedResourceObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GroupUserDeletedResourceObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventSizeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventSizeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventQualityJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventQualityNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventBackgroundJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventBackgroundNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventOutputFormatJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventOutputFormatNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventSizeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventSizeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventQualityJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventQualityNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventBackgroundJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventBackgroundNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventOutputFormatJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventOutputFormatNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventSizeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventSizeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventQualityJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventQualityNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventBackgroundJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventBackgroundNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventOutputFormatJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventOutputFormatNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventSizeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventSizeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventQualityJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventQualityNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventBackgroundJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventBackgroundNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventOutputFormatJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventOutputFormatNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageGenToolTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageGenToolTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageGenToolModelJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageGenToolModelNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageGenToolQualityJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageGenToolQualityNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageGenToolSizeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageGenToolSizeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageGenToolOutputFormatJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageGenToolOutputFormatNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageGenToolModerationJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageGenToolModerationNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageGenToolBackgroundJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageGenToolBackgroundNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageGenToolCallTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageGenToolCallTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageGenToolCallStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageGenToolCallStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImagesResponseBackgroundJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImagesResponseBackgroundNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImagesResponseOutputFormatJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImagesResponseOutputFormatNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImagesResponseSizeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImagesResponseSizeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImagesResponseQualityJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImagesResponseQualityNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InputAudioTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InputAudioTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InputAudioInputAudio1FormatJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InputAudioInputAudio1FormatNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InputMessageTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InputMessageTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InputMessageRoleJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InputMessageRoleNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InputMessageStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InputMessageStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InviteObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InviteObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InviteRoleJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InviteRoleNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InviteStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InviteStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InviteProjectRoleJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InviteProjectRoleNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InviteDeleteResponseObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InviteDeleteResponseObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InviteListResponseObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InviteListResponseObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InviteRequestRoleJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InviteRequestRoleNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InviteRequestProjectRoleJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InviteRequestProjectRoleNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListAuditLogsResponseObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListAuditLogsResponseObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListBatchesResponseObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListBatchesResponseObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListCertificatesResponseObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListCertificatesResponseObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListFineTuningCheckpointPermissionResponseObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListFineTuningCheckpointPermissionResponseObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListFineTuningJobCheckpointsResponseObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListFineTuningJobCheckpointsResponseObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListFineTuningJobEventsResponseObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListFineTuningJobEventsResponseObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListModelsResponseObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListModelsResponseObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListPaginatedFineTuningJobsResponseObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListPaginatedFineTuningJobsResponseObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.LocalShellToolCallTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.LocalShellToolCallTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.LocalShellToolCallStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.LocalShellToolCallStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.LocalShellToolCallOutputTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.LocalShellToolCallOutputTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.LocalShellToolCallOutputStatus2JsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.LocalShellToolCallOutputStatus2NullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MCPApprovalRequestTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MCPApprovalRequestTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MCPApprovalResponseTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MCPApprovalResponseTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MCPApprovalResponseResourceTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MCPApprovalResponseResourceTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MCPListToolsTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MCPListToolsTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MCPToolTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MCPToolTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MCPToolConnectorIdJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MCPToolConnectorIdNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MCPToolRequireApprovalVariant1Enum2JsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MCPToolRequireApprovalVariant1Enum2NullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MCPToolCallTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MCPToolCallTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageContentImageFileObjectTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageContentImageFileObjectTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageContentImageFileObjectImageFileDetailJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageContentImageFileObjectImageFileDetailNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageContentImageUrlObjectTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageContentImageUrlObjectTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageContentImageUrlObjectImageUrlDetailJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageContentImageUrlObjectImageUrlDetailNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageContentRefusalObjectTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageContentRefusalObjectTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageContentTextAnnotationsFileCitationObjectTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageContentTextAnnotationsFileCitationObjectTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageContentTextAnnotationsFilePathObjectTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageContentTextAnnotationsFilePathObjectTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageContentTextObjectTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageContentTextObjectTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentImageFileObjectTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentImageFileObjectTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentImageFileObjectImageFileDetailJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentImageFileObjectImageFileDetailNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentImageUrlObjectTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentImageUrlObjectTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentImageUrlObjectImageUrlDetailJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentImageUrlObjectImageUrlDetailNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentRefusalObjectTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentRefusalObjectTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentTextAnnotationsFileCitationObjectTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentTextAnnotationsFileCitationObjectTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentTextAnnotationsFilePathObjectTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentTextAnnotationsFilePathObjectTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentTextObjectTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentTextObjectTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageDeltaObjectObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageDeltaObjectObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageDeltaObjectDeltaRoleJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageDeltaObjectDeltaRoleNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageObjectObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageObjectObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageObjectStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageObjectStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageObjectIncompleteDetailsReasonJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageObjectIncompleteDetailsReasonNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageObjectRoleJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageObjectRoleNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessagePhaseJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessagePhaseNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageRequestContentTextObjectTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageRequestContentTextObjectTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageStreamEventVariant1EventJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageStreamEventVariant1EventNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageStreamEventVariant2EventJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageStreamEventVariant2EventNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageStreamEventVariant3EventJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageStreamEventVariant3EventNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageStreamEventVariant4EventJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageStreamEventVariant4EventNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageStreamEventVariant5EventJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageStreamEventVariant5EventNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ModelObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ModelObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ModelIdsResponsesEnumJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ModelIdsResponsesEnumNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ModelIdsSharedEnumJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ModelIdsSharedEnumNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ModelResponsePropertiesPromptCacheRetention2JsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ModelResponsePropertiesPromptCacheRetention2NullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.NoiseReductionTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.NoiseReductionTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OpenAIFileObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OpenAIFileObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OpenAIFilePurposeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OpenAIFilePurposeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OpenAIFileStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OpenAIFileStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OtherChunkingStrategyResponseParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OtherChunkingStrategyResponseParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OutputAudioTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OutputAudioTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OutputMessageTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OutputMessageTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OutputMessageRoleJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OutputMessageRoleNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OutputMessageStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OutputMessageStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.PredictionContentTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.PredictionContentTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectApiKeyObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectApiKeyObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectApiKeyOwnerTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectApiKeyOwnerTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectApiKeyDeleteResponseObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectApiKeyDeleteResponseObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectApiKeyListResponseObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectApiKeyListResponseObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectCreateRequestGeographyJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectCreateRequestGeographyNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectGroupObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectGroupObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectGroupDeletedResourceObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectGroupDeletedResourceObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectGroupListResourceObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectGroupListResourceObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectListResponseObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectListResponseObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectRateLimitObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectRateLimitObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectRateLimitListResponseObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectRateLimitListResponseObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountRoleJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountRoleNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountApiKeyObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountApiKeyObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountCreateResponseObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountCreateResponseObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountCreateResponseRoleJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountCreateResponseRoleNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountDeleteResponseObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountDeleteResponseObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountListResponseObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountListResponseObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectUserObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectUserObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectUserRoleJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectUserRoleNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectUserCreateRequestRoleJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectUserCreateRequestRoleNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectUserDeleteResponseObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectUserDeleteResponseObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectUserUpdateRequestRoleJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ProjectUserUpdateRequestRoleNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.PublicRoleListResourceObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.PublicRoleListResourceObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeAudioFormatsPcmAudioFormatTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeAudioFormatsPcmAudioFormatTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeAudioFormatsPcmuAudioFormatTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeAudioFormatsPcmuAudioFormatTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeAudioFormatsPcmaAudioFormatTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeAudioFormatsPcmaAudioFormatTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemCreateTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemCreateTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemDeleteTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemDeleteTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemRetrieveTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemRetrieveTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemTruncateTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemTruncateTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferAppendTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferAppendTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferClearTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferClearTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferCommitTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferCommitTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventOutputAudioBufferClearTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventOutputAudioBufferClearTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventResponseCancelTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventResponseCancelTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventResponseCreateTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventResponseCreateTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventSessionUpdateTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventSessionUpdateTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventTranscriptionSessionUpdateTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventTranscriptionSessionUpdateTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusDetailsTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusDetailsTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusDetailsReasonJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusDetailsReasonNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseModalitieJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseModalitieNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseOutputAudioFormatJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseOutputAudioFormatNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseMaxOutputTokensJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseMaxOutputTokensNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsModalitieJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsModalitieNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsOutputAudioFormatJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsOutputAudioFormatNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsToolTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsToolTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsMaxOutputTokensJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsMaxOutputTokensNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsConversationJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsConversationNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemCreatedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemCreatedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemDeletedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemDeletedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemRetrievedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemRetrievedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemTruncatedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemTruncatedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventErrorTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventErrorTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferClearedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferClearedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferCommittedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferCommittedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferSpeechStartedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferSpeechStartedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferSpeechStoppedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferSpeechStoppedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsCompletedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsCompletedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsFailedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsFailedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsInProgressTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsInProgressTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventRateLimitsUpdatedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventRateLimitsUpdatedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventRateLimitsUpdatedRateLimitNameJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventRateLimitsUpdatedRateLimitNameNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioDeltaTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioDeltaTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioDoneTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioDoneTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioTranscriptDeltaTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioTranscriptDeltaTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioTranscriptDoneTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioTranscriptDoneTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartAddedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartAddedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartAddedPartTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartAddedPartTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartDoneTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartDoneTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartDonePartTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartDonePartTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseCreatedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseCreatedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseDoneTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseDoneTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallArgumentsDoneTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallArgumentsDoneTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallCompletedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallCompletedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallFailedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallFailedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallInProgressTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallInProgressTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseOutputItemAddedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseOutputItemAddedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseOutputItemDoneTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseOutputItemDoneTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseTextDeltaTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseTextDeltaTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseTextDoneTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseTextDoneTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventSessionCreatedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventSessionCreatedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventSessionUpdatedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventSessionUpdatedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionCreatedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionCreatedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionUpdatedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionUpdatedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemCreateTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemCreateTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemDeleteTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemDeleteTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemRetrieveTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemRetrieveTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemTruncateTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemTruncateTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventInputAudioBufferAppendTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventInputAudioBufferAppendTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventInputAudioBufferClearTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventInputAudioBufferClearTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventInputAudioBufferCommitTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventInputAudioBufferCommitTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventOutputAudioBufferClearTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventOutputAudioBufferClearTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventResponseCancelTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventResponseCancelTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventResponseCreateTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventResponseCreateTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventSessionUpdateTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventSessionUpdateTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventTranscriptionSessionUpdateTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventTranscriptionSessionUpdateTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallOutputObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallOutputObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallOutputTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallOutputTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallOutputStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallOutputStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantRoleJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantRoleNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantContentItemTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantContentItemTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemRoleJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemRoleNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemContentItemTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemContentItemTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserRoleJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserRoleNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserContentItemTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserContentItemTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserContentItemDetailJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserContentItemDetailNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceRoleJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceRoleNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceContentItemTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceContentItemTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretRequestExpiresAfterAnchorJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretRequestExpiresAfterAnchorNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeFunctionToolTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeFunctionToolTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeMCPApprovalRequestTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeMCPApprovalRequestTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeMCPApprovalResponseTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeMCPApprovalResponseTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeMCPHTTPErrorTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeMCPHTTPErrorTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeMCPListToolsTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeMCPListToolsTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeMCPProtocolErrorTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeMCPProtocolErrorTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeMCPToolCallTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeMCPToolCallTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeMCPToolExecutionErrorTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeMCPToolExecutionErrorTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeResponseObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeResponseObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeResponseStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeResponseStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeResponseStatusDetailsTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeResponseStatusDetailsTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeResponseStatusDetailsReasonJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeResponseStatusDetailsReasonNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeResponseOutputModalitieJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeResponseOutputModalitieNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeResponseMaxOutputTokensJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeResponseMaxOutputTokensNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsOutputModalitieJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsOutputModalitieNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsMaxOutputTokensJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsMaxOutputTokensNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsConversationJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsConversationNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationCreatedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationCreatedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemAddedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemAddedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemCreatedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemCreatedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemDeletedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemDeletedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemDoneTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemDoneTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionDeltaTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionDeltaTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionFailedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionFailedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionSegmentTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionSegmentTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemRetrievedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemRetrievedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemTruncatedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemTruncatedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventErrorTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventErrorTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferClearedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferClearedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferCommittedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferCommittedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferDtmfEventReceivedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferDtmfEventReceivedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferSpeechStartedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferSpeechStartedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferSpeechStoppedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferSpeechStoppedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferTimeoutTriggeredTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferTimeoutTriggeredTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventMCPListToolsCompletedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventMCPListToolsCompletedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventMCPListToolsFailedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventMCPListToolsFailedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventMCPListToolsInProgressTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventMCPListToolsInProgressTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventOutputAudioBufferClearedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventOutputAudioBufferClearedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventOutputAudioBufferStartedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventOutputAudioBufferStartedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventOutputAudioBufferStoppedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventOutputAudioBufferStoppedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventRateLimitsUpdatedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventRateLimitsUpdatedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventRateLimitsUpdatedRateLimitNameJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventRateLimitsUpdatedRateLimitNameNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseAudioDeltaTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseAudioDeltaTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseAudioDoneTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseAudioDoneTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseAudioTranscriptDeltaTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseAudioTranscriptDeltaTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseAudioTranscriptDoneTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseAudioTranscriptDoneTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseContentPartAddedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseContentPartAddedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseContentPartAddedPartTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseContentPartAddedPartTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseContentPartDoneTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseContentPartDoneTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseContentPartDonePartTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseContentPartDonePartTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseCreatedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseCreatedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseDoneTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseDoneTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseFunctionCallArgumentsDeltaTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseFunctionCallArgumentsDeltaTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseFunctionCallArgumentsDoneTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseFunctionCallArgumentsDoneTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseMCPCallArgumentsDeltaTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseMCPCallArgumentsDeltaTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseMCPCallArgumentsDoneTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseMCPCallArgumentsDoneTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseMCPCallCompletedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseMCPCallCompletedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseMCPCallFailedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseMCPCallFailedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseMCPCallInProgressTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseMCPCallInProgressTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseOutputItemAddedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseOutputItemAddedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseOutputItemDoneTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseOutputItemDoneTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseTextDeltaTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseTextDeltaTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseTextDoneTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseTextDoneTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventSessionCreatedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventSessionCreatedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventSessionUpdatedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventSessionUpdatedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventTranscriptionSessionUpdatedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventTranscriptionSessionUpdatedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionModalitieJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionModalitieNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionModelJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionModelNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionInputAudioFormatJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionInputAudioFormatNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionOutputAudioFormatJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionOutputAudioFormatNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionTracingTracingConfigurationEnumJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionTracingTracingConfigurationEnumNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionMaxResponseOutputTokensJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionMaxResponseOutputTokensNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionIncludeVariant1ItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionIncludeVariant1ItemNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestModalitieJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestModalitieNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestTracingEnumJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestTracingEnumNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestToolTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestToolTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestMaxResponseOutputTokensJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestMaxResponseOutputTokensNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGATypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGATypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAOutputModalitieJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAOutputModalitieNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAModelJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAModelNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAIncludeItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAIncludeItemNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGATracingEnumJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGATracingEnumNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAMaxOutputTokensJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAMaxOutputTokensNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseIncludeItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseIncludeItemNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseOutputModalitieJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseOutputModalitieNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseTracingEnumJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseTracingEnumNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseMaxOutputTokensJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseMaxOutputTokensNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGATypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGATypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGAOutputModalitieJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGAOutputModalitieNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGAModelJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGAModelNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGAIncludeItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGAIncludeItemNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGATracingTracingConfigurationEnumJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGATracingTracingConfigurationEnumNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGAMaxOutputTokensJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGAMaxOutputTokensNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestTurnDetectionTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestTurnDetectionTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestInputAudioFormatJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestInputAudioFormatNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestIncludeItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestIncludeItemNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGATypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGATypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAIncludeItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAIncludeItemNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseModalitieJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseModalitieNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseGATypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseGATypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseGAIncludeItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseGAIncludeItemNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeTruncationEnumJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeTruncationEnumNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeTruncationEnumTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeTruncationEnumTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVadEagernessJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVadEagernessNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ReasoningSummary2JsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ReasoningSummary2NullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ReasoningGenerateSummary2JsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ReasoningGenerateSummary2NullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ReasoningEffortEnumJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ReasoningEffortEnumNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ReasoningItemTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ReasoningItemTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ReasoningItemStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ReasoningItemStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseVariant3ObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseVariant3ObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseVariant3StatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseVariant3StatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseVariant3IncompleteDetailsReasonJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseVariant3IncompleteDetailsReasonNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseAudioDeltaEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseAudioDeltaEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseAudioDoneEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseAudioDoneEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseAudioTranscriptDeltaEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseAudioTranscriptDeltaEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseAudioTranscriptDoneEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseAudioTranscriptDoneEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseCodeInterpreterCallCodeDeltaEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseCodeInterpreterCallCodeDeltaEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseCodeInterpreterCallCodeDoneEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseCodeInterpreterCallCodeDoneEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseCodeInterpreterCallCompletedEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseCodeInterpreterCallCompletedEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseCodeInterpreterCallInProgressEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseCodeInterpreterCallInProgressEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseCodeInterpreterCallInterpretingEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseCodeInterpreterCallInterpretingEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseCompletedEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseCompletedEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseContentPartAddedEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseContentPartAddedEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseContentPartDoneEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseContentPartDoneEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseCreatedEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseCreatedEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseCustomToolCallInputDeltaEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseCustomToolCallInputDeltaEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseCustomToolCallInputDoneEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseCustomToolCallInputDoneEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseErrorCodeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseErrorCodeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseErrorEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseErrorEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseFailedEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseFailedEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseFileSearchCallCompletedEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseFileSearchCallCompletedEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseFileSearchCallInProgressEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseFileSearchCallInProgressEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseFileSearchCallSearchingEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseFileSearchCallSearchingEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseFormatJsonObjectTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseFormatJsonObjectTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseFormatJsonSchemaTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseFormatJsonSchemaTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseFormatTextTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseFormatTextTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseFormatTextGrammarTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseFormatTextGrammarTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseFormatTextPythonTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseFormatTextPythonTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseFunctionCallArgumentsDeltaEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseFunctionCallArgumentsDeltaEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseFunctionCallArgumentsDoneEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseFunctionCallArgumentsDoneEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseImageGenCallCompletedEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseImageGenCallCompletedEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseImageGenCallGeneratingEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseImageGenCallGeneratingEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseImageGenCallInProgressEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseImageGenCallInProgressEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseImageGenCallPartialImageEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseImageGenCallPartialImageEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseInProgressEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseInProgressEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseIncompleteEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseIncompleteEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseItemListObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseItemListObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseMCPCallArgumentsDeltaEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseMCPCallArgumentsDeltaEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseMCPCallArgumentsDoneEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseMCPCallArgumentsDoneEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseMCPCallCompletedEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseMCPCallCompletedEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseMCPCallFailedEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseMCPCallFailedEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseMCPCallInProgressEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseMCPCallInProgressEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseMCPListToolsCompletedEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseMCPListToolsCompletedEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseMCPListToolsFailedEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseMCPListToolsFailedEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseMCPListToolsInProgressEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseMCPListToolsInProgressEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseModalitiesVariant1ItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseModalitiesVariant1ItemNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseOutputItemAddedEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseOutputItemAddedEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseOutputItemDoneEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseOutputItemDoneEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextAnnotationAddedEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextAnnotationAddedEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponsePropertiesTruncation2JsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponsePropertiesTruncation2NullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseQueuedEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseQueuedEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryPartAddedEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryPartAddedEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryPartAddedEventPartTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryPartAddedEventPartTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryPartDoneEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryPartDoneEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryPartDoneEventPartTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryPartDoneEventPartTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryTextDeltaEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryTextDeltaEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryTextDoneEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryTextDoneEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseReasoningTextDeltaEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseReasoningTextDeltaEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseReasoningTextDoneEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseReasoningTextDoneEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseRefusalDeltaEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseRefusalDeltaEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseRefusalDoneEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseRefusalDoneEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseTextDeltaEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseTextDeltaEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseTextDoneEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseTextDoneEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseWebSearchCallCompletedEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseWebSearchCallCompletedEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseWebSearchCallInProgressEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseWebSearchCallInProgressEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseWebSearchCallSearchingEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseWebSearchCallSearchingEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponsesClientEventResponseCreateVariant1TypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponsesClientEventResponseCreateVariant1TypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RoleObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RoleObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RoleDeletedResourceObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RoleDeletedResourceObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RoleListResourceObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RoleListResourceObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunObjectObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunObjectObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunObjectStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunObjectStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunObjectRequiredActionTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunObjectRequiredActionTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunObjectLastErrorCodeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunObjectLastErrorCodeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunObjectIncompleteDetailsReasonJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunObjectIncompleteDetailsReasonNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepDeltaObjectObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepDeltaObjectObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsMessageCreationObjectTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsMessageCreationObjectTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsCodeObjectTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsCodeObjectTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsFileSearchObjectTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsFileSearchObjectTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsFunctionObjectTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsFunctionObjectTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsObjectTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsObjectTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepDetailsMessageCreationObjectTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepDetailsMessageCreationObjectTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsCodeObjectTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsCodeObjectTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsCodeOutputImageObjectTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsCodeOutputImageObjectTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsCodeOutputLogsObjectTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsCodeOutputLogsObjectTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsFileSearchObjectTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsFileSearchObjectTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsFileSearchResultObjectContentItemTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsFileSearchResultObjectContentItemTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsFunctionObjectTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsFunctionObjectTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsObjectTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsObjectTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepObjectObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepObjectObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepObjectTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepObjectTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepObjectStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepObjectStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepObjectLastErrorCodeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepObjectLastErrorCodeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant1EventJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant1EventNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant2EventJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant2EventNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant3EventJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant3EventNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant4EventJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant4EventNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant5EventJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant5EventNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant6EventJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant6EventNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant7EventJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant7EventNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant1EventJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant1EventNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant2EventJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant2EventNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant3EventJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant3EventNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant4EventJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant4EventNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant5EventJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant5EventNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant6EventJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant6EventNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant7EventJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant7EventNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant8EventJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant8EventNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant9EventJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant9EventNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant10EventJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant10EventNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunToolCallObjectTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunToolCallObjectTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ServiceTierEnumJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ServiceTierEnumNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.SpeechAudioDeltaEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.SpeechAudioDeltaEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.SpeechAudioDoneEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.SpeechAudioDoneEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.StaticChunkingStrategyRequestParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.StaticChunkingStrategyRequestParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.StaticChunkingStrategyResponseParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.StaticChunkingStrategyResponseParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.TextResponseFormatJsonSchemaTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.TextResponseFormatJsonSchemaTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ThreadObjectObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ThreadObjectObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ThreadStreamEventVariant1EventJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ThreadStreamEventVariant1EventNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ToolChoiceAllowedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ToolChoiceAllowedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ToolChoiceAllowedModeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ToolChoiceAllowedModeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ToolChoiceCustomTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ToolChoiceCustomTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ToolChoiceFunctionTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ToolChoiceFunctionTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ToolChoiceMCPTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ToolChoiceMCPTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ToolChoiceOptionsJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ToolChoiceOptionsNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ToolChoiceTypesTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ToolChoiceTypesTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.TranscriptTextDeltaEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.TranscriptTextDeltaEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.TranscriptTextDoneEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.TranscriptTextDoneEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.TranscriptTextSegmentEventTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.TranscriptTextSegmentEventTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.TranscriptTextUsageDurationTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.TranscriptTextUsageDurationTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.TranscriptTextUsageTokensTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.TranscriptTextUsageTokensTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.TranscriptionChunkingStrategyEnumJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.TranscriptionChunkingStrategyEnumNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.TranscriptionDiarizedSegmentTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.TranscriptionDiarizedSegmentTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.TranscriptionIncludeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.TranscriptionIncludeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.TruncationObjectTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.TruncationObjectTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UploadStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UploadStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UploadObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UploadObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UploadPartObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UploadPartObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageAudioSpeechesResultObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageAudioSpeechesResultObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageAudioTranscriptionsResultObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageAudioTranscriptionsResultObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageCodeInterpreterSessionsResultObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageCodeInterpreterSessionsResultObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageCompletionsResultObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageCompletionsResultObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageEmbeddingsResultObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageEmbeddingsResultObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageImagesResultObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageImagesResultObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageModerationsResultObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageModerationsResultObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageResponseObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageResponseObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageTimeBucketObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageTimeBucketObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageVectorStoresResultObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageVectorStoresResultObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UserObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UserObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UserRoleJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UserRoleNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UserDeleteResponseObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UserDeleteResponseObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UserListResourceObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UserListResourceObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UserListResponseObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UserListResponseObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UserRoleAssignmentObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UserRoleAssignmentObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UserRoleUpdateRequestRoleJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UserRoleUpdateRequestRoleNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VadConfigTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VadConfigTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VectorStoreExpirationAfterAnchorJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VectorStoreExpirationAfterAnchorNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VectorStoreFileBatchObjectObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VectorStoreFileBatchObjectObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VectorStoreFileBatchObjectStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VectorStoreFileBatchObjectStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VectorStoreFileContentResponseObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VectorStoreFileContentResponseObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VectorStoreFileObjectObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VectorStoreFileObjectObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VectorStoreFileObjectStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VectorStoreFileObjectStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VectorStoreFileObjectLastErrorCodeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VectorStoreFileObjectLastErrorCodeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VectorStoreObjectObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VectorStoreObjectObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VectorStoreObjectStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VectorStoreObjectStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VectorStoreSearchRequestRankingOptionsRankerJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VectorStoreSearchRequestRankingOptionsRankerNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VectorStoreSearchResultContentObjectTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VectorStoreSearchResultContentObjectTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VectorStoreSearchResultsPageObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VectorStoreSearchResultsPageObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VerbosityEnumJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VerbosityEnumNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VoiceConsentDeletedResourceObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VoiceConsentDeletedResourceObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VoiceConsentListResourceObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VoiceConsentListResourceObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VoiceConsentResourceObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VoiceConsentResourceObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VoiceIdsSharedEnumJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VoiceIdsSharedEnumNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VoiceResourceObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VoiceResourceObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebSearchActionFindTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebSearchActionFindTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebSearchActionOpenPageTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebSearchActionOpenPageTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebSearchActionSearchTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebSearchActionSearchTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebSearchActionSearchSourceTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebSearchActionSearchSourceTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebSearchApproximateLocationWebSearchApproximateLocation1TypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebSearchApproximateLocationWebSearchApproximateLocation1TypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebSearchContextSizeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebSearchContextSizeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebSearchToolTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebSearchToolTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebSearchToolSearchContextSizeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebSearchToolSearchContextSizeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookBatchCancelledObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookBatchCancelledObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookBatchCancelledTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookBatchCancelledTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookBatchCompletedObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookBatchCompletedObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookBatchCompletedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookBatchCompletedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookBatchExpiredObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookBatchExpiredObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookBatchExpiredTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookBatchExpiredTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookBatchFailedObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookBatchFailedObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookBatchFailedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookBatchFailedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunCanceledObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunCanceledObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunCanceledTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunCanceledTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunFailedObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunFailedObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunFailedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunFailedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunSucceededObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunSucceededObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunSucceededTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunSucceededTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobCancelledObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobCancelledObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobCancelledTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobCancelledTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobFailedObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobFailedObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobFailedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobFailedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobSucceededObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobSucceededObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobSucceededTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobSucceededTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookRealtimeCallIncomingObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookRealtimeCallIncomingObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookRealtimeCallIncomingTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookRealtimeCallIncomingTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookResponseCancelledObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookResponseCancelledObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookResponseCancelledTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookResponseCancelledTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookResponseCompletedObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookResponseCompletedObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookResponseCompletedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookResponseCompletedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookResponseFailedObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookResponseFailedObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookResponseFailedTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookResponseFailedTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookResponseIncompleteObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookResponseIncompleteObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookResponseIncompleteTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebhookResponseIncompleteTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.SkillReferenceParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.SkillReferenceParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InlineSkillSourceParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InlineSkillSourceParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InlineSkillSourceParamMediaTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InlineSkillSourceParamMediaTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InlineSkillParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InlineSkillParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ContainerNetworkPolicyDisabledParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ContainerNetworkPolicyDisabledParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ContainerNetworkPolicyAllowlistParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ContainerNetworkPolicyAllowlistParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.IncludeEnumJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.IncludeEnumNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageRoleJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageRoleNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InputTextContentTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InputTextContentTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FileCitationBodyTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FileCitationBodyTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UrlCitationBodyTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UrlCitationBodyTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ContainerFileCitationBodyTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ContainerFileCitationBodyTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OutputTextContentTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OutputTextContentTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.TextContentTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.TextContentTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.SummaryTextContentTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.SummaryTextContentTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ReasoningTextContentTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ReasoningTextContentTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RefusalContentTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RefusalContentTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageDetailJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageDetailNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InputImageContentTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InputImageContentTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ComputerScreenshotContentTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ComputerScreenshotContentTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InputFileContentTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InputFileContentTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessagePhase2JsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessagePhase2NullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionCallStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionCallStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputStatusEnumJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputStatusEnumNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ClickButtonTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ClickButtonTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ClickParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ClickParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.DoubleClickActionTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.DoubleClickActionTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.DragParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.DragParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.KeyPressActionTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.KeyPressActionTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MoveParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MoveParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ScreenshotParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ScreenshotParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ScrollParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ScrollParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.TypeParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.TypeParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WaitParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WaitParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ComputerCallOutputStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ComputerCallOutputStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ToolSearchExecutionTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ToolSearchExecutionTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ToolSearchCallTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ToolSearchCallTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionToolTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionToolTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RankerVersionTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RankerVersionTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FileSearchToolTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FileSearchToolTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ComputerToolTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ComputerToolTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ComputerEnvironmentJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ComputerEnvironmentNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ComputerUsePreviewToolTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ComputerUsePreviewToolTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ContainerMemoryLimitJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ContainerMemoryLimitNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AutoCodeInterpreterToolParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AutoCodeInterpreterToolParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InputFidelityJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InputFidelityNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageGenActionEnumJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageGenActionEnumNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.LocalShellToolParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.LocalShellToolParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.LocalEnvironmentParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.LocalEnvironmentParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ContainerReferenceParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ContainerReferenceParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionShellToolParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionShellToolParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CustomTextFormatParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CustomTextFormatParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GrammarSyntax1JsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GrammarSyntax1NullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CustomGrammarFormatParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CustomGrammarFormatParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CustomToolParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CustomToolParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionToolParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionToolParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.NamespaceToolParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.NamespaceToolParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ToolSearchToolParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ToolSearchToolParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ApproximateLocationTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ApproximateLocationTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.SearchContextSizeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.SearchContextSizeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.SearchContentTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.SearchContentTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebSearchPreviewToolTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebSearchPreviewToolTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ToolSearchOutputTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ToolSearchOutputTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CompactionBodyTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CompactionBodyTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CodeInterpreterOutputLogsTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CodeInterpreterOutputLogsTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CodeInterpreterOutputImageTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CodeInterpreterOutputImageTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.LocalShellExecActionTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.LocalShellExecActionTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.LocalShellCallStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.LocalShellCallStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.LocalEnvironmentResourceTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.LocalEnvironmentResourceTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ContainerReferenceResourceTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ContainerReferenceResourceTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.LocalShellCallOutputStatusEnumJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.LocalShellCallOutputStatusEnumNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTimeoutOutcomeTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTimeoutOutcomeTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputExitOutcomeTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputExitOutcomeTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ApplyPatchCreateFileOperationTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ApplyPatchCreateFileOperationTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ApplyPatchDeleteFileOperationTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ApplyPatchDeleteFileOperationTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ApplyPatchUpdateFileOperationTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ApplyPatchUpdateFileOperationTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallOutputStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallOutputStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallOutputTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallOutputTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MCPToolCallStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MCPToolCallStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.DetailEnumJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.DetailEnumNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionCallItemStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionCallItemStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ComputerCallOutputItemParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ComputerCallOutputItemParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InputTextContentParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InputTextContentParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InputImageContentParamAutoParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InputImageContentParamAutoParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InputFileContentParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InputFileContentParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ToolSearchCallItemParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ToolSearchCallItemParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ToolSearchOutputItemParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ToolSearchOutputItemParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CompactionSummaryItemParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CompactionSummaryItemParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTimeoutOutcomeParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTimeoutOutcomeParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputExitOutcomeParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputExitOutcomeParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputItemParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputItemParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallStatusParamJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallStatusParamNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ApplyPatchCreateFileOperationParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ApplyPatchCreateFileOperationParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ApplyPatchDeleteFileOperationParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ApplyPatchDeleteFileOperationParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ApplyPatchUpdateFileOperationParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ApplyPatchUpdateFileOperationParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallItemParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallItemParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallOutputStatusParamJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallOutputStatusParamNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallOutputItemParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallOutputItemParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ItemReferenceParamType2JsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ItemReferenceParamType2NullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ConversationResourceObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ConversationResourceObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.SpecificApplyPatchParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.SpecificApplyPatchParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.SpecificFunctionShellParamTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.SpecificFunctionShellParamTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.DeletedConversationResourceObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.DeletedConversationResourceObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OrderEnumJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OrderEnumNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VideoModelEnumJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VideoModelEnumNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VideoStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VideoStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VideoSizeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VideoSizeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VideoResourceObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VideoResourceObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VideoListResourceObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VideoListResourceObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VideoSecondsJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VideoSecondsNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.DeletedVideoResourceObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.DeletedVideoResourceObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VideoContentVariantJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VideoContentVariantNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.TruncationEnumJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.TruncationEnumNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.TokenCountsResourceObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.TokenCountsResourceObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CompactResourceObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CompactResourceObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.SkillResourceObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.SkillResourceObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.SkillListResourceObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.SkillListResourceObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.DeletedSkillResourceObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.DeletedSkillResourceObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.SkillVersionResourceObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.SkillVersionResourceObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.SkillVersionListResourceObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.SkillVersionListResourceObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.DeletedSkillVersionResourceObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.DeletedSkillVersionResourceObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatSessionStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatSessionStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatSessionResourceObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatSessionResourceObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ExpiresAfterParamAnchorJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ExpiresAfterParamAnchorNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UserMessageInputTextTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UserMessageInputTextTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UserMessageQuotedTextTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UserMessageQuotedTextTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AttachmentTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AttachmentTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UserMessageItemObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UserMessageItemObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UserMessageItemTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UserMessageItemTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FileAnnotationSourceTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FileAnnotationSourceTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FileAnnotationTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FileAnnotationTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UrlAnnotationSourceTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UrlAnnotationSourceTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UrlAnnotationTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UrlAnnotationTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AssistantMessageItemObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AssistantMessageItemObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AssistantMessageItemTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AssistantMessageItemTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WidgetMessageItemObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WidgetMessageItemObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WidgetMessageItemTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WidgetMessageItemTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ClientToolCallStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ClientToolCallStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ClientToolCallItemObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ClientToolCallItemObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ClientToolCallItemTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ClientToolCallItemTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.TaskTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.TaskTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.TaskItemObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.TaskItemObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.TaskItemTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.TaskItemTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.TaskGroupItemObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.TaskGroupItemObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.TaskGroupItemTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.TaskGroupItemTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ThreadItemListResourceObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ThreadItemListResourceObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ActiveStatusTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ActiveStatusTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.LockedStatusTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.LockedStatusTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ClosedStatusTypeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ClosedStatusTypeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ThreadResourceObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ThreadResourceObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.DeletedThreadResourceObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.DeletedThreadResourceObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ThreadListResourceObjectJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ThreadListResourceObjectNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateBatchRequestEndpointJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateBatchRequestEndpointNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateBatchRequestCompletionWindowJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateBatchRequestCompletionWindowNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListAssistantsOrderJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListAssistantsOrderNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListChatCompletionsOrderJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListChatCompletionsOrderNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GetChatCompletionMessagesOrderJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GetChatCompletionMessagesOrderNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListContainersOrderJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListContainersOrderNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListContainerFilesOrderJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListContainerFilesOrderNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListConversationItemsOrderJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListConversationItemsOrderNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListEvalsOrderJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListEvalsOrderNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListEvalsOrderByJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListEvalsOrderByNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GetEvalRunsOrderJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GetEvalRunsOrderNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GetEvalRunsStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GetEvalRunsStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GetEvalRunOutputItemsStatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GetEvalRunOutputItemsStatusNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GetEvalRunOutputItemsOrderJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GetEvalRunOutputItemsOrderNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListFilesOrderJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListFilesOrderNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListFineTuningCheckpointPermissionsOrderJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListFineTuningCheckpointPermissionsOrderNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AdminApiKeysListOrderJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AdminApiKeysListOrderNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListOrganizationCertificatesOrderJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListOrganizationCertificatesOrderNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GetCertificateIncludeItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GetCertificateIncludeItemNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageCostsBucketWidthJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageCostsBucketWidthNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageCostsGroupByItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageCostsGroupByItemNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListGroupsOrderJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListGroupsOrderNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListGroupRoleAssignmentsOrderJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListGroupRoleAssignmentsOrderNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListGroupUsersOrderJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListGroupUsersOrderNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListProjectCertificatesOrderJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListProjectCertificatesOrderNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListProjectGroupsOrderJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListProjectGroupsOrderNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListRolesOrderJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListRolesOrderNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageAudioSpeechesBucketWidthJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageAudioSpeechesBucketWidthNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageAudioSpeechesGroupByItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageAudioSpeechesGroupByItemNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageAudioTranscriptionsBucketWidthJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageAudioTranscriptionsBucketWidthNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageAudioTranscriptionsGroupByItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageAudioTranscriptionsGroupByItemNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageCodeInterpreterSessionsBucketWidthJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageCodeInterpreterSessionsBucketWidthNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageCodeInterpreterSessionsGroupByItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageCodeInterpreterSessionsGroupByItemNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageCompletionsBucketWidthJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageCompletionsBucketWidthNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageCompletionsGroupByItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageCompletionsGroupByItemNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageEmbeddingsBucketWidthJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageEmbeddingsBucketWidthNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageEmbeddingsGroupByItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageEmbeddingsGroupByItemNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageImagesBucketWidthJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageImagesBucketWidthNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageImagesSourceJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageImagesSourceNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageImagesSizeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageImagesSizeNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageImagesGroupByItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageImagesGroupByItemNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageModerationsBucketWidthJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageModerationsBucketWidthNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageModerationsGroupByItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageModerationsGroupByItemNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageVectorStoresBucketWidthJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageVectorStoresBucketWidthNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageVectorStoresGroupByItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UsageVectorStoresGroupByItemNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListUserRoleAssignmentsOrderJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListUserRoleAssignmentsOrderNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListProjectGroupRoleAssignmentsOrderJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListProjectGroupRoleAssignmentsOrderNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListProjectRolesOrderJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListProjectRolesOrderNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListProjectUserRoleAssignmentsOrderJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListProjectUserRoleAssignmentsOrderNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListInputItemsOrderJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListInputItemsOrderNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListMessagesOrderJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListMessagesOrderNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListRunsOrderJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListRunsOrderNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateRunIncludeItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateRunIncludeItemNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListRunStepsOrderJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListRunStepsOrderNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListRunStepsIncludeItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListRunStepsIncludeItemNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GetRunStepIncludeItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.GetRunStepIncludeItemNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListVectorStoresOrderJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListVectorStoresOrderNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListFilesInVectorStoreBatchOrderJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListFilesInVectorStoreBatchOrderNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListFilesInVectorStoreBatchFilterJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListFilesInVectorStoreBatchFilterNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListVectorStoreFilesOrderJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListVectorStoreFilesOrderNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListVectorStoreFilesFilterJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ListVectorStoreFilesFilterNullableJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AssistantStreamEventJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AssistantsApiResponseFormatOptionJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AssistantsApiToolChoiceOptionJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallsItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageContentPartJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestSystemMessageContentPartJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestToolMessageContentPartJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestUserMessageContentPartJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChatCompletionToolChoiceOptionJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParamJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OutputsVariant1ItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FiltersItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ComputerActionJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ComputerToolCallOutputResourceJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.Content5JsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ConversationItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ConversationParamJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseFormatJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.SkillsItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.NetworkPolicyJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateEvalItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateModelResponsePropertiesJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateResponseJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEventJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonUsageJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseStreamEventJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CustomToolCallOutputResourceJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.CustomToolCallResourceJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.DeletedConversationJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EvalGraderLabelModelJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EvalGraderPythonJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EvalGraderScoreModelJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EvalGraderStringCheckJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EvalGraderTextSimilarityJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EvalItemContentJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EvalItemContentItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FineTuneChatCompletionRequestAssistantMessageJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionAndCustomToolCallOutputJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionToolCallOutputResourceJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionToolCallResourceJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageEditStreamEventJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ImageGenStreamEventJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InputContentJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InputItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InputMessageResourceJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.InputParamJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ItemResourceJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.MessageStreamEventJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ModelIdsJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ModelIdsCompactionJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ModelIdsResponsesJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ModelIdsSharedJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OutputContentJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OutputItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OutputMessageContentJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeAudioFormatsJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.Session2JsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeTruncationJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1JsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponseStreamEventJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponsesClientEventJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponsesClientEventResponseCreateJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ResponsesServerEventJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.RunStreamEventJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.StopConfigurationJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.TextResponseFormatConfigurationJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ThreadStreamEventJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ToolJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ToolChoiceParamJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.TranscriptionChunkingStrategyJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VoiceIdsOrCustomVoiceJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VoiceIdsSharedJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallActionJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AnnotationJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ContentItem3JsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.Filters2JsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.NetworkPolicy2JsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.NetworkPolicy3JsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.SkillsItem2JsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EnvironmentVariant1JsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.Format2JsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ToolsItem13JsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EnvironmentVariant12JsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OutcomeJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OperationJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OutputVariant2ItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.EnvironmentVariant13JsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParamJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParamJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.VideoModelJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ItemFieldJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ContentItem4JsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AnnotationsItem3JsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.ThreadItemJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.StatusJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>>(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>(), + new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter>(), + new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>>(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList>>(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>(), + new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::tryAGI.OpenAI.MCPToolFilter>(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, byte[]>(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, byte[]>(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), + new global::tryAGI.OpenAI.JsonConverters.UnixTimestampJsonConverter(), + } + }; + #pragma warning restore CS0618 // Type or member is obsolete /// @@ -43,7 +2400,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public AssistantsClient Assistants => new AssistantsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -52,7 +2409,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public AudioClient Audio => new AudioClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -61,7 +2418,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public AuditLogsClient AuditLogs => new AuditLogsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -70,7 +2427,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public BatchClient Batch => new BatchClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -79,7 +2436,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public CertificatesClient Certificates => new CertificatesClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -88,7 +2445,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public ChatClient Chat => new ChatClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -97,7 +2454,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public CompletionsClient Completions => new CompletionsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -106,7 +2463,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public ConversationsClient Conversations => new ConversationsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -115,7 +2472,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public EmbeddingsClient Embeddings => new EmbeddingsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -124,7 +2481,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public EvalsClient Evals => new EvalsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -133,7 +2490,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public FilesClient Files => new FilesClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -142,7 +2499,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public FineTuningClient FineTuning => new FineTuningClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -151,7 +2508,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public GroupOrganizationRoleAssignmentsClient GroupOrganizationRoleAssignments => new GroupOrganizationRoleAssignmentsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -160,7 +2517,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public GroupUsersClient GroupUsers => new GroupUsersClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -169,7 +2526,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public GroupsClient Groups => new GroupsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -178,7 +2535,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public ImagesClient Images => new ImagesClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -187,7 +2544,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public InvitesClient Invites => new InvitesClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -196,7 +2553,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public ModelsClient Models => new ModelsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -205,7 +2562,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public ModerationsClient Moderations => new ModerationsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -214,7 +2571,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public ProjectGroupRoleAssignmentsClient ProjectGroupRoleAssignments => new ProjectGroupRoleAssignmentsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -223,7 +2580,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public ProjectGroupsClient ProjectGroups => new ProjectGroupsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -232,7 +2589,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public ProjectUserRoleAssignmentsClient ProjectUserRoleAssignments => new ProjectUserRoleAssignmentsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -241,7 +2598,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public ProjectsClient Projects => new ProjectsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -250,7 +2607,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public RealtimeClient Realtime => new RealtimeClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -259,7 +2616,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public ResponsesClient Responses => new ResponsesClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -268,7 +2625,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public RolesClient Roles => new RolesClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -277,7 +2634,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public SkillsClient Skills => new SkillsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -286,7 +2643,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public UploadsClient Uploads => new UploadsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -295,7 +2652,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public UsageClient Usage => new UsageClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -304,7 +2661,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public UserOrganizationRoleAssignmentsClient UserOrganizationRoleAssignments => new UserOrganizationRoleAssignmentsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -313,7 +2670,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public UsersClient Users => new UsersClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -322,7 +2679,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public VectorStoresClient VectorStores => new VectorStoresClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -331,7 +2688,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public VideosClient Videos => new VideosClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.AssignProjectRoleToGroup.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.AssignProjectRoleToGroup.g.cs index 262ecd11..379c8472 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.AssignProjectRoleToGroup.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.AssignProjectRoleToGroup.g.cs @@ -77,7 +77,7 @@ partial void ProcessAssignProjectRoleToGroupResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -128,7 +128,7 @@ partial void ProcessAssignProjectRoleToGroupResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.GroupRoleAssignment.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.GroupRoleAssignment.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessAssignProjectRoleToGroupResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.GroupRoleAssignment.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.GroupRoleAssignment.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.ListProjectGroupRoleAssignments.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.ListProjectGroupRoleAssignments.g.cs index 29169e0c..d7cd840c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.ListProjectGroupRoleAssignments.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.ListProjectGroupRoleAssignments.g.cs @@ -136,7 +136,7 @@ partial void ProcessListProjectGroupRoleAssignmentsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.RoleListResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.RoleListResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -167,7 +167,7 @@ partial void ProcessListProjectGroupRoleAssignmentsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.RoleListResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.RoleListResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.UnassignProjectRoleFromGroup.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.UnassignProjectRoleFromGroup.g.cs index 4c004a4a..5b91b960 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.UnassignProjectRoleFromGroup.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.UnassignProjectRoleFromGroup.g.cs @@ -119,7 +119,7 @@ partial void ProcessUnassignProjectRoleFromGroupResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.DeletedRoleAssignmentResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.DeletedRoleAssignmentResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -150,7 +150,7 @@ partial void ProcessUnassignProjectRoleFromGroupResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.DeletedRoleAssignmentResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.DeletedRoleAssignmentResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.g.cs index bb459ca0..bc4a2706 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class ProjectGroupRoleAssignmentsClient : global::tryAGI.O /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.AddProjectGroup.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.AddProjectGroup.g.cs index 9f78a388..8ee94c32 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.AddProjectGroup.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.AddProjectGroup.g.cs @@ -72,7 +72,7 @@ partial void ProcessAddProjectGroupResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -122,7 +122,7 @@ partial void ProcessAddProjectGroupResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ProjectGroup.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ProjectGroup.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessAddProjectGroupResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ProjectGroup.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ProjectGroup.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.ListProjectGroups.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.ListProjectGroups.g.cs index 6618d6f1..c369b5c6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.ListProjectGroups.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.ListProjectGroups.g.cs @@ -134,7 +134,7 @@ partial void ProcessListProjectGroupsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ProjectGroupListResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ProjectGroupListResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -165,7 +165,7 @@ partial void ProcessListProjectGroupsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ProjectGroupListResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ProjectGroupListResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.RemoveProjectGroup.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.RemoveProjectGroup.g.cs index 641077b0..b0f51fb2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.RemoveProjectGroup.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.RemoveProjectGroup.g.cs @@ -113,7 +113,7 @@ partial void ProcessRemoveProjectGroupResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ProjectGroupDeletedResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ProjectGroupDeletedResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessRemoveProjectGroupResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ProjectGroupDeletedResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ProjectGroupDeletedResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.g.cs index 470cdff5..07e7e222 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class ProjectGroupsClient : global::tryAGI.OpenAI.IProject /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.AssignProjectRoleToUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.AssignProjectRoleToUser.g.cs index 72fb2fe2..aefc4566 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.AssignProjectRoleToUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.AssignProjectRoleToUser.g.cs @@ -77,7 +77,7 @@ partial void ProcessAssignProjectRoleToUserResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -128,7 +128,7 @@ partial void ProcessAssignProjectRoleToUserResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.UserRoleAssignment.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.UserRoleAssignment.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessAssignProjectRoleToUserResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.UserRoleAssignment.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.UserRoleAssignment.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.ListProjectUserRoleAssignments.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.ListProjectUserRoleAssignments.g.cs index c429d0bc..d6796a25 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.ListProjectUserRoleAssignments.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.ListProjectUserRoleAssignments.g.cs @@ -136,7 +136,7 @@ partial void ProcessListProjectUserRoleAssignmentsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.RoleListResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.RoleListResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -167,7 +167,7 @@ partial void ProcessListProjectUserRoleAssignmentsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.RoleListResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.RoleListResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.UnassignProjectRoleFromUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.UnassignProjectRoleFromUser.g.cs index 856f0365..c872433d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.UnassignProjectRoleFromUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.UnassignProjectRoleFromUser.g.cs @@ -119,7 +119,7 @@ partial void ProcessUnassignProjectRoleFromUserResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.DeletedRoleAssignmentResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.DeletedRoleAssignmentResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -150,7 +150,7 @@ partial void ProcessUnassignProjectRoleFromUserResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.DeletedRoleAssignmentResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.DeletedRoleAssignmentResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.g.cs index 7db65014..c3632297 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class ProjectUserRoleAssignmentsClient : global::tryAGI.Op /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ArchiveProject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ArchiveProject.g.cs index 89124dab..f87f7178 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ArchiveProject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ArchiveProject.g.cs @@ -107,7 +107,7 @@ partial void ProcessArchiveProjectResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Project.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.Project.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessArchiveProjectResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Project.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Project.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProject.g.cs index f4b39b16..3887c992 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProject.g.cs @@ -67,7 +67,7 @@ partial void ProcessCreateProjectResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -116,7 +116,7 @@ partial void ProcessCreateProjectResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Project.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.Project.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessCreateProjectResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Project.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Project.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProjectServiceAccount.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProjectServiceAccount.g.cs index 1324d605..7625121b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProjectServiceAccount.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProjectServiceAccount.g.cs @@ -72,7 +72,7 @@ partial void ProcessCreateProjectServiceAccountResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -110,13 +110,13 @@ partial void ProcessCreateProjectServiceAccountResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessCreateProjectServiceAccountResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ProjectServiceAccountCreateResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ProjectServiceAccountCreateResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -191,7 +191,7 @@ partial void ProcessCreateProjectServiceAccountResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ProjectServiceAccountCreateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ProjectServiceAccountCreateResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProjectUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProjectUser.g.cs index edec1f53..23d97aef 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProjectUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProjectUser.g.cs @@ -72,7 +72,7 @@ partial void ProcessCreateProjectUserResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -110,13 +110,13 @@ partial void ProcessCreateProjectUserResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessCreateProjectUserResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ProjectUser.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ProjectUser.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -191,7 +191,7 @@ partial void ProcessCreateProjectUserResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ProjectUser.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ProjectUser.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectApiKey.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectApiKey.g.cs index 9ff10105..f628f580 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectApiKey.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectApiKey.g.cs @@ -103,13 +103,13 @@ partial void ProcessDeleteProjectApiKeyResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessDeleteProjectApiKeyResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ProjectApiKeyDeleteResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ProjectApiKeyDeleteResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -184,7 +184,7 @@ partial void ProcessDeleteProjectApiKeyResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ProjectApiKeyDeleteResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ProjectApiKeyDeleteResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectServiceAccount.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectServiceAccount.g.cs index 4df2d367..f754258d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectServiceAccount.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectServiceAccount.g.cs @@ -115,7 +115,7 @@ partial void ProcessDeleteProjectServiceAccountResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ProjectServiceAccountDeleteResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ProjectServiceAccountDeleteResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -146,7 +146,7 @@ partial void ProcessDeleteProjectServiceAccountResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ProjectServiceAccountDeleteResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ProjectServiceAccountDeleteResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectUser.g.cs index d5e89a73..0ca4e11c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectUser.g.cs @@ -103,13 +103,13 @@ partial void ProcessDeleteProjectUserResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessDeleteProjectUserResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ProjectUserDeleteResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ProjectUserDeleteResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -184,7 +184,7 @@ partial void ProcessDeleteProjectUserResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ProjectUserDeleteResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ProjectUserDeleteResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectApiKeys.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectApiKeys.g.cs index 5b77f5e4..cfc8e925 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectApiKeys.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectApiKeys.g.cs @@ -125,7 +125,7 @@ partial void ProcessListProjectApiKeysResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ProjectApiKeyListResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ProjectApiKeyListResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -156,7 +156,7 @@ partial void ProcessListProjectApiKeysResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ProjectApiKeyListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ProjectApiKeyListResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectRateLimits.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectRateLimits.g.cs index 8260c5d4..42b3a542 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectRateLimits.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectRateLimits.g.cs @@ -132,7 +132,7 @@ partial void ProcessListProjectRateLimitsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ProjectRateLimitListResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ProjectRateLimitListResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -163,7 +163,7 @@ partial void ProcessListProjectRateLimitsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ProjectRateLimitListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ProjectRateLimitListResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectServiceAccounts.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectServiceAccounts.g.cs index 13cbfcde..b5dc428b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectServiceAccounts.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectServiceAccounts.g.cs @@ -113,13 +113,13 @@ partial void ProcessListProjectServiceAccountsResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -163,7 +163,7 @@ partial void ProcessListProjectServiceAccountsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ProjectServiceAccountListResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ProjectServiceAccountListResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -194,7 +194,7 @@ partial void ProcessListProjectServiceAccountsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ProjectServiceAccountListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ProjectServiceAccountListResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectUsers.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectUsers.g.cs index 0326bc71..7dd3d431 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectUsers.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectUsers.g.cs @@ -113,13 +113,13 @@ partial void ProcessListProjectUsersResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -163,7 +163,7 @@ partial void ProcessListProjectUsersResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ProjectUserListResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ProjectUserListResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -194,7 +194,7 @@ partial void ProcessListProjectUsersResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ProjectUserListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ProjectUserListResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjects.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjects.g.cs index 6b2e1b83..54604ad7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjects.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjects.g.cs @@ -128,7 +128,7 @@ partial void ProcessListProjectsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ProjectListResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ProjectListResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessListProjectsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ProjectListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ProjectListResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProject.g.cs index 42fa8cc6..905d5e4f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProject.g.cs @@ -72,7 +72,7 @@ partial void ProcessModifyProjectResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -110,13 +110,13 @@ partial void ProcessModifyProjectResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessModifyProjectResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Project.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.Project.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -191,7 +191,7 @@ partial void ProcessModifyProjectResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Project.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Project.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProjectRateLimit.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProjectRateLimit.g.cs index 1214d950..0efc1ae6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProjectRateLimit.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProjectRateLimit.g.cs @@ -77,7 +77,7 @@ partial void ProcessModifyProjectRateLimitResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -116,13 +116,13 @@ partial void ProcessModifyProjectRateLimitResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -166,7 +166,7 @@ partial void ProcessModifyProjectRateLimitResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ProjectRateLimit.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ProjectRateLimit.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -197,7 +197,7 @@ partial void ProcessModifyProjectRateLimitResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ProjectRateLimit.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ProjectRateLimit.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProjectUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProjectUser.g.cs index 01bc9815..1cf9373d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProjectUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProjectUser.g.cs @@ -77,7 +77,7 @@ partial void ProcessModifyProjectUserResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -116,13 +116,13 @@ partial void ProcessModifyProjectUserResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -166,7 +166,7 @@ partial void ProcessModifyProjectUserResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ProjectUser.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ProjectUser.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -197,7 +197,7 @@ partial void ProcessModifyProjectUserResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ProjectUser.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ProjectUser.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProject.g.cs index 3aa1d499..053cc91a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProject.g.cs @@ -107,7 +107,7 @@ partial void ProcessRetrieveProjectResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Project.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.Project.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessRetrieveProjectResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Project.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Project.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectApiKey.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectApiKey.g.cs index c2a09073..54437844 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectApiKey.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectApiKey.g.cs @@ -113,7 +113,7 @@ partial void ProcessRetrieveProjectApiKeyResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ProjectApiKey.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ProjectApiKey.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessRetrieveProjectApiKeyResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ProjectApiKey.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ProjectApiKey.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectServiceAccount.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectServiceAccount.g.cs index 6a51b4ee..8c82f4d0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectServiceAccount.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectServiceAccount.g.cs @@ -113,7 +113,7 @@ partial void ProcessRetrieveProjectServiceAccountResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ProjectServiceAccount.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ProjectServiceAccount.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessRetrieveProjectServiceAccountResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ProjectServiceAccount.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ProjectServiceAccount.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectUser.g.cs index d4303021..054a8856 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectUser.g.cs @@ -113,7 +113,7 @@ partial void ProcessRetrieveProjectUserResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ProjectUser.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ProjectUser.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessRetrieveProjectUserResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ProjectUser.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ProjectUser.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.g.cs index 3bfd6513..b14e8547 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class ProjectsClient : global::tryAGI.OpenAI.IProjectsClie /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.AcceptCall.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.AcceptCall.g.cs index 997e94cd..c5c7bfc2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.AcceptCall.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.AcceptCall.g.cs @@ -68,7 +68,7 @@ partial void ProcessAcceptCallResponse( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateClientSecret.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateClientSecret.g.cs index d14ca8ac..0b70153e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateClientSecret.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateClientSecret.g.cs @@ -75,7 +75,7 @@ partial void ProcessCreateClientSecretResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -124,7 +124,7 @@ partial void ProcessCreateClientSecretResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.RealtimeCreateClientSecretResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.RealtimeCreateClientSecretResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -155,7 +155,7 @@ partial void ProcessCreateClientSecretResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.RealtimeCreateClientSecretResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.RealtimeCreateClientSecretResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateSession.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateSession.g.cs index d2ba555e..ef67c1c4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateSession.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateSession.g.cs @@ -73,7 +73,7 @@ partial void ProcessCreateSessionResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -122,7 +122,7 @@ partial void ProcessCreateSessionResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.RealtimeSessionCreateResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.RealtimeSessionCreateResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessCreateSessionResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.RealtimeSessionCreateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.RealtimeSessionCreateResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateTranscriptionSession.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateTranscriptionSession.g.cs index 43bd9ac4..8d5ba6a3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateTranscriptionSession.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateTranscriptionSession.g.cs @@ -73,7 +73,7 @@ partial void ProcessCreateTranscriptionSessionResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -122,7 +122,7 @@ partial void ProcessCreateTranscriptionSessionResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessCreateTranscriptionSessionResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.ReferCall.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.ReferCall.g.cs index a0452017..ee5d5a1d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.ReferCall.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.ReferCall.g.cs @@ -67,7 +67,7 @@ partial void ProcessReferCallResponse( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.RejectCall.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.RejectCall.g.cs index f51ac51b..14ca0a24 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.RejectCall.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.RejectCall.g.cs @@ -67,7 +67,7 @@ partial void ProcessRejectCallResponse( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.g.cs index d98193b0..3ad672fe 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class RealtimeClient : global::tryAGI.OpenAI.IRealtimeClie /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CancelAResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CancelAResponse.g.cs index d9e40254..dac78cf6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CancelAResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CancelAResponse.g.cs @@ -99,13 +99,13 @@ partial void ProcessCancelAResponseResponseContent( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::tryAGI.OpenAI.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::tryAGI.OpenAI.Error.FromJson(__content_404, JsonSerializerOptions); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::tryAGI.OpenAI.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::tryAGI.OpenAI.Error.FromJson(__content_404, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -149,7 +149,7 @@ partial void ProcessCancelAResponseResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Response.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.Response.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -180,7 +180,7 @@ partial void ProcessCancelAResponseResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Response.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Response.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CreateAModelResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CreateAModelResponse.g.cs index 924484c6..c8bfd96d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CreateAModelResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CreateAModelResponse.g.cs @@ -71,7 +71,7 @@ partial void ProcessCreateAModelResponseResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -120,7 +120,7 @@ partial void ProcessCreateAModelResponseResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Response.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.Response.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -151,7 +151,7 @@ partial void ProcessCreateAModelResponseResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Response.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Response.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CreateAModelResponseAsStream.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CreateAModelResponseAsStream.g.cs index 781587be..7e42ffde 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CreateAModelResponseAsStream.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CreateAModelResponseAsStream.g.cs @@ -66,7 +66,7 @@ partial void ProcessCreateAModelResponseAsStreamResponse( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -140,7 +140,7 @@ partial void ProcessCreateAModelResponseAsStreamResponse( yield break; } - var __streamedResponse = global::tryAGI.OpenAI.ResponseStreamEvent.FromJson(__content, JsonSerializerContext) ?? + var __streamedResponse = global::tryAGI.OpenAI.ResponseStreamEvent.FromJson(__content, JsonSerializerOptions) ?? throw new global::tryAGI.OpenAI.ApiException( message: $"Response deserialization failed for \"{__content}\" ", statusCode: __response.StatusCode) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.DeleteAModelResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.DeleteAModelResponse.g.cs index 32eeca6b..f72cc665 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.DeleteAModelResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.DeleteAModelResponse.g.cs @@ -92,13 +92,13 @@ partial void ProcessDeleteAModelResponseResponse( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::tryAGI.OpenAI.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::tryAGI.OpenAI.Error.FromJson(__content_404, JsonSerializerOptions); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::tryAGI.OpenAI.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::tryAGI.OpenAI.Error.FromJson(__content_404, JsonSerializerOptions); } } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.GetAModelResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.GetAModelResponse.g.cs index 721ee816..ae633942 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.GetAModelResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.GetAModelResponse.g.cs @@ -139,7 +139,7 @@ partial void ProcessGetAModelResponseResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Response.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.Response.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -170,7 +170,7 @@ partial void ProcessGetAModelResponseResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Response.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Response.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.ListInputItems.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.ListInputItems.g.cs index 555b0f25..b0708804 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.ListInputItems.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.ListInputItems.g.cs @@ -139,7 +139,7 @@ partial void ProcessListInputItemsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ResponseItemList.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ResponseItemList.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -170,7 +170,7 @@ partial void ProcessListInputItemsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ResponseItemList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ResponseItemList.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.g.cs index f42cf93a..b597947d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class ResponsesClient : global::tryAGI.OpenAI.IResponsesCl /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.CreateOrganizationRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.CreateOrganizationRole.g.cs index a4e6b7da..eee2623d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.CreateOrganizationRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.CreateOrganizationRole.g.cs @@ -67,7 +67,7 @@ partial void ProcessCreateOrganizationRoleResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -116,7 +116,7 @@ partial void ProcessCreateOrganizationRoleResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Role.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.Role.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessCreateOrganizationRoleResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Role.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Role.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.CreateProjectRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.CreateProjectRole.g.cs index 2da0f74b..87a299fc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.CreateProjectRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.CreateProjectRole.g.cs @@ -72,7 +72,7 @@ partial void ProcessCreateProjectRoleResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -122,7 +122,7 @@ partial void ProcessCreateProjectRoleResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Role.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.Role.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessCreateProjectRoleResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Role.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Role.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.DeleteOrganizationRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.DeleteOrganizationRole.g.cs index 84790899..78ba694d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.DeleteOrganizationRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.DeleteOrganizationRole.g.cs @@ -107,7 +107,7 @@ partial void ProcessDeleteOrganizationRoleResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.RoleDeletedResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.RoleDeletedResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessDeleteOrganizationRoleResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.RoleDeletedResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.RoleDeletedResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.DeleteProjectRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.DeleteProjectRole.g.cs index 41cb3ccf..66f8aa35 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.DeleteProjectRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.DeleteProjectRole.g.cs @@ -113,7 +113,7 @@ partial void ProcessDeleteProjectRoleResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.RoleDeletedResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.RoleDeletedResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessDeleteProjectRoleResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.RoleDeletedResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.RoleDeletedResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.ListOrganizationRoles.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.ListOrganizationRoles.g.cs index 0666c397..e11bf4a9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.ListOrganizationRoles.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.ListOrganizationRoles.g.cs @@ -128,7 +128,7 @@ partial void ProcessListOrganizationRolesResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.PublicRoleListResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.PublicRoleListResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessListOrganizationRolesResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.PublicRoleListResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.PublicRoleListResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.ListProjectRoles.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.ListProjectRoles.g.cs index 6ae01eef..1be3ba4a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.ListProjectRoles.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.ListProjectRoles.g.cs @@ -134,7 +134,7 @@ partial void ProcessListProjectRolesResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.PublicRoleListResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.PublicRoleListResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -165,7 +165,7 @@ partial void ProcessListProjectRolesResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.PublicRoleListResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.PublicRoleListResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.UpdateOrganizationRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.UpdateOrganizationRole.g.cs index 26a19f84..0de15082 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.UpdateOrganizationRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.UpdateOrganizationRole.g.cs @@ -72,7 +72,7 @@ partial void ProcessUpdateOrganizationRoleResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -122,7 +122,7 @@ partial void ProcessUpdateOrganizationRoleResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Role.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.Role.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessUpdateOrganizationRoleResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Role.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Role.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.UpdateProjectRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.UpdateProjectRole.g.cs index 9dd7a221..efc6d77a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.UpdateProjectRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.UpdateProjectRole.g.cs @@ -77,7 +77,7 @@ partial void ProcessUpdateProjectRoleResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -128,7 +128,7 @@ partial void ProcessUpdateProjectRoleResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Role.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.Role.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessUpdateProjectRoleResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Role.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Role.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.g.cs index 6e37f72a..c3af25e2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class RolesClient : global::tryAGI.OpenAI.IRolesClient, gl /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.CreateSkill.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.CreateSkill.g.cs index 823d94a1..3c9b4885 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.CreateSkill.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.CreateSkill.g.cs @@ -115,7 +115,7 @@ partial void ProcessCreateSkillResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.SkillResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.SkillResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -146,7 +146,7 @@ partial void ProcessCreateSkillResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.SkillResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.SkillResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.CreateSkillVersion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.CreateSkillVersion.g.cs index e3cc1b8b..6f1a6913 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.CreateSkillVersion.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.CreateSkillVersion.g.cs @@ -133,7 +133,7 @@ partial void ProcessCreateSkillVersionResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.SkillVersionResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.SkillVersionResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -164,7 +164,7 @@ partial void ProcessCreateSkillVersionResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.SkillVersionResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.SkillVersionResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.DeleteSkill.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.DeleteSkill.g.cs index 5a402a7c..ebc11dd6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.DeleteSkill.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.DeleteSkill.g.cs @@ -109,7 +109,7 @@ partial void ProcessDeleteSkillResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.DeletedSkillResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.DeletedSkillResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -140,7 +140,7 @@ partial void ProcessDeleteSkillResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.DeletedSkillResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.DeletedSkillResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.DeleteSkillVersion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.DeleteSkillVersion.g.cs index d678ae4e..c7c7b180 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.DeleteSkillVersion.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.DeleteSkillVersion.g.cs @@ -117,7 +117,7 @@ partial void ProcessDeleteSkillVersionResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.DeletedSkillVersionResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.DeletedSkillVersionResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessDeleteSkillVersionResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.DeletedSkillVersionResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.DeletedSkillVersionResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkill.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkill.g.cs index 14f340e4..cbdda8ab 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkill.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkill.g.cs @@ -109,7 +109,7 @@ partial void ProcessGetSkillResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.SkillResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.SkillResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -140,7 +140,7 @@ partial void ProcessGetSkillResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.SkillResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.SkillResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillVersion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillVersion.g.cs index 9b4cd7f9..3688f18e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillVersion.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillVersion.g.cs @@ -117,7 +117,7 @@ partial void ProcessGetSkillVersionResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.SkillVersionResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.SkillVersionResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessGetSkillVersionResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.SkillVersionResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.SkillVersionResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.ListSkillVersions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.ListSkillVersions.g.cs index 6d675368..17d2a80b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.ListSkillVersions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.ListSkillVersions.g.cs @@ -134,7 +134,7 @@ partial void ProcessListSkillVersionsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.SkillVersionListResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.SkillVersionListResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -165,7 +165,7 @@ partial void ProcessListSkillVersionsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.SkillVersionListResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.SkillVersionListResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.ListSkills.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.ListSkills.g.cs index 30c8a03e..09df65d7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.ListSkills.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.ListSkills.g.cs @@ -126,7 +126,7 @@ partial void ProcessListSkillsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.SkillListResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.SkillListResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -157,7 +157,7 @@ partial void ProcessListSkillsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.SkillListResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.SkillListResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.UpdateSkillDefaultVersion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.UpdateSkillDefaultVersion.g.cs index e265f5dc..07cfe4e5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.UpdateSkillDefaultVersion.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.UpdateSkillDefaultVersion.g.cs @@ -74,7 +74,7 @@ partial void ProcessUpdateSkillDefaultVersionResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -124,7 +124,7 @@ partial void ProcessUpdateSkillDefaultVersionResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.SkillResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.SkillResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -155,7 +155,7 @@ partial void ProcessUpdateSkillDefaultVersionResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.SkillResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.SkillResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.g.cs index 963f64a4..95bd0300 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class SkillsClient : global::tryAGI.OpenAI.ISkillsClient, /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.AddUploadPart.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.AddUploadPart.g.cs index 22dd5476..afcf159c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.AddUploadPart.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.AddUploadPart.g.cs @@ -134,7 +134,7 @@ partial void ProcessAddUploadPartResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.UploadPart.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.UploadPart.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -165,7 +165,7 @@ partial void ProcessAddUploadPartResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.UploadPart.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.UploadPart.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CancelUpload.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CancelUpload.g.cs index d768e391..b78bd2cd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CancelUpload.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CancelUpload.g.cs @@ -110,7 +110,7 @@ partial void ProcessCancelUploadResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Upload.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.Upload.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -141,7 +141,7 @@ partial void ProcessCancelUploadResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Upload.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Upload.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CompleteUpload.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CompleteUpload.g.cs index 026c31f4..6222a495 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CompleteUpload.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CompleteUpload.g.cs @@ -78,7 +78,7 @@ partial void ProcessCompleteUploadResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -128,7 +128,7 @@ partial void ProcessCompleteUploadResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Upload.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.Upload.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessCompleteUploadResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Upload.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Upload.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CreateUpload.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CreateUpload.g.cs index f6afc32f..52e0e529 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CreateUpload.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CreateUpload.g.cs @@ -81,7 +81,7 @@ partial void ProcessCreateUploadResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -130,7 +130,7 @@ partial void ProcessCreateUploadResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Upload.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.Upload.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -161,7 +161,7 @@ partial void ProcessCreateUploadResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Upload.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Upload.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.g.cs index ecff3248..2d4e3370 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.g.cs @@ -34,7 +34,7 @@ public sealed partial class UploadsClient : global::tryAGI.OpenAI.IUploadsClient /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.AudioSpeeches.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.AudioSpeeches.g.cs index 41a2a7a2..d0da6d68 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.AudioSpeeches.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.AudioSpeeches.g.cs @@ -175,7 +175,7 @@ partial void ProcessAudioSpeechesResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.UsageResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.UsageResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -206,7 +206,7 @@ partial void ProcessAudioSpeechesResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.UsageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.UsageResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.AudioTranscriptions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.AudioTranscriptions.g.cs index e8f5490a..3dd70429 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.AudioTranscriptions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.AudioTranscriptions.g.cs @@ -175,7 +175,7 @@ partial void ProcessAudioTranscriptionsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.UsageResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.UsageResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -206,7 +206,7 @@ partial void ProcessAudioTranscriptionsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.UsageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.UsageResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.CodeInterpreterSessions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.CodeInterpreterSessions.g.cs index 62f4d784..4db5ea00 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.CodeInterpreterSessions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.CodeInterpreterSessions.g.cs @@ -154,7 +154,7 @@ partial void ProcessCodeInterpreterSessionsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.UsageResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.UsageResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -185,7 +185,7 @@ partial void ProcessCodeInterpreterSessionsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.UsageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.UsageResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Completions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Completions.g.cs index e0073202..7c18b8b1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Completions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Completions.g.cs @@ -182,7 +182,7 @@ partial void ProcessCompletionsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.UsageResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.UsageResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -213,7 +213,7 @@ partial void ProcessCompletionsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.UsageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.UsageResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Costs.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Costs.g.cs index f01aa00f..12afbe61 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Costs.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Costs.g.cs @@ -156,7 +156,7 @@ partial void ProcessCostsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.UsageResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.UsageResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -187,7 +187,7 @@ partial void ProcessCostsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.UsageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.UsageResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Embeddings.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Embeddings.g.cs index c6721305..7b9823be 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Embeddings.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Embeddings.g.cs @@ -175,7 +175,7 @@ partial void ProcessEmbeddingsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.UsageResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.UsageResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -206,7 +206,7 @@ partial void ProcessEmbeddingsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.UsageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.UsageResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Images.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Images.g.cs index df52d3da..0ed37abe 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Images.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Images.g.cs @@ -189,7 +189,7 @@ partial void ProcessImagesResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.UsageResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.UsageResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -220,7 +220,7 @@ partial void ProcessImagesResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.UsageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.UsageResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Moderations.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Moderations.g.cs index ba32da9d..67d14eed 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Moderations.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Moderations.g.cs @@ -175,7 +175,7 @@ partial void ProcessModerationsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.UsageResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.UsageResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -206,7 +206,7 @@ partial void ProcessModerationsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.UsageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.UsageResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.VectorStores.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.VectorStores.g.cs index e8f5dae1..df8e74ae 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.VectorStores.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.VectorStores.g.cs @@ -154,7 +154,7 @@ partial void ProcessVectorStoresResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.UsageResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.UsageResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -185,7 +185,7 @@ partial void ProcessVectorStoresResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.UsageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.UsageResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.g.cs index fcb80a22..df57306d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class UsageClient : global::tryAGI.OpenAI.IUsageClient, gl /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.AssignOrganizationRoleToUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.AssignOrganizationRoleToUser.g.cs index deed8c83..5f0b843a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.AssignOrganizationRoleToUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.AssignOrganizationRoleToUser.g.cs @@ -72,7 +72,7 @@ partial void ProcessAssignOrganizationRoleToUserResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -122,7 +122,7 @@ partial void ProcessAssignOrganizationRoleToUserResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.UserRoleAssignment.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.UserRoleAssignment.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessAssignOrganizationRoleToUserResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.UserRoleAssignment.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.UserRoleAssignment.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.ListUserOrganizationRoleAssignments.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.ListUserOrganizationRoleAssignments.g.cs index 721adf95..3e95b102 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.ListUserOrganizationRoleAssignments.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.ListUserOrganizationRoleAssignments.g.cs @@ -130,7 +130,7 @@ partial void ProcessListUserOrganizationRoleAssignmentsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.RoleListResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.RoleListResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -161,7 +161,7 @@ partial void ProcessListUserOrganizationRoleAssignmentsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.RoleListResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.RoleListResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.UnassignOrganizationRoleFromUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.UnassignOrganizationRoleFromUser.g.cs index b45f660b..709311b8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.UnassignOrganizationRoleFromUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.UnassignOrganizationRoleFromUser.g.cs @@ -113,7 +113,7 @@ partial void ProcessUnassignOrganizationRoleFromUserResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.DeletedRoleAssignmentResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.DeletedRoleAssignmentResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessUnassignOrganizationRoleFromUserResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.DeletedRoleAssignmentResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.DeletedRoleAssignmentResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.g.cs index 57caad4c..95be85f9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class UserOrganizationRoleAssignmentsClient : global::tryA /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.DeleteUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.DeleteUser.g.cs index 24b8f22b..52a98304 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.DeleteUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.DeleteUser.g.cs @@ -107,7 +107,7 @@ partial void ProcessDeleteUserResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.UserDeleteResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.UserDeleteResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessDeleteUserResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.UserDeleteResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.UserDeleteResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.ListUsers.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.ListUsers.g.cs index 9537e815..250f2324 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.ListUsers.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.ListUsers.g.cs @@ -126,7 +126,7 @@ partial void ProcessListUsersResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.UserListResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.UserListResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -157,7 +157,7 @@ partial void ProcessListUsersResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.UserListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.UserListResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.ModifyUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.ModifyUser.g.cs index 50fad68e..451f8788 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.ModifyUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.ModifyUser.g.cs @@ -72,7 +72,7 @@ partial void ProcessModifyUserResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -122,7 +122,7 @@ partial void ProcessModifyUserResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.User.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.User.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessModifyUserResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.User.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.User.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.RetrieveUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.RetrieveUser.g.cs index e2fa0e4c..49549562 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.RetrieveUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.RetrieveUser.g.cs @@ -107,7 +107,7 @@ partial void ProcessRetrieveUserResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.User.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.User.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessRetrieveUserResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.User.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.User.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.g.cs index 710f5703..7b663526 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class UsersClient : global::tryAGI.OpenAI.IUsersClient, gl /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CancelVectorStoreFileBatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CancelVectorStoreFileBatch.g.cs index e4eddb30..8e3f70a7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CancelVectorStoreFileBatch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CancelVectorStoreFileBatch.g.cs @@ -113,7 +113,7 @@ partial void ProcessCancelVectorStoreFileBatchResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VectorStoreFileBatchObject.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.VectorStoreFileBatchObject.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessCancelVectorStoreFileBatchResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VectorStoreFileBatchObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VectorStoreFileBatchObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStore.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStore.g.cs index 54bfba61..34f4c5d0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStore.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStore.g.cs @@ -67,7 +67,7 @@ partial void ProcessCreateVectorStoreResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -116,7 +116,7 @@ partial void ProcessCreateVectorStoreResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VectorStoreObject.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.VectorStoreObject.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessCreateVectorStoreResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VectorStoreObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VectorStoreObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStoreFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStoreFile.g.cs index 3c9faa1b..0dadc092 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStoreFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStoreFile.g.cs @@ -76,7 +76,7 @@ partial void ProcessCreateVectorStoreFileResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -126,7 +126,7 @@ partial void ProcessCreateVectorStoreFileResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VectorStoreFileObject.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.VectorStoreFileObject.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -157,7 +157,7 @@ partial void ProcessCreateVectorStoreFileResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VectorStoreFileObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VectorStoreFileObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStoreFileBatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStoreFileBatch.g.cs index 26830ed5..a9744286 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStoreFileBatch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStoreFileBatch.g.cs @@ -77,7 +77,7 @@ partial void ProcessCreateVectorStoreFileBatchResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -127,7 +127,7 @@ partial void ProcessCreateVectorStoreFileBatchResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VectorStoreFileBatchObject.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.VectorStoreFileBatchObject.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -158,7 +158,7 @@ partial void ProcessCreateVectorStoreFileBatchResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VectorStoreFileBatchObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VectorStoreFileBatchObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.DeleteVectorStore.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.DeleteVectorStore.g.cs index 65ce9a28..8deaa3cd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.DeleteVectorStore.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.DeleteVectorStore.g.cs @@ -107,7 +107,7 @@ partial void ProcessDeleteVectorStoreResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.DeleteVectorStoreResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.DeleteVectorStoreResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessDeleteVectorStoreResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.DeleteVectorStoreResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.DeleteVectorStoreResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.DeleteVectorStoreFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.DeleteVectorStoreFile.g.cs index 3fe6c058..f08d5f73 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.DeleteVectorStoreFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.DeleteVectorStoreFile.g.cs @@ -113,7 +113,7 @@ partial void ProcessDeleteVectorStoreFileResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.DeleteVectorStoreFileResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.DeleteVectorStoreFileResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessDeleteVectorStoreFileResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.DeleteVectorStoreFileResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.DeleteVectorStoreFileResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStoreFiles.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStoreFiles.g.cs index d2c722fd..9303eb9d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStoreFiles.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStoreFiles.g.cs @@ -148,7 +148,7 @@ partial void ProcessListVectorStoreFilesResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListVectorStoreFilesResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ListVectorStoreFilesResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -179,7 +179,7 @@ partial void ProcessListVectorStoreFilesResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListVectorStoreFilesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListVectorStoreFilesResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStoreFilesInABatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStoreFilesInABatch.g.cs index 1e3522cc..d068c279 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStoreFilesInABatch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStoreFilesInABatch.g.cs @@ -154,7 +154,7 @@ partial void ProcessListVectorStoreFilesInABatchResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListVectorStoreFilesResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ListVectorStoreFilesResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -185,7 +185,7 @@ partial void ProcessListVectorStoreFilesInABatchResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListVectorStoreFilesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListVectorStoreFilesResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStores.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStores.g.cs index 2ad67145..cc1cb8e4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStores.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStores.g.cs @@ -135,7 +135,7 @@ partial void ProcessListVectorStoresResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListVectorStoresResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.ListVectorStoresResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -166,7 +166,7 @@ partial void ProcessListVectorStoresResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListVectorStoresResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListVectorStoresResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ModifyVectorStore.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ModifyVectorStore.g.cs index 636a6be8..5ed32431 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ModifyVectorStore.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ModifyVectorStore.g.cs @@ -72,7 +72,7 @@ partial void ProcessModifyVectorStoreResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -122,7 +122,7 @@ partial void ProcessModifyVectorStoreResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VectorStoreObject.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.VectorStoreObject.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessModifyVectorStoreResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VectorStoreObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VectorStoreObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStore.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStore.g.cs index 18237ec1..327230a6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStore.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStore.g.cs @@ -107,7 +107,7 @@ partial void ProcessRetrieveVectorStoreResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VectorStoreObject.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.VectorStoreObject.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessRetrieveVectorStoreResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VectorStoreObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VectorStoreObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFile.g.cs index 9c6440f5..2c4c3568 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFile.g.cs @@ -117,7 +117,7 @@ partial void ProcessRetrieveVectorStoreFileResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VectorStoreFileObject.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.VectorStoreFileObject.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessRetrieveVectorStoreFileResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VectorStoreFileObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VectorStoreFileObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFileBatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFileBatch.g.cs index e693fb9b..f3522ef2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFileBatch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFileBatch.g.cs @@ -117,7 +117,7 @@ partial void ProcessRetrieveVectorStoreFileBatchResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VectorStoreFileBatchObject.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.VectorStoreFileBatchObject.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessRetrieveVectorStoreFileBatchResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VectorStoreFileBatchObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VectorStoreFileBatchObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFileContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFileContent.g.cs index b34bd7a8..052e1352 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFileContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFileContent.g.cs @@ -117,7 +117,7 @@ partial void ProcessRetrieveVectorStoreFileContentResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VectorStoreFileContentResponse.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.VectorStoreFileContentResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessRetrieveVectorStoreFileContentResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VectorStoreFileContentResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VectorStoreFileContentResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.SearchVectorStore.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.SearchVectorStore.g.cs index 464e1e85..e12bc466 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.SearchVectorStore.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.SearchVectorStore.g.cs @@ -74,7 +74,7 @@ partial void ProcessSearchVectorStoreResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -124,7 +124,7 @@ partial void ProcessSearchVectorStoreResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VectorStoreSearchResultsPage.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.VectorStoreSearchResultsPage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -155,7 +155,7 @@ partial void ProcessSearchVectorStoreResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VectorStoreSearchResultsPage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VectorStoreSearchResultsPage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.UpdateVectorStoreFileAttributes.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.UpdateVectorStoreFileAttributes.g.cs index e722b1ca..92e25b2c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.UpdateVectorStoreFileAttributes.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.UpdateVectorStoreFileAttributes.g.cs @@ -81,7 +81,7 @@ partial void ProcessUpdateVectorStoreFileAttributesResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -132,7 +132,7 @@ partial void ProcessUpdateVectorStoreFileAttributesResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VectorStoreFileObject.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.VectorStoreFileObject.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -163,7 +163,7 @@ partial void ProcessUpdateVectorStoreFileAttributesResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VectorStoreFileObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VectorStoreFileObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.g.cs index 6598c8c1..145964ae 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class VectorStoresClient : global::tryAGI.OpenAI.IVectorSt /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideo.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideo.g.cs index 72fe6512..54360169 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideo.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideo.g.cs @@ -143,7 +143,7 @@ partial void ProcessCreateVideoResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VideoResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.VideoResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -174,7 +174,7 @@ partial void ProcessCreateVideoResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VideoResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VideoResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideoCharacter.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideoCharacter.g.cs index adbfeec3..e65cd1df 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideoCharacter.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideoCharacter.g.cs @@ -124,7 +124,7 @@ partial void ProcessCreateVideoCharacterResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VideoCharacterResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.VideoCharacterResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -155,7 +155,7 @@ partial void ProcessCreateVideoCharacterResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VideoCharacterResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VideoCharacterResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideoEdit.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideoEdit.g.cs index e4bf4267..fa788062 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideoEdit.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideoEdit.g.cs @@ -118,7 +118,7 @@ partial void ProcessCreateVideoEditResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VideoResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.VideoResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -149,7 +149,7 @@ partial void ProcessCreateVideoEditResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VideoResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VideoResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideoExtend.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideoExtend.g.cs index ad715e55..5ba5257a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideoExtend.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideoExtend.g.cs @@ -121,7 +121,7 @@ partial void ProcessCreateVideoExtendResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VideoResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.VideoResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -152,7 +152,7 @@ partial void ProcessCreateVideoExtendResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VideoResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VideoResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.DeleteVideo.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.DeleteVideo.g.cs index 5c83ae37..4956e8be 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.DeleteVideo.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.DeleteVideo.g.cs @@ -109,7 +109,7 @@ partial void ProcessDeleteVideoResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.DeletedVideoResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.DeletedVideoResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -140,7 +140,7 @@ partial void ProcessDeleteVideoResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.DeletedVideoResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.DeletedVideoResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.GetVideoCharacter.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.GetVideoCharacter.g.cs index 54ea4f5f..798f4b25 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.GetVideoCharacter.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.GetVideoCharacter.g.cs @@ -109,7 +109,7 @@ partial void ProcessGetVideoCharacterResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VideoCharacterResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.VideoCharacterResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -140,7 +140,7 @@ partial void ProcessGetVideoCharacterResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VideoCharacterResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VideoCharacterResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.ListVideos.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.ListVideos.g.cs index caf277ac..b202b82a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.ListVideos.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.ListVideos.g.cs @@ -126,7 +126,7 @@ partial void ProcessListVideosResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VideoListResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.VideoListResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -157,7 +157,7 @@ partial void ProcessListVideosResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VideoListResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VideoListResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.RemixVideo.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.RemixVideo.g.cs index 6bcdb3f1..635ee11a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.RemixVideo.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.RemixVideo.g.cs @@ -126,7 +126,7 @@ partial void ProcessRemixVideoResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VideoResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.VideoResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -157,7 +157,7 @@ partial void ProcessRemixVideoResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VideoResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VideoResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.RetrieveVideo.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.RetrieveVideo.g.cs index 489fb243..2a546c00 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.RetrieveVideo.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.RetrieveVideo.g.cs @@ -109,7 +109,7 @@ partial void ProcessRetrieveVideoResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VideoResource.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.VideoResource.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -140,7 +140,7 @@ partial void ProcessRetrieveVideoResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VideoResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VideoResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.g.cs index 487d6084..26577cfa 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class VideosClient : global::tryAGI.OpenAI.IVideosClient, /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); ///