Skip to content

Commit f9db5bb

Browse files
Merge pull request #107 from tryAGI/bot/update-openapi_202503171524
feat:@coderabbitai
2 parents 5936e9b + 046faf2 commit f9db5bb

8 files changed

+120
-117
lines changed

src/libs/AI21/Generated/AI21.Ai21Api.CreateMaestroRunStudioV1MaestroRunsPost.g.cs

+6-8
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,7 @@ partial void ProcessCreateMaestroRunStudioV1MaestroRunsPostResponseContent(
196196
/// <summary>
197197
/// Create Maestro Run
198198
/// </summary>
199-
/// <param name="messages">
200-
/// messages
201-
/// </param>
199+
/// <param name="input"></param>
202200
/// <param name="outputType"></param>
203201
/// <param name="models"></param>
204202
/// <param name="tools"></param>
@@ -207,30 +205,30 @@ partial void ProcessCreateMaestroRunStudioV1MaestroRunsPostResponseContent(
207205
/// Default Value: false
208206
/// </param>
209207
/// <param name="context"></param>
210-
/// <param name="constraints"></param>
208+
/// <param name="requirements"></param>
211209
/// <param name="cancellationToken">The token to cancel the operation with</param>
212210
/// <exception cref="global::System.InvalidOperationException"></exception>
213211
public async global::System.Threading.Tasks.Task<global::AI21.MaestroRunResult> CreateMaestroRunStudioV1MaestroRunsPostAsync(
214-
global::System.Collections.Generic.IList<global::AI21.Message> messages,
212+
global::AI21.AnyOf<global::System.Collections.Generic.IList<global::AI21.Message>, string> input,
215213
object? outputType = default,
216214
global::System.Collections.Generic.IList<string>? models = default,
217215
global::System.Collections.Generic.IList<global::System.Collections.Generic.Dictionary<string, global::AI21.CreateMaestroRunsPayloadTool2>>? tools = default,
218216
global::AI21.ToolResources? toolResources = default,
219217
bool? verbose = default,
220218
object? context = default,
221-
global::System.Collections.Generic.IList<global::AI21.Constraint>? constraints = default,
219+
global::System.Collections.Generic.IList<global::AI21.Requirement>? requirements = default,
222220
global::System.Threading.CancellationToken cancellationToken = default)
223221
{
224222
var __request = new global::AI21.CreateMaestroRunsPayload
225223
{
226-
Messages = messages,
224+
Input = input,
227225
OutputType = outputType,
228226
Models = models,
229227
Tools = tools,
230228
ToolResources = toolResources,
231229
Verbose = verbose,
232230
Context = context,
233-
Constraints = constraints,
231+
Requirements = requirements,
234232
};
235233

236234
return await CreateMaestroRunStudioV1MaestroRunsPostAsync(

src/libs/AI21/Generated/AI21.IAi21Api.CreateMaestroRunStudioV1MaestroRunsPost.g.cs

+4-6
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ public partial interface IAi21Api
1717
/// <summary>
1818
/// Create Maestro Run
1919
/// </summary>
20-
/// <param name="messages">
21-
/// messages
22-
/// </param>
20+
/// <param name="input"></param>
2321
/// <param name="outputType"></param>
2422
/// <param name="models"></param>
2523
/// <param name="tools"></param>
@@ -28,18 +26,18 @@ public partial interface IAi21Api
2826
/// Default Value: false
2927
/// </param>
3028
/// <param name="context"></param>
31-
/// <param name="constraints"></param>
29+
/// <param name="requirements"></param>
3230
/// <param name="cancellationToken">The token to cancel the operation with</param>
3331
/// <exception cref="global::System.InvalidOperationException"></exception>
3432
global::System.Threading.Tasks.Task<global::AI21.MaestroRunResult> CreateMaestroRunStudioV1MaestroRunsPostAsync(
35-
global::System.Collections.Generic.IList<global::AI21.Message> messages,
33+
global::AI21.AnyOf<global::System.Collections.Generic.IList<global::AI21.Message>, string> input,
3634
object? outputType = default,
3735
global::System.Collections.Generic.IList<string>? models = default,
3836
global::System.Collections.Generic.IList<global::System.Collections.Generic.Dictionary<string, global::AI21.CreateMaestroRunsPayloadTool2>>? tools = default,
3937
global::AI21.ToolResources? toolResources = default,
4038
bool? verbose = default,
4139
object? context = default,
42-
global::System.Collections.Generic.IList<global::AI21.Constraint>? constraints = default,
40+
global::System.Collections.Generic.IList<global::AI21.Requirement>? requirements = default,
4341
global::System.Threading.CancellationToken cancellationToken = default);
4442
}
4543
}

src/libs/AI21/Generated/AI21.Models.CreateMaestroRunsPayload.g.cs

+14-13
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11

2+
#pragma warning disable CS0618 // Type or member is obsolete
3+
24
#nullable enable
35

46
namespace AI21
@@ -9,11 +11,12 @@ namespace AI21
911
public sealed partial class CreateMaestroRunsPayload
1012
{
1113
/// <summary>
12-
/// messages
14+
///
1315
/// </summary>
14-
[global::System.Text.Json.Serialization.JsonPropertyName("messages")]
16+
[global::System.Text.Json.Serialization.JsonPropertyName("input")]
17+
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::AI21.JsonConverters.AnyOfJsonConverter<global::System.Collections.Generic.IList<global::AI21.Message>, string>))]
1518
[global::System.Text.Json.Serialization.JsonRequired]
16-
public required global::System.Collections.Generic.IList<global::AI21.Message> Messages { get; set; }
19+
public required global::AI21.AnyOf<global::System.Collections.Generic.IList<global::AI21.Message>, string> Input { get; set; }
1720

1821
/// <summary>
1922
///
@@ -54,8 +57,8 @@ public sealed partial class CreateMaestroRunsPayload
5457
/// <summary>
5558
///
5659
/// </summary>
57-
[global::System.Text.Json.Serialization.JsonPropertyName("constraints")]
58-
public global::System.Collections.Generic.IList<global::AI21.Constraint>? Constraints { get; set; }
60+
[global::System.Text.Json.Serialization.JsonPropertyName("requirements")]
61+
public global::System.Collections.Generic.IList<global::AI21.Requirement>? Requirements { get; set; }
5962

6063
/// <summary>
6164
/// Additional properties that are not explicitly defined in the schema
@@ -66,9 +69,7 @@ public sealed partial class CreateMaestroRunsPayload
6669
/// <summary>
6770
/// Initializes a new instance of the <see cref="CreateMaestroRunsPayload" /> class.
6871
/// </summary>
69-
/// <param name="messages">
70-
/// messages
71-
/// </param>
72+
/// <param name="input"></param>
7273
/// <param name="outputType"></param>
7374
/// <param name="models"></param>
7475
/// <param name="tools"></param>
@@ -77,28 +78,28 @@ public sealed partial class CreateMaestroRunsPayload
7778
/// Default Value: false
7879
/// </param>
7980
/// <param name="context"></param>
80-
/// <param name="constraints"></param>
81+
/// <param name="requirements"></param>
8182
#if NET7_0_OR_GREATER
8283
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
8384
#endif
8485
public CreateMaestroRunsPayload(
85-
global::System.Collections.Generic.IList<global::AI21.Message> messages,
86+
global::AI21.AnyOf<global::System.Collections.Generic.IList<global::AI21.Message>, string> input,
8687
object? outputType,
8788
global::System.Collections.Generic.IList<string>? models,
8889
global::System.Collections.Generic.IList<global::System.Collections.Generic.Dictionary<string, global::AI21.CreateMaestroRunsPayloadTool2>>? tools,
8990
global::AI21.ToolResources? toolResources,
9091
bool? verbose,
9192
object? context,
92-
global::System.Collections.Generic.IList<global::AI21.Constraint>? constraints)
93+
global::System.Collections.Generic.IList<global::AI21.Requirement>? requirements)
9394
{
94-
this.Messages = messages ?? throw new global::System.ArgumentNullException(nameof(messages));
95+
this.Input = input;
9596
this.OutputType = outputType;
9697
this.Models = models;
9798
this.Tools = tools;
9899
this.ToolResources = toolResources;
99100
this.Verbose = verbose;
100101
this.Context = context;
101-
this.Constraints = constraints;
102+
this.Requirements = requirements;
102103
}
103104

104105
/// <summary>

src/libs/AI21/Generated/AI21.Models.Constraint.Json.g.cs src/libs/AI21/Generated/AI21.Models.Requirement.Json.g.cs

+11-11
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace AI21
44
{
5-
public sealed partial class Constraint
5+
public sealed partial class Requirement
66
{
77
/// <summary>
88
/// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
@@ -34,14 +34,14 @@ public string ToJson(
3434
/// <summary>
3535
/// Deserializes a JSON string using the provided JsonSerializerContext.
3636
/// </summary>
37-
public static global::AI21.Constraint? FromJson(
37+
public static global::AI21.Requirement? FromJson(
3838
string json,
3939
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
4040
{
4141
return global::System.Text.Json.JsonSerializer.Deserialize(
4242
json,
43-
typeof(global::AI21.Constraint),
44-
jsonSerializerContext) as global::AI21.Constraint;
43+
typeof(global::AI21.Requirement),
44+
jsonSerializerContext) as global::AI21.Requirement;
4545
}
4646

4747
/// <summary>
@@ -51,26 +51,26 @@ public string ToJson(
5151
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
5252
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
5353
#endif
54-
public static global::AI21.Constraint? FromJson(
54+
public static global::AI21.Requirement? FromJson(
5555
string json,
5656
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
5757
{
58-
return global::System.Text.Json.JsonSerializer.Deserialize<global::AI21.Constraint>(
58+
return global::System.Text.Json.JsonSerializer.Deserialize<global::AI21.Requirement>(
5959
json,
6060
jsonSerializerOptions);
6161
}
6262

6363
/// <summary>
6464
/// Deserializes a JSON stream using the provided JsonSerializerContext.
6565
/// </summary>
66-
public static async global::System.Threading.Tasks.ValueTask<global::AI21.Constraint?> FromJsonStreamAsync(
66+
public static async global::System.Threading.Tasks.ValueTask<global::AI21.Requirement?> FromJsonStreamAsync(
6767
global::System.IO.Stream jsonStream,
6868
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
6969
{
7070
return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
7171
jsonStream,
72-
typeof(global::AI21.Constraint),
73-
jsonSerializerContext).ConfigureAwait(false)) as global::AI21.Constraint;
72+
typeof(global::AI21.Requirement),
73+
jsonSerializerContext).ConfigureAwait(false)) as global::AI21.Requirement;
7474
}
7575

7676
/// <summary>
@@ -80,11 +80,11 @@ public string ToJson(
8080
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
8181
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
8282
#endif
83-
public static global::System.Threading.Tasks.ValueTask<global::AI21.Constraint?> FromJsonStreamAsync(
83+
public static global::System.Threading.Tasks.ValueTask<global::AI21.Requirement?> FromJsonStreamAsync(
8484
global::System.IO.Stream jsonStream,
8585
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
8686
{
87-
return global::System.Text.Json.JsonSerializer.DeserializeAsync<global::AI21.Constraint?>(
87+
return global::System.Text.Json.JsonSerializer.DeserializeAsync<global::AI21.Requirement?>(
8888
jsonStream,
8989
jsonSerializerOptions);
9090
}

src/libs/AI21/Generated/AI21.Models.Constraint.g.cs src/libs/AI21/Generated/AI21.Models.Requirement.g.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace AI21
66
/// <summary>
77
///
88
/// </summary>
9-
public sealed partial class Constraint
9+
public sealed partial class Requirement
1010
{
1111
/// <summary>
1212
///
@@ -35,15 +35,15 @@ public sealed partial class Constraint
3535
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();
3636

3737
/// <summary>
38-
/// Initializes a new instance of the <see cref="Constraint" /> class.
38+
/// Initializes a new instance of the <see cref="Requirement" /> class.
3939
/// </summary>
4040
/// <param name="name"></param>
4141
/// <param name="description"></param>
4242
/// <param name="isMandatory"></param>
4343
#if NET7_0_OR_GREATER
4444
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
4545
#endif
46-
public Constraint(
46+
public Requirement(
4747
string name,
4848
string description,
4949
bool? isMandatory)
@@ -54,9 +54,9 @@ public Constraint(
5454
}
5555

5656
/// <summary>
57-
/// Initializes a new instance of the <see cref="Constraint" /> class.
57+
/// Initializes a new instance of the <see cref="Requirement" /> class.
5858
/// </summary>
59-
public Constraint()
59+
public Requirement()
6060
{
6161
}
6262
}

src/libs/AI21/Generated/JsonSerializerContext.g.cs

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ namespace AI21
6060
typeof(global::AI21.JsonConverters.AnyOfJsonConverter<global::System.Collections.Generic.IList<global::System.Guid>, global::System.Collections.Generic.IList<string>>),
6161
typeof(global::AI21.JsonConverters.AnyOfJsonConverter<global::AI21.ChatStreamingFirstDelta, global::AI21.ChatStreamingContentDelta>),
6262
typeof(global::AI21.JsonConverters.AnyOfJsonConverter<string, global::System.Collections.Generic.IList<string>>),
63+
typeof(global::AI21.JsonConverters.AnyOfJsonConverter<global::System.Collections.Generic.IList<global::AI21.Message>, string>),
6364
typeof(global::AI21.JsonConverters.AnyOfJsonConverter<string, int?>),
6465
typeof(global::AI21.JsonConverters.AnyOfJsonConverter<global::AI21.ChatCompletion, global::System.Collections.Generic.IList<global::AI21.ChatCompletionVllmStreamingMessage>>),
6566
typeof(global::AI21.JsonConverters.UnixTimestampJsonConverter),

0 commit comments

Comments
 (0)