Skip to content

Commit 986d9c1

Browse files
HavenDVgithub-actions[bot]
andauthored
feat: Updated OpenAPI spec (#230)
Co-authored-by: github-actions[bot] <[email protected]>
1 parent f49b050 commit 986d9c1

20 files changed

+122
-259
lines changed

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI..JsonSerializerContext.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,8 @@ namespace tryAGI.OpenAI
337337
typeof(global::tryAGI.OpenAI.JsonConverters.ComputerScreenshotImageTypeNullableJsonConverter),
338338
typeof(global::tryAGI.OpenAI.JsonConverters.ComputerCallOutputItemParamTypeJsonConverter),
339339
typeof(global::tryAGI.OpenAI.JsonConverters.ComputerCallOutputItemParamTypeNullableJsonConverter),
340-
typeof(global::tryAGI.OpenAI.JsonConverters.ComputerEnvironment1JsonConverter),
341-
typeof(global::tryAGI.OpenAI.JsonConverters.ComputerEnvironment1NullableJsonConverter),
340+
typeof(global::tryAGI.OpenAI.JsonConverters.ComputerEnvironmentJsonConverter),
341+
typeof(global::tryAGI.OpenAI.JsonConverters.ComputerEnvironmentNullableJsonConverter),
342342
typeof(global::tryAGI.OpenAI.JsonConverters.ComputerScreenshotContentTypeJsonConverter),
343343
typeof(global::tryAGI.OpenAI.JsonConverters.ComputerScreenshotContentTypeNullableJsonConverter),
344344
typeof(global::tryAGI.OpenAI.JsonConverters.ComputerToolCallStatusJsonConverter),

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.CreateConversation.g.cs

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ public partial class ConversationsClient
77
{
88
partial void PrepareCreateConversationArguments(
99
global::System.Net.Http.HttpClient httpClient,
10-
global::tryAGI.OpenAI.CreateConversationRequest request);
10+
global::tryAGI.OpenAI.CreateConversationBody request);
1111
partial void PrepareCreateConversationRequest(
1212
global::System.Net.Http.HttpClient httpClient,
1313
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
14-
global::tryAGI.OpenAI.CreateConversationRequest request);
14+
global::tryAGI.OpenAI.CreateConversationBody request);
1515
partial void ProcessCreateConversationResponse(
1616
global::System.Net.Http.HttpClient httpClient,
1717
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
@@ -29,7 +29,7 @@ partial void ProcessCreateConversationResponseContent(
2929
/// <param name="cancellationToken">The token to cancel the operation with</param>
3030
/// <exception cref="global::tryAGI.OpenAI.ApiException"></exception>
3131
public async global::System.Threading.Tasks.Task<global::tryAGI.OpenAI.ConversationResource> CreateConversationAsync(
32-
global::tryAGI.OpenAI.CreateConversationRequest request,
32+
global::tryAGI.OpenAI.CreateConversationBody request,
3333
global::System.Threading.CancellationToken cancellationToken = default)
3434
{
3535
request = request ?? throw new global::System.ArgumentNullException(nameof(request));
@@ -171,24 +171,17 @@ partial void ProcessCreateConversationResponseContent(
171171
/// Create a conversation.
172172
/// </summary>
173173
/// <param name="items">
174-
/// Initial items to include in the conversation context.<br/>
175-
/// You may add up to 20 items at a time.
176-
/// </param>
177-
/// <param name="metadata">
178-
/// Set of 16 key-value pairs that can be attached to an object. This can be<br/>
179-
/// useful for storing additional information about the object in a structured<br/>
180-
/// format, and querying for objects via API or the dashboard.<br/>
181-
/// Keys are strings with a maximum length of 64 characters. Values are strings<br/>
182-
/// with a maximum length of 512 characters.
174+
/// Initial items to include in the conversation context. You may add up to 20 items at a time.
183175
/// </param>
176+
/// <param name="metadata"></param>
184177
/// <param name="cancellationToken">The token to cancel the operation with</param>
185178
/// <exception cref="global::System.InvalidOperationException"></exception>
186179
public async global::System.Threading.Tasks.Task<global::tryAGI.OpenAI.ConversationResource> CreateConversationAsync(
187180
global::System.Collections.Generic.IList<global::tryAGI.OpenAI.InputItem>? items = default,
188-
global::System.Collections.Generic.Dictionary<string, string>? metadata = default,
181+
object? metadata = default,
189182
global::System.Threading.CancellationToken cancellationToken = default)
190183
{
191-
var __request = new global::tryAGI.OpenAI.CreateConversationRequest
184+
var __request = new global::tryAGI.OpenAI.CreateConversationBody
192185
{
193186
Items = items,
194187
Metadata = metadata,

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.DeleteConversation.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ partial void ProcessDeleteConversationResponseContent(
2323

2424
/// <summary>
2525
/// Delete a conversation<br/>
26-
/// Delete a conversation with the given ID.
26+
/// Delete a conversation. Items in the conversation will not be deleted.
2727
/// </summary>
2828
/// <param name="conversationId">
2929
/// Example: conv_123

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.GetConversation.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ partial void ProcessGetConversationResponseContent(
2323

2424
/// <summary>
2525
/// Retrieve a conversation<br/>
26-
/// Get a conversation with the given ID.
26+
/// Get a conversation
2727
/// </summary>
2828
/// <param name="conversationId">
2929
/// Example: conv_123

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.UpdateConversation.g.cs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ partial void ProcessUpdateConversationResponseContent(
2525

2626
/// <summary>
2727
/// Update a conversation<br/>
28-
/// Update a conversation's metadata with the given ID.
28+
/// Update a conversation
2929
/// </summary>
3030
/// <param name="conversationId">
3131
/// Example: conv_123
@@ -176,20 +176,23 @@ partial void ProcessUpdateConversationResponseContent(
176176

177177
/// <summary>
178178
/// Update a conversation<br/>
179-
/// Update a conversation's metadata with the given ID.
179+
/// Update a conversation
180180
/// </summary>
181181
/// <param name="conversationId">
182182
/// Example: conv_123
183183
/// </param>
184184
/// <param name="metadata">
185-
/// Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard.<br/>
186-
/// Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
185+
/// Set of 16 key-value pairs that can be attached to an object. This can be<br/>
186+
/// useful for storing additional information about the object in a structured<br/>
187+
/// format, and querying for objects via API or the dashboard.<br/>
188+
/// Keys are strings with a maximum length of 64 characters. Values are strings<br/>
189+
/// with a maximum length of 512 characters.
187190
/// </param>
188191
/// <param name="cancellationToken">The token to cancel the operation with</param>
189192
/// <exception cref="global::System.InvalidOperationException"></exception>
190193
public async global::System.Threading.Tasks.Task<global::tryAGI.OpenAI.ConversationResource> UpdateConversationAsync(
191194
string conversationId,
192-
global::System.Collections.Generic.Dictionary<string, string> metadata,
195+
global::System.Collections.Generic.Dictionary<string, string>? metadata,
193196
global::System.Threading.CancellationToken cancellationToken = default)
194197
{
195198
var __request = new global::tryAGI.OpenAI.UpdateConversationBody

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IConversationsClient.CreateConversation.g.cs

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,22 @@ public partial interface IConversationsClient
1212
/// <param name="cancellationToken">The token to cancel the operation with</param>
1313
/// <exception cref="global::tryAGI.OpenAI.ApiException"></exception>
1414
global::System.Threading.Tasks.Task<global::tryAGI.OpenAI.ConversationResource> CreateConversationAsync(
15-
global::tryAGI.OpenAI.CreateConversationRequest request,
15+
global::tryAGI.OpenAI.CreateConversationBody request,
1616
global::System.Threading.CancellationToken cancellationToken = default);
1717

1818
/// <summary>
1919
/// Create a conversation<br/>
2020
/// Create a conversation.
2121
/// </summary>
2222
/// <param name="items">
23-
/// Initial items to include in the conversation context.<br/>
24-
/// You may add up to 20 items at a time.
25-
/// </param>
26-
/// <param name="metadata">
27-
/// Set of 16 key-value pairs that can be attached to an object. This can be<br/>
28-
/// useful for storing additional information about the object in a structured<br/>
29-
/// format, and querying for objects via API or the dashboard.<br/>
30-
/// Keys are strings with a maximum length of 64 characters. Values are strings<br/>
31-
/// with a maximum length of 512 characters.
23+
/// Initial items to include in the conversation context. You may add up to 20 items at a time.
3224
/// </param>
25+
/// <param name="metadata"></param>
3326
/// <param name="cancellationToken">The token to cancel the operation with</param>
3427
/// <exception cref="global::System.InvalidOperationException"></exception>
3528
global::System.Threading.Tasks.Task<global::tryAGI.OpenAI.ConversationResource> CreateConversationAsync(
3629
global::System.Collections.Generic.IList<global::tryAGI.OpenAI.InputItem>? items = default,
37-
global::System.Collections.Generic.Dictionary<string, string>? metadata = default,
30+
object? metadata = default,
3831
global::System.Threading.CancellationToken cancellationToken = default);
3932
}
4033
}

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IConversationsClient.DeleteConversation.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ public partial interface IConversationsClient
66
{
77
/// <summary>
88
/// Delete a conversation<br/>
9-
/// Delete a conversation with the given ID.
9+
/// Delete a conversation. Items in the conversation will not be deleted.
1010
/// </summary>
1111
/// <param name="conversationId">
1212
/// Example: conv_123

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IConversationsClient.GetConversation.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ public partial interface IConversationsClient
66
{
77
/// <summary>
88
/// Retrieve a conversation<br/>
9-
/// Get a conversation with the given ID.
9+
/// Get a conversation
1010
/// </summary>
1111
/// <param name="conversationId">
1212
/// Example: conv_123

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IConversationsClient.UpdateConversation.g.cs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ public partial interface IConversationsClient
66
{
77
/// <summary>
88
/// Update a conversation<br/>
9-
/// Update a conversation's metadata with the given ID.
9+
/// Update a conversation
1010
/// </summary>
1111
/// <param name="conversationId">
1212
/// Example: conv_123
@@ -21,20 +21,23 @@ public partial interface IConversationsClient
2121

2222
/// <summary>
2323
/// Update a conversation<br/>
24-
/// Update a conversation's metadata with the given ID.
24+
/// Update a conversation
2525
/// </summary>
2626
/// <param name="conversationId">
2727
/// Example: conv_123
2828
/// </param>
2929
/// <param name="metadata">
30-
/// Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard.<br/>
31-
/// Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
30+
/// Set of 16 key-value pairs that can be attached to an object. This can be<br/>
31+
/// useful for storing additional information about the object in a structured<br/>
32+
/// format, and querying for objects via API or the dashboard.<br/>
33+
/// Keys are strings with a maximum length of 64 characters. Values are strings<br/>
34+
/// with a maximum length of 512 characters.
3235
/// </param>
3336
/// <param name="cancellationToken">The token to cancel the operation with</param>
3437
/// <exception cref="global::System.InvalidOperationException"></exception>
3538
global::System.Threading.Tasks.Task<global::tryAGI.OpenAI.ConversationResource> UpdateConversationAsync(
3639
string conversationId,
37-
global::System.Collections.Generic.Dictionary<string, string> metadata,
40+
global::System.Collections.Generic.Dictionary<string, string>? metadata,
3841
global::System.Threading.CancellationToken cancellationToken = default);
3942
}
4043
}

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ComputerEnvironment1.g.cs renamed to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ComputerEnvironment.g.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
namespace tryAGI.OpenAI.JsonConverters
44
{
55
/// <inheritdoc />
6-
public sealed class ComputerEnvironment1JsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::tryAGI.OpenAI.ComputerEnvironment1>
6+
public sealed class ComputerEnvironmentJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::tryAGI.OpenAI.ComputerEnvironment>
77
{
88
/// <inheritdoc />
9-
public override global::tryAGI.OpenAI.ComputerEnvironment1 Read(
9+
public override global::tryAGI.OpenAI.ComputerEnvironment Read(
1010
ref global::System.Text.Json.Utf8JsonReader reader,
1111
global::System.Type typeToConvert,
1212
global::System.Text.Json.JsonSerializerOptions options)
@@ -18,19 +18,19 @@ public sealed class ComputerEnvironment1JsonConverter : global::System.Text.Json
1818
var stringValue = reader.GetString();
1919
if (stringValue != null)
2020
{
21-
return global::tryAGI.OpenAI.ComputerEnvironment1Extensions.ToEnum(stringValue) ?? default;
21+
return global::tryAGI.OpenAI.ComputerEnvironmentExtensions.ToEnum(stringValue) ?? default;
2222
}
2323

2424
break;
2525
}
2626
case global::System.Text.Json.JsonTokenType.Number:
2727
{
2828
var numValue = reader.GetInt32();
29-
return (global::tryAGI.OpenAI.ComputerEnvironment1)numValue;
29+
return (global::tryAGI.OpenAI.ComputerEnvironment)numValue;
3030
}
3131
case global::System.Text.Json.JsonTokenType.Null:
3232
{
33-
return default(global::tryAGI.OpenAI.ComputerEnvironment1);
33+
return default(global::tryAGI.OpenAI.ComputerEnvironment);
3434
}
3535
default:
3636
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
@@ -42,12 +42,12 @@ public sealed class ComputerEnvironment1JsonConverter : global::System.Text.Json
4242
/// <inheritdoc />
4343
public override void Write(
4444
global::System.Text.Json.Utf8JsonWriter writer,
45-
global::tryAGI.OpenAI.ComputerEnvironment1 value,
45+
global::tryAGI.OpenAI.ComputerEnvironment value,
4646
global::System.Text.Json.JsonSerializerOptions options)
4747
{
4848
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
4949

50-
writer.WriteStringValue(global::tryAGI.OpenAI.ComputerEnvironment1Extensions.ToValueString(value));
50+
writer.WriteStringValue(global::tryAGI.OpenAI.ComputerEnvironmentExtensions.ToValueString(value));
5151
}
5252
}
5353
}

0 commit comments

Comments
 (0)