From 554094b88ca841ce55243590a126da66924c4a66 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 26 Oct 2026 04:13:27 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...rsClient.DownloadContainerFileContent.g.cs | 597 +++++++++++++ .../OpenRouter.FilesClient.Download.g.cs | 644 +++++++++++++++ ...rsClient.DownloadContainerFileContent.g.cs | 21 + .../OpenRouter.IFilesClient.Download.g.cs | 25 + .../OpenRouter.ITtsClient.CreateSpeech.g.cs | 14 + ...VideoGenerationClient.GetVideoContent.g.cs | 20 + ...Converters.AnthropicToolSearchContent.g.cs | 22 +- ...outer.JsonConverters.ChatContentItems.g.cs | 22 +- ...penRouter.JsonConverters.StreamEvents.g.cs | 22 +- ...ter.Models.AnthropicToolSearchContent.g.cs | 110 +-- .../OpenRouter.Models.ChatContentItems.g.cs | 110 +-- .../OpenRouter.Models.StreamEvents.g.cs | 110 +-- .../Generated/OpenRouter.ResponseStream.g.cs | 66 +- .../OpenRouter.TtsClient.CreateSpeech.g.cs | 781 ++++++++++++++++++ ...VideoGenerationClient.GetVideoContent.g.cs | 636 ++++++++++++++ 15 files changed, 2980 insertions(+), 220 deletions(-) diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ContainersClient.DownloadContainerFileContent.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ContainersClient.DownloadContainerFileContent.g.cs index 925892b6a..f68d71a90 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.ContainersClient.DownloadContainerFileContent.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.ContainersClient.DownloadContainerFileContent.g.cs @@ -619,6 +619,603 @@ partial void ProcessDownloadContainerFileContentResponseContent( return new global::OpenRouter.ResponseStream(__response, __content); } + catch (global::System.OperationCanceledException) + { + throw; + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + } + catch + { + __response.Dispose(); + throw; + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Download container file content
+ /// Streams the raw bytes of a file in a container. + ///
+ /// + /// The canonical container id, exactly as returned in a bash/shell tool result — a restarted session has its own `-r<nonce>`-suffixed id. A session-derived id is always `sess_` + the sanitized session key, which is not necessarily the raw session id that was sent.
+ /// Example: sess_abc123 + /// + /// + /// Container file id (`cfile_` + base64url of the file path).
+ /// Example: cfile_b3V0L3JlcG9ydC5jc3Y + /// + /// The response metadata and an unbuffered body stream. The caller must dispose Body to release the HTTP response. + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> DownloadContainerFileContentAsStreamAsResponseAsync( + string containerId, + string fileId, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareDownloadContainerFileContentArguments( + httpClient: HttpClient, + containerId: ref containerId, + fileId: ref fileId); + + + var __authorizations = global::OpenRouter.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DownloadContainerFileContentSecurityRequirements, + operationName: "DownloadContainerFileContentAsync"); + + using var __timeoutCancellationTokenSource = global::OpenRouter.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::OpenRouter.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::OpenRouter.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::OpenRouter.PathBuilder( + path: $"/containers/{containerId}/files/{fileId}/content", + baseUri: HttpClient.BaseAddress ?? new global::System.Uri("https://openrouter.ai/api/v1", global::System.UriKind.RelativeOrAbsolute)); + var __path = __pathBuilder.ToString(); + __path = global::OpenRouter.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::OpenRouter.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareDownloadContainerFileContentRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + containerId: containerId, + fileId: fileId); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DownloadContainerFileContent", + methodName: "DownloadContainerFileContentAsync", + pathTemplate: "$\"/containers/{containerId}/files/{fileId}/content\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseHeadersRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DownloadContainerFileContent", + methodName: "DownloadContainerFileContentAsync", + pathTemplate: "$\"/containers/{containerId}/files/{fileId}/content\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::OpenRouter.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DownloadContainerFileContent", + methodName: "DownloadContainerFileContentAsync", + pathTemplate: "$\"/containers/{containerId}/files/{fileId}/content\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + try + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessDownloadContainerFileContentResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DownloadContainerFileContent", + methodName: "DownloadContainerFileContentAsync", + pathTemplate: "$\"/containers/{containerId}/files/{fileId}/content\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DownloadContainerFileContent", + methodName: "DownloadContainerFileContentAsync", + pathTemplate: "$\"/containers/{containerId}/files/{fileId}/content\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Bad Request - Invalid request parameters or malformed input + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::OpenRouter.BadRequestResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::OpenRouter.BadRequestResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::OpenRouter.BadRequestResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Unauthorized - Authentication required or invalid credentials + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::OpenRouter.UnauthorizedResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Forbidden - Authentication successful but insufficient permissions + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::OpenRouter.ForbiddenResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::OpenRouter.ForbiddenResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::OpenRouter.ForbiddenResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Not Found - Resource does not exist + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::OpenRouter.NotFoundResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::OpenRouter.NotFoundResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::OpenRouter.NotFoundResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too Many Requests - Rate limit exceeded + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::OpenRouter.TooManyRequestsResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::OpenRouter.TooManyRequestsResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::OpenRouter.TooManyRequestsResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Internal Server Error - Unexpected server error + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::OpenRouter.InternalServerResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Service Unavailable - Service temporarily unavailable + if ((int)__response.StatusCode == 503) + { + string? __content_503 = null; + global::System.Exception? __exception_503 = null; + global::OpenRouter.ServiceUnavailableResponse? __value_503 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_503 = global::OpenRouter.ServiceUnavailableResponse.FromJson(__content_503, JsonSerializerContext); + } + else + { + __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_503 = global::OpenRouter.ServiceUnavailableResponse.FromJson(__content_503, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_503 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_503, + responseBody: __content_503, + responseObject: __value_503, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + return new global::OpenRouter.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::OpenRouter.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: new global::OpenRouter.ResponseStream(__response, __content)); + } + catch (global::System.OperationCanceledException) + { + throw; + } catch (global::System.Exception __ex) { string? __content = null; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.FilesClient.Download.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.FilesClient.Download.g.cs index 1c8cf51c8..041ae6707 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.FilesClient.Download.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.FilesClient.Download.g.cs @@ -673,6 +673,650 @@ partial void ProcessDownloadResponseContent( return new global::OpenRouter.ResponseStream(__response, __content); } + catch (global::System.OperationCanceledException) + { + throw; + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + } + catch + { + __response.Dispose(); + throw; + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Download file content
+ /// Downloads the raw bytes of a file. Only files created server-side are downloadable; uploaded files return 400. + ///
+ /// + /// Example: or_file_011CNha8iCJcU1wXNR6q4V8w + /// + /// + /// Workspace to scope the request to. Defaults to the caller’s default workspace.
+ /// Example: a103d8b6-42f0-4e50-9a3c-bf41e2c3c1a7 + /// + /// + /// Store or read this file on the named provider using your own API key for it. Omit to use OpenRouter storage.
+ /// Example: openai + /// + /// The response metadata and an unbuffered body stream. The caller must dispose Body to release the HTTP response. + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> DownloadAsStreamAsResponseAsync( + string fileId, + global::System.Guid? workspaceId = default, + global::OpenRouter.FileProvider? provider = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareDownloadArguments( + httpClient: HttpClient, + fileId: ref fileId, + workspaceId: ref workspaceId, + provider: ref provider); + + + var __authorizations = global::OpenRouter.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DownloadSecurityRequirements, + operationName: "DownloadAsync"); + + using var __timeoutCancellationTokenSource = global::OpenRouter.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::OpenRouter.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::OpenRouter.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::OpenRouter.PathBuilder( + path: $"/files/{fileId}/content", + baseUri: HttpClient.BaseAddress ?? new global::System.Uri("https://openrouter.ai/api/v1", global::System.UriKind.RelativeOrAbsolute)); + __pathBuilder + .AddOptionalParameter("workspace_id", workspaceId?.ToString()) + .AddOptionalParameter("provider", provider?.ToValueString()) + ; + var __path = __pathBuilder.ToString(); + __path = global::OpenRouter.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::OpenRouter.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareDownloadRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + fileId: fileId, + workspaceId: workspaceId, + provider: provider); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "Download", + methodName: "DownloadAsync", + pathTemplate: "$\"/files/{fileId}/content\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseHeadersRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "Download", + methodName: "DownloadAsync", + pathTemplate: "$\"/files/{fileId}/content\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::OpenRouter.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "Download", + methodName: "DownloadAsync", + pathTemplate: "$\"/files/{fileId}/content\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + try + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessDownloadResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "Download", + methodName: "DownloadAsync", + pathTemplate: "$\"/files/{fileId}/content\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "Download", + methodName: "DownloadAsync", + pathTemplate: "$\"/files/{fileId}/content\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Bad Request - Invalid request parameters or malformed input + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::OpenRouter.BadRequestResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::OpenRouter.BadRequestResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::OpenRouter.BadRequestResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Unauthorized - Authentication required or invalid credentials + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::OpenRouter.UnauthorizedResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Forbidden - Authentication successful but insufficient permissions + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::OpenRouter.ForbiddenResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::OpenRouter.ForbiddenResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::OpenRouter.ForbiddenResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Not Found - Resource does not exist + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::OpenRouter.NotFoundResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::OpenRouter.NotFoundResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::OpenRouter.NotFoundResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too Many Requests - Rate limit exceeded + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::OpenRouter.TooManyRequestsResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::OpenRouter.TooManyRequestsResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::OpenRouter.TooManyRequestsResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Internal Server Error - Unexpected server error + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::OpenRouter.InternalServerResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Bad Gateway - Provider/upstream API failure + if ((int)__response.StatusCode == 502) + { + string? __content_502 = null; + global::System.Exception? __exception_502 = null; + global::OpenRouter.BadGatewayResponse? __value_502 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_502 = global::OpenRouter.BadGatewayResponse.FromJson(__content_502, JsonSerializerContext); + } + else + { + __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_502 = global::OpenRouter.BadGatewayResponse.FromJson(__content_502, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_502 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_502 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_502, + responseBody: __content_502, + responseObject: __value_502, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Service Unavailable - Service temporarily unavailable + if ((int)__response.StatusCode == 503) + { + string? __content_503 = null; + global::System.Exception? __exception_503 = null; + global::OpenRouter.ServiceUnavailableResponse? __value_503 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_503 = global::OpenRouter.ServiceUnavailableResponse.FromJson(__content_503, JsonSerializerContext); + } + else + { + __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_503 = global::OpenRouter.ServiceUnavailableResponse.FromJson(__content_503, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_503 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_503, + responseBody: __content_503, + responseObject: __value_503, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + return new global::OpenRouter.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::OpenRouter.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: new global::OpenRouter.ResponseStream(__response, __content)); + } + catch (global::System.OperationCanceledException) + { + throw; + } catch (global::System.Exception __ex) { string? __content = null; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IContainersClient.DownloadContainerFileContent.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IContainersClient.DownloadContainerFileContent.g.cs index 629c93e43..57a0380f2 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IContainersClient.DownloadContainerFileContent.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IContainersClient.DownloadContainerFileContent.g.cs @@ -56,6 +56,27 @@ public partial interface IContainersClient /// Container file id (`cfile_` + base64url of the file path).
/// Example: cfile_b3V0L3JlcG9ydC5jc3Y /// + /// The response metadata and an unbuffered body stream. The caller must dispose Body to release the HTTP response. + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> DownloadContainerFileContentAsStreamAsResponseAsync( + string containerId, + string fileId, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Download container file content
+ /// Streams the raw bytes of a file in a container. + ///
+ /// + /// The canonical container id, exactly as returned in a bash/shell tool result — a restarted session has its own `-r<nonce>`-suffixed id. A session-derived id is always `sess_` + the sanitized session key, which is not necessarily the raw session id that was sent.
+ /// Example: sess_abc123 + /// + /// + /// Container file id (`cfile_` + base64url of the file path).
+ /// Example: cfile_b3V0L3JlcG9ydC5jc3Y + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IFilesClient.Download.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IFilesClient.Download.g.cs index 3253cfbe4..059820854 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IFilesClient.Download.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IFilesClient.Download.g.cs @@ -67,6 +67,31 @@ public partial interface IFilesClient /// Store or read this file on the named provider using your own API key for it. Omit to use OpenRouter storage.
/// Example: openai /// + /// The response metadata and an unbuffered body stream. The caller must dispose Body to release the HTTP response. + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> DownloadAsStreamAsResponseAsync( + string fileId, + global::System.Guid? workspaceId = default, + global::OpenRouter.FileProvider? provider = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Download file content
+ /// Downloads the raw bytes of a file. Only files created server-side are downloadable; uploaded files return 400. + ///
+ /// + /// Example: or_file_011CNha8iCJcU1wXNR6q4V8w + /// + /// + /// Workspace to scope the request to. Defaults to the caller’s default workspace.
+ /// Example: a103d8b6-42f0-4e50-9a3c-bf41e2c3c1a7 + /// + /// + /// Store or read this file on the named provider using your own API key for it. Omit to use OpenRouter storage.
+ /// Example: openai + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ITtsClient.CreateSpeech.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ITtsClient.CreateSpeech.g.cs index 636d687ac..93867ef0e 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.ITtsClient.CreateSpeech.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.ITtsClient.CreateSpeech.g.cs @@ -35,6 +35,20 @@ public partial interface ITtsClient /// Synthesizes audio from the input text. Returns a raw audio bytestream in the requested format (e.g. mp3, pcm, wav). /// /// + /// The response metadata and an unbuffered body stream. The caller must dispose Body to release the HTTP response. + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> CreateSpeechAsStreamAsResponseAsync( + + global::OpenRouter.SpeechRequest request, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Create speech
+ /// Synthesizes audio from the input text. Returns a raw audio bytestream in the requested format (e.g. mp3, pcm, wav). + ///
+ /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IVideoGenerationClient.GetVideoContent.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IVideoGenerationClient.GetVideoContent.g.cs index 5b8e405fc..6091999b8 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IVideoGenerationClient.GetVideoContent.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IVideoGenerationClient.GetVideoContent.g.cs @@ -53,6 +53,26 @@ public partial interface IVideoGenerationClient /// Default Value: 0
/// Example: 0 /// + /// The response metadata and an unbuffered body stream. The caller must dispose Body to release the HTTP response. + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> GetVideoContentAsStreamAsResponseAsync( + string jobId, + int? index = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Download generated video content
+ /// Streams the generated video content from the upstream provider + ///
+ /// + /// Example: job-abc123 + /// + /// + /// Default Value: 0
+ /// Example: 0 + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicToolSearchContent.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicToolSearchContent.g.cs index ce714614a..e55abc659 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicToolSearchContent.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicToolSearchContent.g.cs @@ -21,26 +21,26 @@ public class AnthropicToolSearchContentJsonConverter : global::System.Text.Json. throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.AnthropicToolSearchContentDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::OpenRouter.AnthropicToolSearchResultError? toolSearchToolResultError1 = default; + global::OpenRouter.AnthropicToolSearchResultError? toolSearchToolResultError = default; if (discriminator?.Type == global::OpenRouter.AnthropicToolSearchContentDiscriminatorType.ToolSearchToolResultError) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.AnthropicToolSearchResultError), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.AnthropicToolSearchResultError)}"); - toolSearchToolResultError1 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + toolSearchToolResultError = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.AnthropicToolSearchResult? toolSearchToolResultError2 = default; - if (discriminator?.Type == global::OpenRouter.AnthropicToolSearchContentDiscriminatorType.ToolSearchToolResultError) + global::OpenRouter.AnthropicToolSearchResult? toolSearchToolSearchResult = default; + if (discriminator?.Type == global::OpenRouter.AnthropicToolSearchContentDiscriminatorType.ToolSearchToolSearchResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.AnthropicToolSearchResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.AnthropicToolSearchResult)}"); - toolSearchToolResultError2 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + toolSearchToolSearchResult = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::OpenRouter.AnthropicToolSearchContent( discriminator?.Type, - toolSearchToolResultError1, + toolSearchToolResultError, - toolSearchToolResultError2 + toolSearchToolSearchResult ); return __value; @@ -55,17 +55,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsToolSearchToolResultError1) + if (value.IsToolSearchToolResultError) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.AnthropicToolSearchResultError), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.AnthropicToolSearchResultError).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickToolSearchToolResultError1(), typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickToolSearchToolResultError(), typeInfo); } - else if (value.IsToolSearchToolResultError2) + else if (value.IsToolSearchToolSearchResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.AnthropicToolSearchResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.AnthropicToolSearchResult).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickToolSearchToolResultError2(), typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickToolSearchToolSearchResult(), typeInfo); } } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatContentItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatContentItems.g.cs index 66f2b653d..b723911a0 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatContentItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatContentItems.g.cs @@ -42,19 +42,19 @@ public class ChatContentItemsJsonConverter : global::System.Text.Json.Serializat throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ChatContentAudio)}"); inputAudio = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.LegacyChatContentVideo? inputVideo1 = default; + global::OpenRouter.LegacyChatContentVideo? inputVideo = default; if (discriminator?.Type == global::OpenRouter.ChatContentItemsDiscriminatorType.InputVideo) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.LegacyChatContentVideo), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.LegacyChatContentVideo)}"); - inputVideo1 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + inputVideo = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.ChatContentVideo? inputVideo2 = default; - if (discriminator?.Type == global::OpenRouter.ChatContentItemsDiscriminatorType.InputVideo) + global::OpenRouter.ChatContentVideo? videoUrl = default; + if (discriminator?.Type == global::OpenRouter.ChatContentItemsDiscriminatorType.VideoUrl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ChatContentVideo), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ChatContentVideo)}"); - inputVideo2 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + videoUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } global::OpenRouter.ChatContentFile? file = default; if (discriminator?.Type == global::OpenRouter.ChatContentItemsDiscriminatorType.File) @@ -72,9 +72,9 @@ public class ChatContentItemsJsonConverter : global::System.Text.Json.Serializat inputAudio, - inputVideo1, + inputVideo, - inputVideo2, + videoUrl, file ); @@ -109,17 +109,17 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ChatContentAudio).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputAudio(), typeInfo); } - else if (value.IsInputVideo1) + else if (value.IsInputVideo) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.LegacyChatContentVideo), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.LegacyChatContentVideo).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputVideo1(), typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputVideo(), typeInfo); } - else if (value.IsInputVideo2) + else if (value.IsVideoUrl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ChatContentVideo), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ChatContentVideo).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputVideo2(), typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVideoUrl(), typeInfo); } else if (value.IsFile) { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.StreamEvents.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.StreamEvents.g.cs index b62ae17aa..ed377f968 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.StreamEvents.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.StreamEvents.g.cs @@ -140,12 +140,12 @@ public class StreamEventsJsonConverter : global::System.Text.Json.Serialization. throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.FunctionCallArgsDoneEvent)}"); responseFunctionCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.ReasoningDeltaEvent? responseFusionCallPanelReasoningDelta1 = default; - if (discriminator?.Type == global::OpenRouter.StreamEventsDiscriminatorType.ResponseFusionCallPanelReasoningDelta) + global::OpenRouter.ReasoningDeltaEvent? responseReasoningTextDelta = default; + if (discriminator?.Type == global::OpenRouter.StreamEventsDiscriminatorType.ResponseReasoningTextDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ReasoningDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ReasoningDeltaEvent)}"); - responseFusionCallPanelReasoningDelta1 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + responseReasoningTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } global::OpenRouter.ReasoningDoneEvent? responseReasoningTextDone = default; if (discriminator?.Type == global::OpenRouter.StreamEventsDiscriminatorType.ResponseReasoningTextDone) @@ -315,12 +315,12 @@ public class StreamEventsJsonConverter : global::System.Text.Json.Serialization. throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.FusionCallPanelDeltaEvent)}"); responseFusionCallPanelDelta = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.FusionCallPanelReasoningDeltaEvent? responseFusionCallPanelReasoningDelta2 = default; + global::OpenRouter.FusionCallPanelReasoningDeltaEvent? responseFusionCallPanelReasoningDelta = default; if (discriminator?.Type == global::OpenRouter.StreamEventsDiscriminatorType.ResponseFusionCallPanelReasoningDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.FusionCallPanelReasoningDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.FusionCallPanelReasoningDeltaEvent)}"); - responseFusionCallPanelReasoningDelta2 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + responseFusionCallPanelReasoningDelta = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } global::OpenRouter.FusionCallPanelCompletedEvent? responseFusionCallPanelCompleted = default; if (discriminator?.Type == global::OpenRouter.StreamEventsDiscriminatorType.ResponseFusionCallPanelCompleted) @@ -401,7 +401,7 @@ public class StreamEventsJsonConverter : global::System.Text.Json.Serialization. responseFunctionCallArgumentsDone, - responseFusionCallPanelReasoningDelta1, + responseReasoningTextDelta, responseReasoningTextDone, @@ -451,7 +451,7 @@ public class StreamEventsJsonConverter : global::System.Text.Json.Serialization. responseFusionCallPanelDelta, - responseFusionCallPanelReasoningDelta2, + responseFusionCallPanelReasoningDelta, responseFusionCallPanelCompleted, @@ -580,11 +580,11 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.FunctionCallArgsDoneEvent).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseFunctionCallArgumentsDone(), typeInfo); } - else if (value.IsResponseFusionCallPanelReasoningDelta1) + else if (value.IsResponseReasoningTextDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ReasoningDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ReasoningDeltaEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseFusionCallPanelReasoningDelta1(), typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseReasoningTextDelta(), typeInfo); } else if (value.IsResponseReasoningTextDone) { @@ -730,11 +730,11 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.FusionCallPanelDeltaEvent).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseFusionCallPanelDelta(), typeInfo); } - else if (value.IsResponseFusionCallPanelReasoningDelta2) + else if (value.IsResponseFusionCallPanelReasoningDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.FusionCallPanelReasoningDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.FusionCallPanelReasoningDeltaEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseFusionCallPanelReasoningDelta2(), typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseFusionCallPanelReasoningDelta(), typeInfo); } else if (value.IsResponseFusionCallPanelCompleted) { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AnthropicToolSearchContent.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnthropicToolSearchContent.g.cs index 88678451a..223ed0bfb 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.AnthropicToolSearchContent.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnthropicToolSearchContent.g.cs @@ -18,75 +18,75 @@ namespace OpenRouter /// Example: {"error_code":"unavailable","error_message":null,"type":"tool_search_tool_result_error"} /// #if NET6_0_OR_GREATER - public global::OpenRouter.AnthropicToolSearchResultError? ToolSearchToolResultError1 { get; init; } + public global::OpenRouter.AnthropicToolSearchResultError? ToolSearchToolResultError { get; init; } #else - public global::OpenRouter.AnthropicToolSearchResultError? ToolSearchToolResultError1 { get; } + public global::OpenRouter.AnthropicToolSearchResultError? ToolSearchToolResultError { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ToolSearchToolResultError1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ToolSearchToolResultError))] #endif - public bool IsToolSearchToolResultError1 => ToolSearchToolResultError1 != null; + public bool IsToolSearchToolResultError => ToolSearchToolResultError != null; /// /// /// - public bool TryPickToolSearchToolResultError1( + public bool TryPickToolSearchToolResultError( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif out global::OpenRouter.AnthropicToolSearchResultError? value) { - value = ToolSearchToolResultError1; - return IsToolSearchToolResultError1; + value = ToolSearchToolResultError; + return IsToolSearchToolResultError; } /// /// /// - public global::OpenRouter.AnthropicToolSearchResultError PickToolSearchToolResultError1() => ToolSearchToolResultError1 is { } value + public global::OpenRouter.AnthropicToolSearchResultError PickToolSearchToolResultError() => ToolSearchToolResultError is { } value ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'ToolSearchToolResultError1' but the value was {ToString()}."); + : throw new global::System.InvalidOperationException($"Expected union variant 'ToolSearchToolResultError' but the value was {ToString()}."); /// /// Example: {"tool_references":[{"tool_name":"my_tool","type":"tool_reference"}],"type":"tool_search_tool_search_result"} /// #if NET6_0_OR_GREATER - public global::OpenRouter.AnthropicToolSearchResult? ToolSearchToolResultError2 { get; init; } + public global::OpenRouter.AnthropicToolSearchResult? ToolSearchToolSearchResult { get; init; } #else - public global::OpenRouter.AnthropicToolSearchResult? ToolSearchToolResultError2 { get; } + public global::OpenRouter.AnthropicToolSearchResult? ToolSearchToolSearchResult { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ToolSearchToolResultError2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ToolSearchToolSearchResult))] #endif - public bool IsToolSearchToolResultError2 => ToolSearchToolResultError2 != null; + public bool IsToolSearchToolSearchResult => ToolSearchToolSearchResult != null; /// /// /// - public bool TryPickToolSearchToolResultError2( + public bool TryPickToolSearchToolSearchResult( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif out global::OpenRouter.AnthropicToolSearchResult? value) { - value = ToolSearchToolResultError2; - return IsToolSearchToolResultError2; + value = ToolSearchToolSearchResult; + return IsToolSearchToolSearchResult; } /// /// /// - public global::OpenRouter.AnthropicToolSearchResult PickToolSearchToolResultError2() => ToolSearchToolResultError2 is { } value + public global::OpenRouter.AnthropicToolSearchResult PickToolSearchToolSearchResult() => ToolSearchToolSearchResult is { } value ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'ToolSearchToolResultError2' but the value was {ToString()}."); + : throw new global::System.InvalidOperationException($"Expected union variant 'ToolSearchToolSearchResult' but the value was {ToString()}."); /// /// /// @@ -95,20 +95,20 @@ public bool TryPickToolSearchToolResultError2( /// /// /// - public static implicit operator global::OpenRouter.AnthropicToolSearchResultError?(AnthropicToolSearchContent @this) => @this.ToolSearchToolResultError1; + public static implicit operator global::OpenRouter.AnthropicToolSearchResultError?(AnthropicToolSearchContent @this) => @this.ToolSearchToolResultError; /// /// /// public AnthropicToolSearchContent(global::OpenRouter.AnthropicToolSearchResultError? value) { - ToolSearchToolResultError1 = value; + ToolSearchToolResultError = value; } /// /// /// - public static AnthropicToolSearchContent FromToolSearchToolResultError1(global::OpenRouter.AnthropicToolSearchResultError? value) => new AnthropicToolSearchContent(value); + public static AnthropicToolSearchContent FromToolSearchToolResultError(global::OpenRouter.AnthropicToolSearchResultError? value) => new AnthropicToolSearchContent(value); /// /// @@ -118,50 +118,50 @@ public AnthropicToolSearchContent(global::OpenRouter.AnthropicToolSearchResultEr /// /// /// - public static implicit operator global::OpenRouter.AnthropicToolSearchResult?(AnthropicToolSearchContent @this) => @this.ToolSearchToolResultError2; + public static implicit operator global::OpenRouter.AnthropicToolSearchResult?(AnthropicToolSearchContent @this) => @this.ToolSearchToolSearchResult; /// /// /// public AnthropicToolSearchContent(global::OpenRouter.AnthropicToolSearchResult? value) { - ToolSearchToolResultError2 = value; + ToolSearchToolSearchResult = value; } /// /// /// - public static AnthropicToolSearchContent FromToolSearchToolResultError2(global::OpenRouter.AnthropicToolSearchResult? value) => new AnthropicToolSearchContent(value); + public static AnthropicToolSearchContent FromToolSearchToolSearchResult(global::OpenRouter.AnthropicToolSearchResult? value) => new AnthropicToolSearchContent(value); /// /// /// public AnthropicToolSearchContent( global::OpenRouter.AnthropicToolSearchContentDiscriminatorType? type, - global::OpenRouter.AnthropicToolSearchResultError? toolSearchToolResultError1, - global::OpenRouter.AnthropicToolSearchResult? toolSearchToolResultError2 + global::OpenRouter.AnthropicToolSearchResultError? toolSearchToolResultError, + global::OpenRouter.AnthropicToolSearchResult? toolSearchToolSearchResult ) { Type = type; - ToolSearchToolResultError1 = toolSearchToolResultError1; - ToolSearchToolResultError2 = toolSearchToolResultError2; + ToolSearchToolResultError = toolSearchToolResultError; + ToolSearchToolSearchResult = toolSearchToolSearchResult; } /// /// /// public object? Object => - ToolSearchToolResultError2 as object ?? - ToolSearchToolResultError1 as object + ToolSearchToolSearchResult as object ?? + ToolSearchToolResultError as object ; /// /// /// public override string? ToString() => - ToolSearchToolResultError1?.ToString() ?? - ToolSearchToolResultError2?.ToString() + ToolSearchToolResultError?.ToString() ?? + ToolSearchToolSearchResult?.ToString() ; /// @@ -169,15 +169,15 @@ ToolSearchToolResultError1 as object /// public bool Validate() { - return IsToolSearchToolResultError1 && !IsToolSearchToolResultError2 || !IsToolSearchToolResultError1 && IsToolSearchToolResultError2; + return IsToolSearchToolResultError && !IsToolSearchToolSearchResult || !IsToolSearchToolResultError && IsToolSearchToolSearchResult; } /// /// /// public TResult? Match( - global::System.Func? toolSearchToolResultError1 = null, - global::System.Func? toolSearchToolResultError2 = null, + global::System.Func? toolSearchToolResultError = null, + global::System.Func? toolSearchToolSearchResult = null, bool validate = true) { if (validate) @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (ToolSearchToolResultError1 is { } __value0 && toolSearchToolResultError1 != null) + if (ToolSearchToolResultError is { } __value0 && toolSearchToolResultError != null) { - return toolSearchToolResultError1(__value0); + return toolSearchToolResultError(__value0); } - else if (ToolSearchToolResultError2 is { } __value1 && toolSearchToolResultError2 != null) + else if (ToolSearchToolSearchResult is { } __value1 && toolSearchToolSearchResult != null) { - return toolSearchToolResultError2(__value1); + return toolSearchToolSearchResult(__value1); } return default(TResult); @@ -201,9 +201,9 @@ public bool Validate() /// /// public void Match( - global::System.Action? toolSearchToolResultError1 = null, + global::System.Action? toolSearchToolResultError = null, - global::System.Action? toolSearchToolResultError2 = null, + global::System.Action? toolSearchToolSearchResult = null, bool validate = true) { if (validate) @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (ToolSearchToolResultError1 is { } __value0) + if (ToolSearchToolResultError is { } __value0) { - toolSearchToolResultError1?.Invoke(__value0); + toolSearchToolResultError?.Invoke(__value0); } - else if (ToolSearchToolResultError2 is { } __value1) + else if (ToolSearchToolSearchResult is { } __value1) { - toolSearchToolResultError2?.Invoke(__value1); + toolSearchToolSearchResult?.Invoke(__value1); } } @@ -225,8 +225,8 @@ public void Match( /// /// public void Switch( - global::System.Action? toolSearchToolResultError1 = null, - global::System.Action? toolSearchToolResultError2 = null, + global::System.Action? toolSearchToolResultError = null, + global::System.Action? toolSearchToolSearchResult = null, bool validate = true) { if (validate) @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (ToolSearchToolResultError1 is { } __value0) + if (ToolSearchToolResultError is { } __value0) { - toolSearchToolResultError1?.Invoke(__value0); + toolSearchToolResultError?.Invoke(__value0); } - else if (ToolSearchToolResultError2 is { } __value1) + else if (ToolSearchToolSearchResult is { } __value1) { - toolSearchToolResultError2?.Invoke(__value1); + toolSearchToolSearchResult?.Invoke(__value1); } } @@ -251,9 +251,9 @@ public override int GetHashCode() { var fields = new object?[] { - ToolSearchToolResultError1, + ToolSearchToolResultError, typeof(global::OpenRouter.AnthropicToolSearchResultError), - ToolSearchToolResultError2, + ToolSearchToolSearchResult, typeof(global::OpenRouter.AnthropicToolSearchResult), }; const int offset = unchecked((int)2166136261); @@ -271,8 +271,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(AnthropicToolSearchContent other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(ToolSearchToolResultError1, other.ToolSearchToolResultError1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ToolSearchToolResultError2, other.ToolSearchToolResultError2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(ToolSearchToolResultError, other.ToolSearchToolResultError) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ToolSearchToolSearchResult, other.ToolSearchToolSearchResult) ; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatContentItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatContentItems.g.cs index 1e5b869c3..96507c670 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatContentItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatContentItems.g.cs @@ -134,76 +134,76 @@ public bool TryPickInputAudio( /// Example: {"type":"input_video","video_url":{"url":"https://example.com/video.mp4"}} /// #if NET6_0_OR_GREATER - public global::OpenRouter.LegacyChatContentVideo? InputVideo1 { get; init; } + public global::OpenRouter.LegacyChatContentVideo? InputVideo { get; init; } #else - public global::OpenRouter.LegacyChatContentVideo? InputVideo1 { get; } + public global::OpenRouter.LegacyChatContentVideo? InputVideo { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(InputVideo1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(InputVideo))] #endif - public bool IsInputVideo1 => InputVideo1 != null; + public bool IsInputVideo => InputVideo != null; /// /// /// - public bool TryPickInputVideo1( + public bool TryPickInputVideo( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif out global::OpenRouter.LegacyChatContentVideo? value) { - value = InputVideo1; - return IsInputVideo1; + value = InputVideo; + return IsInputVideo; } /// /// /// - public global::OpenRouter.LegacyChatContentVideo PickInputVideo1() => InputVideo1 is { } value + public global::OpenRouter.LegacyChatContentVideo PickInputVideo() => InputVideo is { } value ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'InputVideo1' but the value was {ToString()}."); + : throw new global::System.InvalidOperationException($"Expected union variant 'InputVideo' but the value was {ToString()}."); /// /// Video input content part
/// Example: {"type":"video_url","video_url":{"url":"https://example.com/video.mp4"}} ///
#if NET6_0_OR_GREATER - public global::OpenRouter.ChatContentVideo? InputVideo2 { get; init; } + public global::OpenRouter.ChatContentVideo? VideoUrl { get; init; } #else - public global::OpenRouter.ChatContentVideo? InputVideo2 { get; } + public global::OpenRouter.ChatContentVideo? VideoUrl { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(InputVideo2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(VideoUrl))] #endif - public bool IsInputVideo2 => InputVideo2 != null; + public bool IsVideoUrl => VideoUrl != null; /// /// /// - public bool TryPickInputVideo2( + public bool TryPickVideoUrl( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif out global::OpenRouter.ChatContentVideo? value) { - value = InputVideo2; - return IsInputVideo2; + value = VideoUrl; + return IsVideoUrl; } /// /// /// - public global::OpenRouter.ChatContentVideo PickInputVideo2() => InputVideo2 is { } value + public global::OpenRouter.ChatContentVideo PickVideoUrl() => VideoUrl is { } value ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'InputVideo2' but the value was {ToString()}."); + : throw new global::System.InvalidOperationException($"Expected union variant 'VideoUrl' but the value was {ToString()}."); /// /// File content part for document processing
@@ -319,20 +319,20 @@ public ChatContentItems(global::OpenRouter.ChatContentAudio? value) /// /// /// - public static implicit operator global::OpenRouter.LegacyChatContentVideo?(ChatContentItems @this) => @this.InputVideo1; + public static implicit operator global::OpenRouter.LegacyChatContentVideo?(ChatContentItems @this) => @this.InputVideo; /// /// /// public ChatContentItems(global::OpenRouter.LegacyChatContentVideo? value) { - InputVideo1 = value; + InputVideo = value; } /// /// /// - public static ChatContentItems FromInputVideo1(global::OpenRouter.LegacyChatContentVideo? value) => new ChatContentItems(value); + public static ChatContentItems FromInputVideo(global::OpenRouter.LegacyChatContentVideo? value) => new ChatContentItems(value); /// /// @@ -342,20 +342,20 @@ public ChatContentItems(global::OpenRouter.LegacyChatContentVideo? value) /// /// /// - public static implicit operator global::OpenRouter.ChatContentVideo?(ChatContentItems @this) => @this.InputVideo2; + public static implicit operator global::OpenRouter.ChatContentVideo?(ChatContentItems @this) => @this.VideoUrl; /// /// /// public ChatContentItems(global::OpenRouter.ChatContentVideo? value) { - InputVideo2 = value; + VideoUrl = value; } /// /// /// - public static ChatContentItems FromInputVideo2(global::OpenRouter.ChatContentVideo? value) => new ChatContentItems(value); + public static ChatContentItems FromVideoUrl(global::OpenRouter.ChatContentVideo? value) => new ChatContentItems(value); /// /// @@ -388,8 +388,8 @@ public ChatContentItems( global::OpenRouter.ChatContentText? text, global::OpenRouter.ChatContentImage? imageUrl, global::OpenRouter.ChatContentAudio? inputAudio, - global::OpenRouter.LegacyChatContentVideo? inputVideo1, - global::OpenRouter.ChatContentVideo? inputVideo2, + global::OpenRouter.LegacyChatContentVideo? inputVideo, + global::OpenRouter.ChatContentVideo? videoUrl, global::OpenRouter.ChatContentFile? file ) { @@ -398,8 +398,8 @@ public ChatContentItems( Text = text; ImageUrl = imageUrl; InputAudio = inputAudio; - InputVideo1 = inputVideo1; - InputVideo2 = inputVideo2; + InputVideo = inputVideo; + VideoUrl = videoUrl; File = file; } @@ -408,8 +408,8 @@ public ChatContentItems( /// public object? Object => File as object ?? - InputVideo2 as object ?? - InputVideo1 as object ?? + VideoUrl as object ?? + InputVideo as object ?? InputAudio as object ?? ImageUrl as object ?? Text as object @@ -422,8 +422,8 @@ Text as object Text?.ToString() ?? ImageUrl?.ToString() ?? InputAudio?.ToString() ?? - InputVideo1?.ToString() ?? - InputVideo2?.ToString() ?? + InputVideo?.ToString() ?? + VideoUrl?.ToString() ?? File?.ToString() ; @@ -432,7 +432,7 @@ Text as object /// public bool Validate() { - return IsText && !IsImageUrl && !IsInputAudio && !IsInputVideo1 && !IsInputVideo2 && !IsFile || !IsText && IsImageUrl && !IsInputAudio && !IsInputVideo1 && !IsInputVideo2 && !IsFile || !IsText && !IsImageUrl && IsInputAudio && !IsInputVideo1 && !IsInputVideo2 && !IsFile || !IsText && !IsImageUrl && !IsInputAudio && IsInputVideo1 && !IsInputVideo2 && !IsFile || !IsText && !IsImageUrl && !IsInputAudio && !IsInputVideo1 && IsInputVideo2 && !IsFile || !IsText && !IsImageUrl && !IsInputAudio && !IsInputVideo1 && !IsInputVideo2 && IsFile; + return IsText && !IsImageUrl && !IsInputAudio && !IsInputVideo && !IsVideoUrl && !IsFile || !IsText && IsImageUrl && !IsInputAudio && !IsInputVideo && !IsVideoUrl && !IsFile || !IsText && !IsImageUrl && IsInputAudio && !IsInputVideo && !IsVideoUrl && !IsFile || !IsText && !IsImageUrl && !IsInputAudio && IsInputVideo && !IsVideoUrl && !IsFile || !IsText && !IsImageUrl && !IsInputAudio && !IsInputVideo && IsVideoUrl && !IsFile || !IsText && !IsImageUrl && !IsInputAudio && !IsInputVideo && !IsVideoUrl && IsFile; } /// @@ -442,8 +442,8 @@ public bool Validate() global::System.Func? text = null, global::System.Func? imageUrl = null, global::System.Func? inputAudio = null, - global::System.Func? inputVideo1 = null, - global::System.Func? inputVideo2 = null, + global::System.Func? inputVideo = null, + global::System.Func? videoUrl = null, global::System.Func? file = null, bool validate = true) { @@ -464,13 +464,13 @@ public bool Validate() { return inputAudio(__value2); } - else if (InputVideo1 is { } __value3 && inputVideo1 != null) + else if (InputVideo is { } __value3 && inputVideo != null) { - return inputVideo1(__value3); + return inputVideo(__value3); } - else if (InputVideo2 is { } __value4 && inputVideo2 != null) + else if (VideoUrl is { } __value4 && videoUrl != null) { - return inputVideo2(__value4); + return videoUrl(__value4); } else if (File is { } __value5 && file != null) { @@ -490,9 +490,9 @@ public void Match( global::System.Action? inputAudio = null, - global::System.Action? inputVideo1 = null, + global::System.Action? inputVideo = null, - global::System.Action? inputVideo2 = null, + global::System.Action? videoUrl = null, global::System.Action? file = null, bool validate = true) @@ -514,13 +514,13 @@ public void Match( { inputAudio?.Invoke(__value2); } - else if (InputVideo1 is { } __value3) + else if (InputVideo is { } __value3) { - inputVideo1?.Invoke(__value3); + inputVideo?.Invoke(__value3); } - else if (InputVideo2 is { } __value4) + else if (VideoUrl is { } __value4) { - inputVideo2?.Invoke(__value4); + videoUrl?.Invoke(__value4); } else if (File is { } __value5) { @@ -535,8 +535,8 @@ public void Switch( global::System.Action? text = null, global::System.Action? imageUrl = null, global::System.Action? inputAudio = null, - global::System.Action? inputVideo1 = null, - global::System.Action? inputVideo2 = null, + global::System.Action? inputVideo = null, + global::System.Action? videoUrl = null, global::System.Action? file = null, bool validate = true) { @@ -557,13 +557,13 @@ public void Switch( { inputAudio?.Invoke(__value2); } - else if (InputVideo1 is { } __value3) + else if (InputVideo is { } __value3) { - inputVideo1?.Invoke(__value3); + inputVideo?.Invoke(__value3); } - else if (InputVideo2 is { } __value4) + else if (VideoUrl is { } __value4) { - inputVideo2?.Invoke(__value4); + videoUrl?.Invoke(__value4); } else if (File is { } __value5) { @@ -584,9 +584,9 @@ public override int GetHashCode() typeof(global::OpenRouter.ChatContentImage), InputAudio, typeof(global::OpenRouter.ChatContentAudio), - InputVideo1, + InputVideo, typeof(global::OpenRouter.LegacyChatContentVideo), - InputVideo2, + VideoUrl, typeof(global::OpenRouter.ChatContentVideo), File, typeof(global::OpenRouter.ChatContentFile), @@ -609,8 +609,8 @@ public bool Equals(ChatContentItems other) global::System.Collections.Generic.EqualityComparer.Default.Equals(Text, other.Text) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ImageUrl, other.ImageUrl) && global::System.Collections.Generic.EqualityComparer.Default.Equals(InputAudio, other.InputAudio) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(InputVideo1, other.InputVideo1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(InputVideo2, other.InputVideo2) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(InputVideo, other.InputVideo) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(VideoUrl, other.VideoUrl) && global::System.Collections.Generic.EqualityComparer.Default.Equals(File, other.File) ; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.StreamEvents.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.StreamEvents.g.cs index c231ea87e..0c7182f7b 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.StreamEvents.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.StreamEvents.g.cs @@ -666,38 +666,38 @@ public bool TryPickResponseFunctionCallArgumentsDone( /// Example: {"content_index":0,"delta":"First, we need","item_id":"item-1","output_index":0,"sequence_number":4,"type":"response.reasoning_text.delta"} /// #if NET6_0_OR_GREATER - public global::OpenRouter.ReasoningDeltaEvent? ResponseFusionCallPanelReasoningDelta1 { get; init; } + public global::OpenRouter.ReasoningDeltaEvent? ResponseReasoningTextDelta { get; init; } #else - public global::OpenRouter.ReasoningDeltaEvent? ResponseFusionCallPanelReasoningDelta1 { get; } + public global::OpenRouter.ReasoningDeltaEvent? ResponseReasoningTextDelta { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ResponseFusionCallPanelReasoningDelta1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ResponseReasoningTextDelta))] #endif - public bool IsResponseFusionCallPanelReasoningDelta1 => ResponseFusionCallPanelReasoningDelta1 != null; + public bool IsResponseReasoningTextDelta => ResponseReasoningTextDelta != null; /// /// /// - public bool TryPickResponseFusionCallPanelReasoningDelta1( + public bool TryPickResponseReasoningTextDelta( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif out global::OpenRouter.ReasoningDeltaEvent? value) { - value = ResponseFusionCallPanelReasoningDelta1; - return IsResponseFusionCallPanelReasoningDelta1; + value = ResponseReasoningTextDelta; + return IsResponseReasoningTextDelta; } /// /// /// - public global::OpenRouter.ReasoningDeltaEvent PickResponseFusionCallPanelReasoningDelta1() => ResponseFusionCallPanelReasoningDelta1 is { } value + public global::OpenRouter.ReasoningDeltaEvent PickResponseReasoningTextDelta() => ResponseReasoningTextDelta is { } value ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseFusionCallPanelReasoningDelta1' but the value was {ToString()}."); + : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseReasoningTextDelta' but the value was {ToString()}."); /// /// Event emitted when reasoning text streaming is complete
@@ -1616,38 +1616,38 @@ public bool TryPickResponseFusionCallPanelDelta( /// Example: {"delta":"Considering both sides","item_id":"st_fusion_abc","model":"openai/gpt-5","output_index":0,"sequence_number":6,"type":"response.fusion_call.panel.reasoning.delta"} ///
#if NET6_0_OR_GREATER - public global::OpenRouter.FusionCallPanelReasoningDeltaEvent? ResponseFusionCallPanelReasoningDelta2 { get; init; } + public global::OpenRouter.FusionCallPanelReasoningDeltaEvent? ResponseFusionCallPanelReasoningDelta { get; init; } #else - public global::OpenRouter.FusionCallPanelReasoningDeltaEvent? ResponseFusionCallPanelReasoningDelta2 { get; } + public global::OpenRouter.FusionCallPanelReasoningDeltaEvent? ResponseFusionCallPanelReasoningDelta { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ResponseFusionCallPanelReasoningDelta2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ResponseFusionCallPanelReasoningDelta))] #endif - public bool IsResponseFusionCallPanelReasoningDelta2 => ResponseFusionCallPanelReasoningDelta2 != null; + public bool IsResponseFusionCallPanelReasoningDelta => ResponseFusionCallPanelReasoningDelta != null; /// /// /// - public bool TryPickResponseFusionCallPanelReasoningDelta2( + public bool TryPickResponseFusionCallPanelReasoningDelta( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif out global::OpenRouter.FusionCallPanelReasoningDeltaEvent? value) { - value = ResponseFusionCallPanelReasoningDelta2; - return IsResponseFusionCallPanelReasoningDelta2; + value = ResponseFusionCallPanelReasoningDelta; + return IsResponseFusionCallPanelReasoningDelta; } /// /// /// - public global::OpenRouter.FusionCallPanelReasoningDeltaEvent PickResponseFusionCallPanelReasoningDelta2() => ResponseFusionCallPanelReasoningDelta2 is { } value + public global::OpenRouter.FusionCallPanelReasoningDeltaEvent PickResponseFusionCallPanelReasoningDelta() => ResponseFusionCallPanelReasoningDelta is { } value ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseFusionCallPanelReasoningDelta2' but the value was {ToString()}."); + : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseFusionCallPanelReasoningDelta' but the value was {ToString()}."); /// /// Emitted when a fusion panel model finishes with its full content.
@@ -2275,20 +2275,20 @@ public StreamEvents(global::OpenRouter.FunctionCallArgsDoneEvent? value) /// /// /// - public static implicit operator global::OpenRouter.ReasoningDeltaEvent?(StreamEvents @this) => @this.ResponseFusionCallPanelReasoningDelta1; + public static implicit operator global::OpenRouter.ReasoningDeltaEvent?(StreamEvents @this) => @this.ResponseReasoningTextDelta; /// /// /// public StreamEvents(global::OpenRouter.ReasoningDeltaEvent? value) { - ResponseFusionCallPanelReasoningDelta1 = value; + ResponseReasoningTextDelta = value; } /// /// /// - public static StreamEvents FromResponseFusionCallPanelReasoningDelta1(global::OpenRouter.ReasoningDeltaEvent? value) => new StreamEvents(value); + public static StreamEvents FromResponseReasoningTextDelta(global::OpenRouter.ReasoningDeltaEvent? value) => new StreamEvents(value); /// /// @@ -2850,20 +2850,20 @@ public StreamEvents(global::OpenRouter.FusionCallPanelDeltaEvent? value) /// /// /// - public static implicit operator global::OpenRouter.FusionCallPanelReasoningDeltaEvent?(StreamEvents @this) => @this.ResponseFusionCallPanelReasoningDelta2; + public static implicit operator global::OpenRouter.FusionCallPanelReasoningDeltaEvent?(StreamEvents @this) => @this.ResponseFusionCallPanelReasoningDelta; /// /// /// public StreamEvents(global::OpenRouter.FusionCallPanelReasoningDeltaEvent? value) { - ResponseFusionCallPanelReasoningDelta2 = value; + ResponseFusionCallPanelReasoningDelta = value; } /// /// /// - public static StreamEvents FromResponseFusionCallPanelReasoningDelta2(global::OpenRouter.FusionCallPanelReasoningDeltaEvent? value) => new StreamEvents(value); + public static StreamEvents FromResponseFusionCallPanelReasoningDelta(global::OpenRouter.FusionCallPanelReasoningDeltaEvent? value) => new StreamEvents(value); /// /// @@ -3025,7 +3025,7 @@ public StreamEvents( global::OpenRouter.AnnotationAddedEvent? responseOutputTextAnnotationAdded, global::OpenRouter.FunctionCallArgsDeltaEvent? responseFunctionCallArgumentsDelta, global::OpenRouter.FunctionCallArgsDoneEvent? responseFunctionCallArgumentsDone, - global::OpenRouter.ReasoningDeltaEvent? responseFusionCallPanelReasoningDelta1, + global::OpenRouter.ReasoningDeltaEvent? responseReasoningTextDelta, global::OpenRouter.ReasoningDoneEvent? responseReasoningTextDone, global::OpenRouter.ReasoningSummaryPartAddedEvent? responseReasoningSummaryPartAdded, global::OpenRouter.ReasoningSummaryPartDoneEvent? responseReasoningSummaryPartDone, @@ -3050,7 +3050,7 @@ public StreamEvents( global::OpenRouter.FusionCallInProgressEvent? responseFusionCallInProgress, global::OpenRouter.FusionCallPanelAddedEvent? responseFusionCallPanelAdded, global::OpenRouter.FusionCallPanelDeltaEvent? responseFusionCallPanelDelta, - global::OpenRouter.FusionCallPanelReasoningDeltaEvent? responseFusionCallPanelReasoningDelta2, + global::OpenRouter.FusionCallPanelReasoningDeltaEvent? responseFusionCallPanelReasoningDelta, global::OpenRouter.FusionCallPanelCompletedEvent? responseFusionCallPanelCompleted, global::OpenRouter.FusionCallPanelFailedEvent? responseFusionCallPanelFailed, global::OpenRouter.FusionCallAnalysisInProgressEvent? responseFusionCallAnalysisInProgress, @@ -3078,7 +3078,7 @@ public StreamEvents( ResponseOutputTextAnnotationAdded = responseOutputTextAnnotationAdded; ResponseFunctionCallArgumentsDelta = responseFunctionCallArgumentsDelta; ResponseFunctionCallArgumentsDone = responseFunctionCallArgumentsDone; - ResponseFusionCallPanelReasoningDelta1 = responseFusionCallPanelReasoningDelta1; + ResponseReasoningTextDelta = responseReasoningTextDelta; ResponseReasoningTextDone = responseReasoningTextDone; ResponseReasoningSummaryPartAdded = responseReasoningSummaryPartAdded; ResponseReasoningSummaryPartDone = responseReasoningSummaryPartDone; @@ -3103,7 +3103,7 @@ public StreamEvents( ResponseFusionCallInProgress = responseFusionCallInProgress; ResponseFusionCallPanelAdded = responseFusionCallPanelAdded; ResponseFusionCallPanelDelta = responseFusionCallPanelDelta; - ResponseFusionCallPanelReasoningDelta2 = responseFusionCallPanelReasoningDelta2; + ResponseFusionCallPanelReasoningDelta = responseFusionCallPanelReasoningDelta; ResponseFusionCallPanelCompleted = responseFusionCallPanelCompleted; ResponseFusionCallPanelFailed = responseFusionCallPanelFailed; ResponseFusionCallAnalysisInProgress = responseFusionCallAnalysisInProgress; @@ -3122,7 +3122,7 @@ ResponseFusionCallAnalysisCompleted as object ?? ResponseFusionCallAnalysisInProgress as object ?? ResponseFusionCallPanelFailed as object ?? ResponseFusionCallPanelCompleted as object ?? - ResponseFusionCallPanelReasoningDelta2 as object ?? + ResponseFusionCallPanelReasoningDelta as object ?? ResponseFusionCallPanelDelta as object ?? ResponseFusionCallPanelAdded as object ?? ResponseFusionCallInProgress as object ?? @@ -3147,7 +3147,7 @@ ResponseReasoningSummaryTextDelta as object ?? ResponseReasoningSummaryPartDone as object ?? ResponseReasoningSummaryPartAdded as object ?? ResponseReasoningTextDone as object ?? - ResponseFusionCallPanelReasoningDelta1 as object ?? + ResponseReasoningTextDelta as object ?? ResponseFunctionCallArgumentsDone as object ?? ResponseFunctionCallArgumentsDelta as object ?? ResponseOutputTextAnnotationAdded as object ?? @@ -3188,7 +3188,7 @@ ResponseCreated as object ResponseOutputTextAnnotationAdded?.ToString() ?? ResponseFunctionCallArgumentsDelta?.ToString() ?? ResponseFunctionCallArgumentsDone?.ToString() ?? - ResponseFusionCallPanelReasoningDelta1?.ToString() ?? + ResponseReasoningTextDelta?.ToString() ?? ResponseReasoningTextDone?.ToString() ?? ResponseReasoningSummaryPartAdded?.ToString() ?? ResponseReasoningSummaryPartDone?.ToString() ?? @@ -3213,7 +3213,7 @@ ResponseCreated as object ResponseFusionCallInProgress?.ToString() ?? ResponseFusionCallPanelAdded?.ToString() ?? ResponseFusionCallPanelDelta?.ToString() ?? - ResponseFusionCallPanelReasoningDelta2?.ToString() ?? + ResponseFusionCallPanelReasoningDelta?.ToString() ?? ResponseFusionCallPanelCompleted?.ToString() ?? ResponseFusionCallPanelFailed?.ToString() ?? ResponseFusionCallAnalysisInProgress?.ToString() ?? @@ -3227,7 +3227,7 @@ ResponseCreated as object /// public bool Validate() { - return IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseFusionCallPanelReasoningDelta1 && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta2 && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && IsResponseDebug; + return IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && IsResponseFusionCallCompleted && !IsResponseDebug || !IsResponseCreated && !IsResponseInProgress && !IsResponseCompleted && !IsResponseIncomplete && !IsResponseFailed && !IsError && !IsResponseOutputItemAdded && !IsResponseOutputItemDone && !IsResponseContentPartAdded && !IsResponseContentPartDone && !IsResponseOutputTextDelta && !IsResponseOutputTextDone && !IsResponseRefusalDelta && !IsResponseRefusalDone && !IsResponseOutputTextAnnotationAdded && !IsResponseFunctionCallArgumentsDelta && !IsResponseFunctionCallArgumentsDone && !IsResponseReasoningTextDelta && !IsResponseReasoningTextDone && !IsResponseReasoningSummaryPartAdded && !IsResponseReasoningSummaryPartDone && !IsResponseReasoningSummaryTextDelta && !IsResponseReasoningSummaryTextDone && !IsResponseImageGenerationCallInProgress && !IsResponseImageGenerationCallGenerating && !IsResponseImageGenerationCallPartialImage && !IsResponseImageGenerationCallCompleted && !IsResponseCodeInterpreterCallInProgress && !IsResponseCodeInterpreterCallInterpreting && !IsResponseCodeInterpreterCallCompleted && !IsResponseCodeInterpreterCallCodeDelta && !IsResponseCodeInterpreterCallCodeDone && !IsResponseWebSearchCallInProgress && !IsResponseWebSearchCallSearching && !IsResponseWebSearchCallCompleted && !IsResponseCustomToolCallInputDelta && !IsResponseCustomToolCallInputDone && !IsResponseApplyPatchCallOperationDiffDelta && !IsResponseApplyPatchCallOperationDiffDone && !IsResponseFusionCallInProgress && !IsResponseFusionCallPanelAdded && !IsResponseFusionCallPanelDelta && !IsResponseFusionCallPanelReasoningDelta && !IsResponseFusionCallPanelCompleted && !IsResponseFusionCallPanelFailed && !IsResponseFusionCallAnalysisInProgress && !IsResponseFusionCallAnalysisCompleted && !IsResponseFusionCallCompleted && IsResponseDebug; } /// @@ -3251,7 +3251,7 @@ public bool Validate() global::System.Func? responseOutputTextAnnotationAdded = null, global::System.Func? responseFunctionCallArgumentsDelta = null, global::System.Func? responseFunctionCallArgumentsDone = null, - global::System.Func? responseFusionCallPanelReasoningDelta1 = null, + global::System.Func? responseReasoningTextDelta = null, global::System.Func? responseReasoningTextDone = null, global::System.Func? responseReasoningSummaryPartAdded = null, global::System.Func? responseReasoningSummaryPartDone = null, @@ -3276,7 +3276,7 @@ public bool Validate() global::System.Func? responseFusionCallInProgress = null, global::System.Func? responseFusionCallPanelAdded = null, global::System.Func? responseFusionCallPanelDelta = null, - global::System.Func? responseFusionCallPanelReasoningDelta2 = null, + global::System.Func? responseFusionCallPanelReasoningDelta = null, global::System.Func? responseFusionCallPanelCompleted = null, global::System.Func? responseFusionCallPanelFailed = null, global::System.Func? responseFusionCallAnalysisInProgress = null, @@ -3358,9 +3358,9 @@ public bool Validate() { return responseFunctionCallArgumentsDone(__value16); } - else if (ResponseFusionCallPanelReasoningDelta1 is { } __value17 && responseFusionCallPanelReasoningDelta1 != null) + else if (ResponseReasoningTextDelta is { } __value17 && responseReasoningTextDelta != null) { - return responseFusionCallPanelReasoningDelta1(__value17); + return responseReasoningTextDelta(__value17); } else if (ResponseReasoningTextDone is { } __value18 && responseReasoningTextDone != null) { @@ -3458,9 +3458,9 @@ public bool Validate() { return responseFusionCallPanelDelta(__value41); } - else if (ResponseFusionCallPanelReasoningDelta2 is { } __value42 && responseFusionCallPanelReasoningDelta2 != null) + else if (ResponseFusionCallPanelReasoningDelta is { } __value42 && responseFusionCallPanelReasoningDelta != null) { - return responseFusionCallPanelReasoningDelta2(__value42); + return responseFusionCallPanelReasoningDelta(__value42); } else if (ResponseFusionCallPanelCompleted is { } __value43 && responseFusionCallPanelCompleted != null) { @@ -3528,7 +3528,7 @@ public void Match( global::System.Action? responseFunctionCallArgumentsDone = null, - global::System.Action? responseFusionCallPanelReasoningDelta1 = null, + global::System.Action? responseReasoningTextDelta = null, global::System.Action? responseReasoningTextDone = null, @@ -3578,7 +3578,7 @@ public void Match( global::System.Action? responseFusionCallPanelDelta = null, - global::System.Action? responseFusionCallPanelReasoningDelta2 = null, + global::System.Action? responseFusionCallPanelReasoningDelta = null, global::System.Action? responseFusionCallPanelCompleted = null, @@ -3666,9 +3666,9 @@ public void Match( { responseFunctionCallArgumentsDone?.Invoke(__value16); } - else if (ResponseFusionCallPanelReasoningDelta1 is { } __value17) + else if (ResponseReasoningTextDelta is { } __value17) { - responseFusionCallPanelReasoningDelta1?.Invoke(__value17); + responseReasoningTextDelta?.Invoke(__value17); } else if (ResponseReasoningTextDone is { } __value18) { @@ -3766,9 +3766,9 @@ public void Match( { responseFusionCallPanelDelta?.Invoke(__value41); } - else if (ResponseFusionCallPanelReasoningDelta2 is { } __value42) + else if (ResponseFusionCallPanelReasoningDelta is { } __value42) { - responseFusionCallPanelReasoningDelta2?.Invoke(__value42); + responseFusionCallPanelReasoningDelta?.Invoke(__value42); } else if (ResponseFusionCallPanelCompleted is { } __value43) { @@ -3817,7 +3817,7 @@ public void Switch( global::System.Action? responseOutputTextAnnotationAdded = null, global::System.Action? responseFunctionCallArgumentsDelta = null, global::System.Action? responseFunctionCallArgumentsDone = null, - global::System.Action? responseFusionCallPanelReasoningDelta1 = null, + global::System.Action? responseReasoningTextDelta = null, global::System.Action? responseReasoningTextDone = null, global::System.Action? responseReasoningSummaryPartAdded = null, global::System.Action? responseReasoningSummaryPartDone = null, @@ -3842,7 +3842,7 @@ public void Switch( global::System.Action? responseFusionCallInProgress = null, global::System.Action? responseFusionCallPanelAdded = null, global::System.Action? responseFusionCallPanelDelta = null, - global::System.Action? responseFusionCallPanelReasoningDelta2 = null, + global::System.Action? responseFusionCallPanelReasoningDelta = null, global::System.Action? responseFusionCallPanelCompleted = null, global::System.Action? responseFusionCallPanelFailed = null, global::System.Action? responseFusionCallAnalysisInProgress = null, @@ -3924,9 +3924,9 @@ public void Switch( { responseFunctionCallArgumentsDone?.Invoke(__value16); } - else if (ResponseFusionCallPanelReasoningDelta1 is { } __value17) + else if (ResponseReasoningTextDelta is { } __value17) { - responseFusionCallPanelReasoningDelta1?.Invoke(__value17); + responseReasoningTextDelta?.Invoke(__value17); } else if (ResponseReasoningTextDone is { } __value18) { @@ -4024,9 +4024,9 @@ public void Switch( { responseFusionCallPanelDelta?.Invoke(__value41); } - else if (ResponseFusionCallPanelReasoningDelta2 is { } __value42) + else if (ResponseFusionCallPanelReasoningDelta is { } __value42) { - responseFusionCallPanelReasoningDelta2?.Invoke(__value42); + responseFusionCallPanelReasoningDelta?.Invoke(__value42); } else if (ResponseFusionCallPanelCompleted is { } __value43) { @@ -4095,7 +4095,7 @@ public override int GetHashCode() typeof(global::OpenRouter.FunctionCallArgsDeltaEvent), ResponseFunctionCallArgumentsDone, typeof(global::OpenRouter.FunctionCallArgsDoneEvent), - ResponseFusionCallPanelReasoningDelta1, + ResponseReasoningTextDelta, typeof(global::OpenRouter.ReasoningDeltaEvent), ResponseReasoningTextDone, typeof(global::OpenRouter.ReasoningDoneEvent), @@ -4145,7 +4145,7 @@ public override int GetHashCode() typeof(global::OpenRouter.FusionCallPanelAddedEvent), ResponseFusionCallPanelDelta, typeof(global::OpenRouter.FusionCallPanelDeltaEvent), - ResponseFusionCallPanelReasoningDelta2, + ResponseFusionCallPanelReasoningDelta, typeof(global::OpenRouter.FusionCallPanelReasoningDeltaEvent), ResponseFusionCallPanelCompleted, typeof(global::OpenRouter.FusionCallPanelCompletedEvent), @@ -4192,7 +4192,7 @@ public bool Equals(StreamEvents other) global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponseOutputTextAnnotationAdded, other.ResponseOutputTextAnnotationAdded) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponseFunctionCallArgumentsDelta, other.ResponseFunctionCallArgumentsDelta) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponseFunctionCallArgumentsDone, other.ResponseFunctionCallArgumentsDone) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponseFusionCallPanelReasoningDelta1, other.ResponseFusionCallPanelReasoningDelta1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponseReasoningTextDelta, other.ResponseReasoningTextDelta) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponseReasoningTextDone, other.ResponseReasoningTextDone) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponseReasoningSummaryPartAdded, other.ResponseReasoningSummaryPartAdded) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponseReasoningSummaryPartDone, other.ResponseReasoningSummaryPartDone) && @@ -4217,7 +4217,7 @@ public bool Equals(StreamEvents other) global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponseFusionCallInProgress, other.ResponseFusionCallInProgress) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponseFusionCallPanelAdded, other.ResponseFusionCallPanelAdded) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponseFusionCallPanelDelta, other.ResponseFusionCallPanelDelta) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponseFusionCallPanelReasoningDelta2, other.ResponseFusionCallPanelReasoningDelta2) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponseFusionCallPanelReasoningDelta, other.ResponseFusionCallPanelReasoningDelta) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponseFusionCallPanelCompleted, other.ResponseFusionCallPanelCompleted) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponseFusionCallPanelFailed, other.ResponseFusionCallPanelFailed) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponseFusionCallAnalysisInProgress, other.ResponseFusionCallAnalysisInProgress) && diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ResponseStream.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ResponseStream.g.cs index 95c6e3fdf..5105b9109 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.ResponseStream.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.ResponseStream.g.cs @@ -7,7 +7,7 @@ internal sealed class ResponseStream : global::System.IO.Stream { private readonly global::System.Net.Http.HttpResponseMessage _response; private readonly global::System.IO.Stream _stream; - private bool _disposed; + private int _disposed; public ResponseStream( global::System.Net.Http.HttpResponseMessage response, @@ -47,21 +47,51 @@ public override int WriteTimeout global::System.Threading.CancellationToken cancellationToken) => _stream.FlushAsync(cancellationToken); - public override int Read(byte[] buffer, int offset, int count) => - _stream.Read(buffer, offset, count); + public override int Read(byte[] buffer, int offset, int count) + { + try + { + return _stream.Read(buffer, offset, count); + } + catch + { + Dispose(); + throw; + } + } - public override global::System.Threading.Tasks.Task ReadAsync( + public override async global::System.Threading.Tasks.Task ReadAsync( byte[] buffer, int offset, int count, - global::System.Threading.CancellationToken cancellationToken) => - _stream.ReadAsync(buffer, offset, count, cancellationToken); + global::System.Threading.CancellationToken cancellationToken) + { + try + { + return await _stream.ReadAsync(buffer, offset, count, cancellationToken).ConfigureAwait(false); + } + catch + { + Dispose(); + throw; + } + } #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_0_OR_GREATER || NET5_0_OR_GREATER - public override global::System.Threading.Tasks.ValueTask ReadAsync( + public override async global::System.Threading.Tasks.ValueTask ReadAsync( global::System.Memory buffer, - global::System.Threading.CancellationToken cancellationToken = default) => - _stream.ReadAsync(buffer, cancellationToken); + global::System.Threading.CancellationToken cancellationToken = default) + { + try + { + return await _stream.ReadAsync(buffer, cancellationToken).ConfigureAwait(false); + } + catch + { + Dispose(); + throw; + } + } #endif public override long Seek(long offset, global::System.IO.SeekOrigin origin) => @@ -89,10 +119,9 @@ public override void Write(byte[] buffer, int offset, int count) => protected override void Dispose(bool disposing) { - if (!_disposed && disposing) + if (disposing && global::System.Threading.Interlocked.Exchange(ref _disposed, 1) == 0) { - _disposed = true; - _stream.Dispose(); + // The response content owns the underlying stream; disposing both would close it twice. _response.Dispose(); } @@ -100,17 +129,10 @@ protected override void Dispose(bool disposing) } #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_0_OR_GREATER || NET5_0_OR_GREATER - public override async global::System.Threading.Tasks.ValueTask DisposeAsync() + public override global::System.Threading.Tasks.ValueTask DisposeAsync() { - if (_disposed) - { - return; - } - - _disposed = true; - await _stream.DisposeAsync().ConfigureAwait(false); - _response.Dispose(); - await base.DisposeAsync().ConfigureAwait(false); + Dispose(); + return default; } #endif } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.TtsClient.CreateSpeech.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.TtsClient.CreateSpeech.g.cs index 70290cdca..6a19658a1 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.TtsClient.CreateSpeech.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.TtsClient.CreateSpeech.g.cs @@ -794,6 +794,787 @@ partial void ProcessCreateSpeechResponseContent( return new global::OpenRouter.ResponseStream(__response, __content); } + catch (global::System.OperationCanceledException) + { + throw; + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + } + catch + { + __response.Dispose(); + throw; + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Create speech
+ /// Synthesizes audio from the input text. Returns a raw audio bytestream in the requested format (e.g. mp3, pcm, wav). + ///
+ /// + /// The response metadata and an unbuffered body stream. The caller must dispose Body to release the HTTP response. + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> CreateSpeechAsStreamAsResponseAsync( + + global::OpenRouter.SpeechRequest request, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareCreateSpeechArguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::OpenRouter.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateSpeechSecurityRequirements, + operationName: "CreateSpeechAsync"); + + using var __timeoutCancellationTokenSource = global::OpenRouter.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::OpenRouter.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::OpenRouter.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::OpenRouter.PathBuilder( + path: "/audio/speech", + baseUri: HttpClient.BaseAddress ?? new global::System.Uri("https://openrouter.ai/api/v1", global::System.UriKind.RelativeOrAbsolute)); + var __path = __pathBuilder.ToString(); + __path = global::OpenRouter.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::OpenRouter.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareCreateSpeechRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + request: request); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateSpeech", + methodName: "CreateSpeechAsync", + pathTemplate: "\"/audio/speech\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseHeadersRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateSpeech", + methodName: "CreateSpeechAsync", + pathTemplate: "\"/audio/speech\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::OpenRouter.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateSpeech", + methodName: "CreateSpeechAsync", + pathTemplate: "\"/audio/speech\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + try + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessCreateSpeechResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateSpeech", + methodName: "CreateSpeechAsync", + pathTemplate: "\"/audio/speech\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateSpeech", + methodName: "CreateSpeechAsync", + pathTemplate: "\"/audio/speech\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Bad Request - Invalid request parameters or malformed input + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::OpenRouter.BadRequestResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::OpenRouter.BadRequestResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::OpenRouter.BadRequestResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Unauthorized - Authentication required or invalid credentials + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::OpenRouter.UnauthorizedResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Payment Required - Insufficient credits or quota to complete request + if ((int)__response.StatusCode == 402) + { + string? __content_402 = null; + global::System.Exception? __exception_402 = null; + global::OpenRouter.PaymentRequiredResponse? __value_402 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_402 = global::OpenRouter.PaymentRequiredResponse.FromJson(__content_402, JsonSerializerContext); + } + else + { + __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_402 = global::OpenRouter.PaymentRequiredResponse.FromJson(__content_402, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_402 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_402, + responseBody: __content_402, + responseObject: __value_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Forbidden - Authentication successful but insufficient permissions + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::OpenRouter.ForbiddenResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::OpenRouter.ForbiddenResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::OpenRouter.ForbiddenResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Not Found - Resource does not exist + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::OpenRouter.NotFoundResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::OpenRouter.NotFoundResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::OpenRouter.NotFoundResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Payload Too Large - Request payload exceeds size limits + if ((int)__response.StatusCode == 413) + { + string? __content_413 = null; + global::System.Exception? __exception_413 = null; + global::OpenRouter.PayloadTooLargeResponse? __value_413 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_413 = global::OpenRouter.PayloadTooLargeResponse.FromJson(__content_413, JsonSerializerContext); + } + else + { + __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_413 = global::OpenRouter.PayloadTooLargeResponse.FromJson(__content_413, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_413 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_413, + responseBody: __content_413, + responseObject: __value_413, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too Many Requests - Rate limit exceeded + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::OpenRouter.TooManyRequestsResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::OpenRouter.TooManyRequestsResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::OpenRouter.TooManyRequestsResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Internal Server Error - Unexpected server error + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::OpenRouter.InternalServerResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Bad Gateway - Provider/upstream API failure + if ((int)__response.StatusCode == 502) + { + string? __content_502 = null; + global::System.Exception? __exception_502 = null; + global::OpenRouter.BadGatewayResponse? __value_502 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_502 = global::OpenRouter.BadGatewayResponse.FromJson(__content_502, JsonSerializerContext); + } + else + { + __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_502 = global::OpenRouter.BadGatewayResponse.FromJson(__content_502, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_502 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_502 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_502, + responseBody: __content_502, + responseObject: __value_502, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Service Unavailable - Service temporarily unavailable + if ((int)__response.StatusCode == 503) + { + string? __content_503 = null; + global::System.Exception? __exception_503 = null; + global::OpenRouter.ServiceUnavailableResponse? __value_503 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_503 = global::OpenRouter.ServiceUnavailableResponse.FromJson(__content_503, JsonSerializerContext); + } + else + { + __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_503 = global::OpenRouter.ServiceUnavailableResponse.FromJson(__content_503, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_503 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_503, + responseBody: __content_503, + responseObject: __value_503, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Infrastructure Timeout - Provider request timed out at edge network + if ((int)__response.StatusCode == 524) + { + string? __content_524 = null; + global::System.Exception? __exception_524 = null; + global::OpenRouter.EdgeNetworkTimeoutResponse? __value_524 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_524 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_524 = global::OpenRouter.EdgeNetworkTimeoutResponse.FromJson(__content_524, JsonSerializerContext); + } + else + { + __content_524 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_524 = global::OpenRouter.EdgeNetworkTimeoutResponse.FromJson(__content_524, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_524 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_524 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_524, + responseBody: __content_524, + responseObject: __value_524, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Provider Overloaded - Provider is temporarily overloaded + if ((int)__response.StatusCode == 529) + { + string? __content_529 = null; + global::System.Exception? __exception_529 = null; + global::OpenRouter.ProviderOverloadedResponse? __value_529 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_529 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_529 = global::OpenRouter.ProviderOverloadedResponse.FromJson(__content_529, JsonSerializerContext); + } + else + { + __content_529 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_529 = global::OpenRouter.ProviderOverloadedResponse.FromJson(__content_529, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_529 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_529 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_529, + responseBody: __content_529, + responseObject: __value_529, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + return new global::OpenRouter.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::OpenRouter.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: new global::OpenRouter.ResponseStream(__response, __content)); + } + catch (global::System.OperationCanceledException) + { + throw; + } catch (global::System.Exception __ex) { string? __content = null; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.VideoGenerationClient.GetVideoContent.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.VideoGenerationClient.GetVideoContent.g.cs index f72fa23fd..d7d02a237 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.VideoGenerationClient.GetVideoContent.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.VideoGenerationClient.GetVideoContent.g.cs @@ -657,6 +657,642 @@ partial void ProcessGetVideoContentResponseContent( return new global::OpenRouter.ResponseStream(__response, __content); } + catch (global::System.OperationCanceledException) + { + throw; + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + } + catch + { + __response.Dispose(); + throw; + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Download generated video content
+ /// Streams the generated video content from the upstream provider + ///
+ /// + /// Example: job-abc123 + /// + /// + /// Default Value: 0
+ /// Example: 0 + /// + /// The response metadata and an unbuffered body stream. The caller must dispose Body to release the HTTP response. + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> GetVideoContentAsStreamAsResponseAsync( + string jobId, + int? index = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetVideoContentArguments( + httpClient: HttpClient, + jobId: ref jobId, + index: ref index); + + + var __authorizations = global::OpenRouter.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetVideoContentSecurityRequirements, + operationName: "GetVideoContentAsync"); + + using var __timeoutCancellationTokenSource = global::OpenRouter.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::OpenRouter.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::OpenRouter.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::OpenRouter.PathBuilder( + path: $"/videos/{jobId}/content", + baseUri: HttpClient.BaseAddress ?? new global::System.Uri("https://openrouter.ai/api/v1", global::System.UriKind.RelativeOrAbsolute)); + __pathBuilder + .AddOptionalParameter("index", index?.ToString()) + ; + var __path = __pathBuilder.ToString(); + __path = global::OpenRouter.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::OpenRouter.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetVideoContentRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + jobId: jobId, + index: index); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetVideoContent", + methodName: "GetVideoContentAsync", + pathTemplate: "$\"/videos/{jobId}/content\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseHeadersRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetVideoContent", + methodName: "GetVideoContentAsync", + pathTemplate: "$\"/videos/{jobId}/content\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::OpenRouter.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetVideoContent", + methodName: "GetVideoContentAsync", + pathTemplate: "$\"/videos/{jobId}/content\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + try + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGetVideoContentResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetVideoContent", + methodName: "GetVideoContentAsync", + pathTemplate: "$\"/videos/{jobId}/content\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetVideoContent", + methodName: "GetVideoContentAsync", + pathTemplate: "$\"/videos/{jobId}/content\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Bad Request - Invalid request parameters or malformed input + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::OpenRouter.BadRequestResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::OpenRouter.BadRequestResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::OpenRouter.BadRequestResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Unauthorized - Authentication required or invalid credentials + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::OpenRouter.UnauthorizedResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Forbidden - Authentication successful but insufficient permissions + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::OpenRouter.ForbiddenResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::OpenRouter.ForbiddenResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::OpenRouter.ForbiddenResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Not Found - Resource does not exist + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::OpenRouter.NotFoundResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::OpenRouter.NotFoundResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::OpenRouter.NotFoundResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Conflict - Resource conflict or concurrent modification + if ((int)__response.StatusCode == 409) + { + string? __content_409 = null; + global::System.Exception? __exception_409 = null; + global::OpenRouter.ConflictResponse? __value_409 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_409 = global::OpenRouter.ConflictResponse.FromJson(__content_409, JsonSerializerContext); + } + else + { + __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_409 = global::OpenRouter.ConflictResponse.FromJson(__content_409, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_409 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_409, + responseBody: __content_409, + responseObject: __value_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Gone - Endpoint has been permanently removed or deprecated + if ((int)__response.StatusCode == 410) + { + string? __content_410 = null; + global::System.Exception? __exception_410 = null; + global::OpenRouter.GoneResponse? __value_410 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_410 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_410 = global::OpenRouter.GoneResponse.FromJson(__content_410, JsonSerializerContext); + } + else + { + __content_410 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_410 = global::OpenRouter.GoneResponse.FromJson(__content_410, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_410 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_410 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_410, + responseBody: __content_410, + responseObject: __value_410, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Internal Server Error - Unexpected server error + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::OpenRouter.InternalServerResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Bad Gateway - Provider/upstream API failure + if ((int)__response.StatusCode == 502) + { + string? __content_502 = null; + global::System.Exception? __exception_502 = null; + global::OpenRouter.BadGatewayResponse? __value_502 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_502 = global::OpenRouter.BadGatewayResponse.FromJson(__content_502, JsonSerializerContext); + } + else + { + __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_502 = global::OpenRouter.BadGatewayResponse.FromJson(__content_502, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_502 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_502 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_502, + responseBody: __content_502, + responseObject: __value_502, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + return new global::OpenRouter.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::OpenRouter.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: new global::OpenRouter.ResponseStream(__response, __content)); + } + catch (global::System.OperationCanceledException) + { + throw; + } catch (global::System.Exception __ex) { string? __content = null;