diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AutoSDKHttpResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AutoSDKHttpResponse.g.cs
new file mode 100644
index 00000000..debd2d48
--- /dev/null
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AutoSDKHttpResponse.g.cs
@@ -0,0 +1,86 @@
+
+#nullable enable
+
+namespace tryAGI.OpenAI
+{
+ ///
+ /// Represents a successful HTTP response with status code and headers.
+ ///
+ public partial class AutoSDKHttpResponse
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public AutoSDKHttpResponse(
+ global::System.Net.HttpStatusCode statusCode,
+ global::System.Collections.Generic.Dictionary> headers)
+ {
+ StatusCode = statusCode;
+ Headers = headers ?? throw new global::System.ArgumentNullException(nameof(headers));
+ }
+
+ ///
+ /// Gets the HTTP status code.
+ ///
+ public global::System.Net.HttpStatusCode StatusCode { get; }
+ ///
+ /// Gets the response headers.
+ ///
+ public global::System.Collections.Generic.Dictionary> Headers { get; }
+
+ internal static global::System.Collections.Generic.Dictionary> CreateHeaders(
+ global::System.Net.Http.HttpResponseMessage response)
+ {
+ response = response ?? throw new global::System.ArgumentNullException(nameof(response));
+
+ var headers = global::System.Linq.Enumerable.ToDictionary(
+ response.Headers,
+ static header => header.Key,
+ static header => (global::System.Collections.Generic.IEnumerable)global::System.Linq.Enumerable.ToArray(header.Value),
+ global::System.StringComparer.OrdinalIgnoreCase);
+
+ if (response.Content?.Headers == null)
+ {
+ return headers;
+ }
+
+ foreach (var header in response.Content.Headers)
+ {
+ if (headers.TryGetValue(header.Key, out var existingValues))
+ {
+ headers[header.Key] = global::System.Linq.Enumerable.ToArray(
+ global::System.Linq.Enumerable.Concat(existingValues, header.Value));
+ }
+ else
+ {
+ headers[header.Key] = global::System.Linq.Enumerable.ToArray(header.Value);
+ }
+ }
+
+ return headers;
+ }
+ }
+
+ ///
+ /// Represents a successful HTTP response with status code, headers, and body.
+ ///
+ public partial class AutoSDKHttpResponse : AutoSDKHttpResponse
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public AutoSDKHttpResponse(
+ global::System.Net.HttpStatusCode statusCode,
+ global::System.Collections.Generic.Dictionary> headers,
+ T body)
+ : base(statusCode, headers)
+ {
+ Body = body;
+ }
+
+ ///
+ /// Gets the response body.
+ ///
+ public T Body { get; }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRealtimeClient.CreateCall.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRealtimeClient.CreateCall.g.cs
index 13de5eb3..338f6cf8 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRealtimeClient.CreateCall.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRealtimeClient.CreateCall.g.cs
@@ -19,6 +19,17 @@ public partial interface IRealtimeClient
/// Create a new Realtime API call over WebRTC and receive the SDP answer needed
/// to complete the peer connection.
///
+ ///
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CreateCallAsResponseAsync(
+
+ global::tryAGI.OpenAI.RealtimeCallCreateRequest request,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create a new Realtime API call over WebRTC and receive the SDP answer needed
+ /// to complete the peer connection.
+ ///
///
/// WebRTC Session Description Protocol (SDP) offer generated by the caller.
///
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateCall.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateCall.g.cs
index c2c7e971..5d526a59 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateCall.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateCall.g.cs
@@ -30,6 +30,26 @@ partial void ProcessCreateCallResponseContent(
///
public async global::System.Threading.Tasks.Task CreateCallAsync(
+ global::tryAGI.OpenAI.RealtimeCallCreateRequest request,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CreateCallAsResponseAsync(
+
+ request: request,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Create a new Realtime API call over WebRTC and receive the SDP answer needed
+ /// to complete the peer connection.
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> CreateCallAsResponseAsync(
+
global::tryAGI.OpenAI.RealtimeCallCreateRequest request,
global::System.Threading.CancellationToken cancellationToken = default)
{
@@ -122,7 +142,10 @@ partial void ProcessCreateCallResponseContent(
{
__response.EnsureSuccessStatusCode();
- return __content;
+ return new global::tryAGI.OpenAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.OpenAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ body: __content);
}
catch (global::System.Exception __ex)
{
@@ -151,7 +174,10 @@ partial void ProcessCreateCallResponseContent(
#endif
).ConfigureAwait(false);
- return __content;
+ return new global::tryAGI.OpenAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.OpenAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ body: __content);
}
catch (global::System.Exception __ex)
{