Skip to content

Commit b8d9673

Browse files
author
github-actions[bot]
committed
feat: Updated OpenAPI spec
1 parent c6b8cd6 commit b8d9673

File tree

680 files changed

+2368
-220
lines changed

Some content is hidden

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

680 files changed

+2368
-220
lines changed

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CancelRun.g.cs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ partial void ProcessCancelRunResponseContent(
3030
/// <param name="runId"></param>
3131
/// <param name="cancellationToken">The token to cancel the operation with</param>
3232
/// <exception cref="global::tryAGI.OpenAI.ApiException"></exception>
33+
#if NET8_0_OR_GREATER
3334
[global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "TRYAGI_OPENAI_BETA_001")]
35+
#endif
3436
public async global::System.Threading.Tasks.Task<global::tryAGI.OpenAI.RunObject> CancelRunAsync(
3537
string threadId,
3638
string runId,
@@ -94,7 +96,11 @@ partial void ProcessCancelRunResponseContent(
9496

9597
if (ReadResponseAsString)
9698
{
97-
var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
99+
var __content = await __response.Content.ReadAsStringAsync(
100+
#if NET5_0_OR_GREATER
101+
cancellationToken
102+
#endif
103+
).ConfigureAwait(false);
98104

99105
ProcessResponseContent(
100106
client: HttpClient,
@@ -148,7 +154,11 @@ partial void ProcessCancelRunResponseContent(
148154
};
149155
}
150156

151-
using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
157+
using var __content = await __response.Content.ReadAsStreamAsync(
158+
#if NET5_0_OR_GREATER
159+
cancellationToken
160+
#endif
161+
).ConfigureAwait(false);
152162

153163
return
154164
await global::tryAGI.OpenAI.RunObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateAssistant.g.cs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ partial void ProcessCreateAssistantResponseContent(
2727
/// <param name="request"></param>
2828
/// <param name="cancellationToken">The token to cancel the operation with</param>
2929
/// <exception cref="global::tryAGI.OpenAI.ApiException"></exception>
30+
#if NET8_0_OR_GREATER
3031
[global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "TRYAGI_OPENAI_BETA_001")]
32+
#endif
3133
public async global::System.Threading.Tasks.Task<global::tryAGI.OpenAI.AssistantObject> CreateAssistantAsync(
3234
global::tryAGI.OpenAI.CreateAssistantRequest request,
3335
global::System.Threading.CancellationToken cancellationToken = default)
@@ -96,7 +98,11 @@ partial void ProcessCreateAssistantResponseContent(
9698

9799
if (ReadResponseAsString)
98100
{
99-
var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
101+
var __content = await __response.Content.ReadAsStringAsync(
102+
#if NET5_0_OR_GREATER
103+
cancellationToken
104+
#endif
105+
).ConfigureAwait(false);
100106

101107
ProcessResponseContent(
102108
client: HttpClient,
@@ -150,7 +156,11 @@ partial void ProcessCreateAssistantResponseContent(
150156
};
151157
}
152158

153-
using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
159+
using var __content = await __response.Content.ReadAsStreamAsync(
160+
#if NET5_0_OR_GREATER
161+
cancellationToken
162+
#endif
163+
).ConfigureAwait(false);
154164

155165
return
156166
await global::tryAGI.OpenAI.AssistantObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
@@ -201,7 +211,9 @@ partial void ProcessCreateAssistantResponseContent(
201211
/// <param name="responseFormat"></param>
202212
/// <param name="cancellationToken">The token to cancel the operation with</param>
203213
/// <exception cref="global::System.InvalidOperationException"></exception>
214+
#if NET8_0_OR_GREATER
204215
[global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "TRYAGI_OPENAI_BETA_001")]
216+
#endif
205217
public async global::System.Threading.Tasks.Task<global::tryAGI.OpenAI.AssistantObject> CreateAssistantAsync(
206218
global::tryAGI.OpenAI.AnyOf<string, global::tryAGI.OpenAI.CreateAssistantRequestModel?> model,
207219
string? name = default,

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateMessage.g.cs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ partial void ProcessCreateMessageResponseContent(
3030
/// <param name="request"></param>
3131
/// <param name="cancellationToken">The token to cancel the operation with</param>
3232
/// <exception cref="global::tryAGI.OpenAI.ApiException"></exception>
33+
#if NET8_0_OR_GREATER
3334
[global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "TRYAGI_OPENAI_BETA_001")]
35+
#endif
3436
public async global::System.Threading.Tasks.Task<global::tryAGI.OpenAI.MessageObject> CreateMessageAsync(
3537
string threadId,
3638
global::tryAGI.OpenAI.CreateMessageRequest request,
@@ -102,7 +104,11 @@ partial void ProcessCreateMessageResponseContent(
102104

103105
if (ReadResponseAsString)
104106
{
105-
var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
107+
var __content = await __response.Content.ReadAsStringAsync(
108+
#if NET5_0_OR_GREATER
109+
cancellationToken
110+
#endif
111+
).ConfigureAwait(false);
106112

107113
ProcessResponseContent(
108114
client: HttpClient,
@@ -156,7 +162,11 @@ partial void ProcessCreateMessageResponseContent(
156162
};
157163
}
158164

159-
using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
165+
using var __content = await __response.Content.ReadAsStreamAsync(
166+
#if NET5_0_OR_GREATER
167+
cancellationToken
168+
#endif
169+
).ConfigureAwait(false);
160170

161171
return
162172
await global::tryAGI.OpenAI.MessageObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
@@ -186,7 +196,9 @@ partial void ProcessCreateMessageResponseContent(
186196
/// </param>
187197
/// <param name="cancellationToken">The token to cancel the operation with</param>
188198
/// <exception cref="global::System.InvalidOperationException"></exception>
199+
#if NET8_0_OR_GREATER
189200
[global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "TRYAGI_OPENAI_BETA_001")]
201+
#endif
190202
public async global::System.Threading.Tasks.Task<global::tryAGI.OpenAI.MessageObject> CreateMessageAsync(
191203
string threadId,
192204
global::tryAGI.OpenAI.CreateMessageRequestRole role,

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateRun.g.cs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ partial void ProcessCreateRunResponseContent(
3333
/// <param name="request"></param>
3434
/// <param name="cancellationToken">The token to cancel the operation with</param>
3535
/// <exception cref="global::tryAGI.OpenAI.ApiException"></exception>
36+
#if NET8_0_OR_GREATER
3637
[global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "TRYAGI_OPENAI_BETA_001")]
38+
#endif
3739
public async global::System.Threading.Tasks.Task<global::tryAGI.OpenAI.RunObject> CreateRunAsync(
3840
string threadId,
3941
global::tryAGI.OpenAI.CreateRunRequest request,
@@ -108,7 +110,11 @@ partial void ProcessCreateRunResponseContent(
108110

109111
if (ReadResponseAsString)
110112
{
111-
var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
113+
var __content = await __response.Content.ReadAsStringAsync(
114+
#if NET5_0_OR_GREATER
115+
cancellationToken
116+
#endif
117+
).ConfigureAwait(false);
112118

113119
ProcessResponseContent(
114120
client: HttpClient,
@@ -162,7 +168,11 @@ partial void ProcessCreateRunResponseContent(
162168
};
163169
}
164170

165-
using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
171+
using var __content = await __response.Content.ReadAsStreamAsync(
172+
#if NET5_0_OR_GREATER
173+
cancellationToken
174+
#endif
175+
).ConfigureAwait(false);
166176

167177
return
168178
await global::tryAGI.OpenAI.RunObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
@@ -229,7 +239,9 @@ partial void ProcessCreateRunResponseContent(
229239
/// <param name="responseFormat"></param>
230240
/// <param name="cancellationToken">The token to cancel the operation with</param>
231241
/// <exception cref="global::System.InvalidOperationException"></exception>
242+
#if NET8_0_OR_GREATER
232243
[global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "TRYAGI_OPENAI_BETA_001")]
244+
#endif
233245
public async global::System.Threading.Tasks.Task<global::tryAGI.OpenAI.RunObject> CreateRunAsync(
234246
string threadId,
235247
string assistantId,

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateThread.g.cs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ partial void ProcessCreateThreadResponseContent(
2727
/// <param name="request"></param>
2828
/// <param name="cancellationToken">The token to cancel the operation with</param>
2929
/// <exception cref="global::tryAGI.OpenAI.ApiException"></exception>
30+
#if NET8_0_OR_GREATER
3031
[global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "TRYAGI_OPENAI_BETA_001")]
32+
#endif
3133
public async global::System.Threading.Tasks.Task<global::tryAGI.OpenAI.ThreadObject> CreateThreadAsync(
3234
global::tryAGI.OpenAI.CreateThreadRequest request,
3335
global::System.Threading.CancellationToken cancellationToken = default)
@@ -96,7 +98,11 @@ partial void ProcessCreateThreadResponseContent(
9698

9799
if (ReadResponseAsString)
98100
{
99-
var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
101+
var __content = await __response.Content.ReadAsStringAsync(
102+
#if NET5_0_OR_GREATER
103+
cancellationToken
104+
#endif
105+
).ConfigureAwait(false);
100106

101107
ProcessResponseContent(
102108
client: HttpClient,
@@ -150,7 +156,11 @@ partial void ProcessCreateThreadResponseContent(
150156
};
151157
}
152158

153-
using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
159+
using var __content = await __response.Content.ReadAsStreamAsync(
160+
#if NET5_0_OR_GREATER
161+
cancellationToken
162+
#endif
163+
).ConfigureAwait(false);
154164

155165
return
156166
await global::tryAGI.OpenAI.ThreadObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
@@ -176,7 +186,9 @@ partial void ProcessCreateThreadResponseContent(
176186
/// </param>
177187
/// <param name="cancellationToken">The token to cancel the operation with</param>
178188
/// <exception cref="global::System.InvalidOperationException"></exception>
189+
#if NET8_0_OR_GREATER
179190
[global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "TRYAGI_OPENAI_BETA_001")]
191+
#endif
180192
public async global::System.Threading.Tasks.Task<global::tryAGI.OpenAI.ThreadObject> CreateThreadAsync(
181193
global::System.Collections.Generic.IList<global::tryAGI.OpenAI.CreateMessageRequest>? messages = default,
182194
global::tryAGI.OpenAI.CreateThreadRequestToolResources? toolResources = default,

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateThreadAndRun.g.cs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ partial void ProcessCreateThreadAndRunResponseContent(
2727
/// <param name="request"></param>
2828
/// <param name="cancellationToken">The token to cancel the operation with</param>
2929
/// <exception cref="global::tryAGI.OpenAI.ApiException"></exception>
30+
#if NET8_0_OR_GREATER
3031
[global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "TRYAGI_OPENAI_BETA_001")]
32+
#endif
3133
public async global::System.Threading.Tasks.Task<global::tryAGI.OpenAI.RunObject> CreateThreadAndRunAsync(
3234
global::tryAGI.OpenAI.CreateThreadAndRunRequest request,
3335
global::System.Threading.CancellationToken cancellationToken = default)
@@ -96,7 +98,11 @@ partial void ProcessCreateThreadAndRunResponseContent(
9698

9799
if (ReadResponseAsString)
98100
{
99-
var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
101+
var __content = await __response.Content.ReadAsStringAsync(
102+
#if NET5_0_OR_GREATER
103+
cancellationToken
104+
#endif
105+
).ConfigureAwait(false);
100106

101107
ProcessResponseContent(
102108
client: HttpClient,
@@ -150,7 +156,11 @@ partial void ProcessCreateThreadAndRunResponseContent(
150156
};
151157
}
152158

153-
using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
159+
using var __content = await __response.Content.ReadAsStreamAsync(
160+
#if NET5_0_OR_GREATER
161+
cancellationToken
162+
#endif
163+
).ConfigureAwait(false);
154164

155165
return
156166
await global::tryAGI.OpenAI.RunObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
@@ -216,7 +226,9 @@ partial void ProcessCreateThreadAndRunResponseContent(
216226
/// <param name="responseFormat"></param>
217227
/// <param name="cancellationToken">The token to cancel the operation with</param>
218228
/// <exception cref="global::System.InvalidOperationException"></exception>
229+
#if NET8_0_OR_GREATER
219230
[global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "TRYAGI_OPENAI_BETA_001")]
231+
#endif
220232
public async global::System.Threading.Tasks.Task<global::tryAGI.OpenAI.RunObject> CreateThreadAndRunAsync(
221233
string assistantId,
222234
global::tryAGI.OpenAI.CreateThreadRequest? thread = default,

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.DeleteAssistant.g.cs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ partial void ProcessDeleteAssistantResponseContent(
2727
/// <param name="assistantId"></param>
2828
/// <param name="cancellationToken">The token to cancel the operation with</param>
2929
/// <exception cref="global::tryAGI.OpenAI.ApiException"></exception>
30+
#if NET8_0_OR_GREATER
3031
[global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "TRYAGI_OPENAI_BETA_001")]
32+
#endif
3133
public async global::System.Threading.Tasks.Task<global::tryAGI.OpenAI.DeleteAssistantResponse> DeleteAssistantAsync(
3234
string assistantId,
3335
global::System.Threading.CancellationToken cancellationToken = default)
@@ -88,7 +90,11 @@ partial void ProcessDeleteAssistantResponseContent(
8890

8991
if (ReadResponseAsString)
9092
{
91-
var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
93+
var __content = await __response.Content.ReadAsStringAsync(
94+
#if NET5_0_OR_GREATER
95+
cancellationToken
96+
#endif
97+
).ConfigureAwait(false);
9298

9399
ProcessResponseContent(
94100
client: HttpClient,
@@ -142,7 +148,11 @@ partial void ProcessDeleteAssistantResponseContent(
142148
};
143149
}
144150

145-
using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
151+
using var __content = await __response.Content.ReadAsStreamAsync(
152+
#if NET5_0_OR_GREATER
153+
cancellationToken
154+
#endif
155+
).ConfigureAwait(false);
146156

147157
return
148158
await global::tryAGI.OpenAI.DeleteAssistantResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.DeleteMessage.g.cs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ partial void ProcessDeleteMessageResponseContent(
3030
/// <param name="messageId"></param>
3131
/// <param name="cancellationToken">The token to cancel the operation with</param>
3232
/// <exception cref="global::tryAGI.OpenAI.ApiException"></exception>
33+
#if NET8_0_OR_GREATER
3334
[global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "TRYAGI_OPENAI_BETA_001")]
35+
#endif
3436
public async global::System.Threading.Tasks.Task<global::tryAGI.OpenAI.DeleteMessageResponse> DeleteMessageAsync(
3537
string threadId,
3638
string messageId,
@@ -94,7 +96,11 @@ partial void ProcessDeleteMessageResponseContent(
9496

9597
if (ReadResponseAsString)
9698
{
97-
var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
99+
var __content = await __response.Content.ReadAsStringAsync(
100+
#if NET5_0_OR_GREATER
101+
cancellationToken
102+
#endif
103+
).ConfigureAwait(false);
98104

99105
ProcessResponseContent(
100106
client: HttpClient,
@@ -148,7 +154,11 @@ partial void ProcessDeleteMessageResponseContent(
148154
};
149155
}
150156

151-
using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
157+
using var __content = await __response.Content.ReadAsStreamAsync(
158+
#if NET5_0_OR_GREATER
159+
cancellationToken
160+
#endif
161+
).ConfigureAwait(false);
152162

153163
return
154164
await global::tryAGI.OpenAI.DeleteMessageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.DeleteThread.g.cs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ partial void ProcessDeleteThreadResponseContent(
2727
/// <param name="threadId"></param>
2828
/// <param name="cancellationToken">The token to cancel the operation with</param>
2929
/// <exception cref="global::tryAGI.OpenAI.ApiException"></exception>
30+
#if NET8_0_OR_GREATER
3031
[global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "TRYAGI_OPENAI_BETA_001")]
32+
#endif
3133
public async global::System.Threading.Tasks.Task<global::tryAGI.OpenAI.DeleteThreadResponse> DeleteThreadAsync(
3234
string threadId,
3335
global::System.Threading.CancellationToken cancellationToken = default)
@@ -88,7 +90,11 @@ partial void ProcessDeleteThreadResponseContent(
8890

8991
if (ReadResponseAsString)
9092
{
91-
var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
93+
var __content = await __response.Content.ReadAsStringAsync(
94+
#if NET5_0_OR_GREATER
95+
cancellationToken
96+
#endif
97+
).ConfigureAwait(false);
9298

9399
ProcessResponseContent(
94100
client: HttpClient,
@@ -142,7 +148,11 @@ partial void ProcessDeleteThreadResponseContent(
142148
};
143149
}
144150

145-
using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
151+
using var __content = await __response.Content.ReadAsStreamAsync(
152+
#if NET5_0_OR_GREATER
153+
cancellationToken
154+
#endif
155+
).ConfigureAwait(false);
146156

147157
return
148158
await global::tryAGI.OpenAI.DeleteThreadResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??

0 commit comments

Comments
 (0)