Skip to content

Commit 352173e

Browse files
Merge pull request #68 from tryAGI/bot/update-openapi_202409232117
feat:@coderabbitai
2 parents a217a0a + 5258010 commit 352173e

File tree

4 files changed

+30
-10
lines changed

4 files changed

+30
-10
lines changed

src/libs/LangSmith/Generated/LangSmith.IRunClient.TriggerRules.g.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ public partial interface IRunClient
2020
/// Trigger an array of run rules manually.
2121
/// </summary>
2222
/// <param name="ruleIds"></param>
23+
/// <param name="datasetId"></param>
2324
/// <param name="cancellationToken">The token to cancel the operation with</param>
2425
/// <exception cref="global::System.InvalidOperationException"></exception>
2526
global::System.Threading.Tasks.Task<global::LangSmith.TriggerRulesApiV1RunsRulesTriggerPostResponse> TriggerRulesAsync(
26-
global::System.Collections.Generic.IList<global::System.Guid> ruleIds,
27+
global::LangSmith.AnyOf<global::System.Collections.Generic.IList<global::System.Guid>, object>? ruleIds = default,
28+
global::LangSmith.AnyOf<global::System.Guid?, object>? datasetId = default,
2729
global::System.Threading.CancellationToken cancellationToken = default);
2830
}
2931
}

src/libs/LangSmith/Generated/LangSmith.Models.TriggerRulesRequest.g.cs

Lines changed: 11 additions & 2 deletions
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 LangSmith
@@ -12,8 +14,15 @@ public sealed partial class TriggerRulesRequest
1214
///
1315
/// </summary>
1416
[global::System.Text.Json.Serialization.JsonPropertyName("rule_ids")]
15-
[global::System.Text.Json.Serialization.JsonRequired]
16-
public required global::System.Collections.Generic.IList<global::System.Guid> RuleIds { get; set; }
17+
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::LangSmith.JsonConverters.AnyOfJsonConverterFactory2))]
18+
public global::LangSmith.AnyOf<global::System.Collections.Generic.IList<global::System.Guid>, object>? RuleIds { get; set; }
19+
20+
/// <summary>
21+
///
22+
/// </summary>
23+
[global::System.Text.Json.Serialization.JsonPropertyName("dataset_id")]
24+
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::LangSmith.JsonConverters.AnyOfJsonConverterFactory2))]
25+
public global::LangSmith.AnyOf<global::System.Guid?, object>? DatasetId { get; set; }
1726

1827
/// <summary>
1928
/// Additional properties that are not explicitly defined in the schema

src/libs/LangSmith/Generated/LangSmith.RunClient.TriggerRules.g.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,18 @@ partial void ProcessTriggerRulesResponseContent(
104104
/// Trigger an array of run rules manually.
105105
/// </summary>
106106
/// <param name="ruleIds"></param>
107+
/// <param name="datasetId"></param>
107108
/// <param name="cancellationToken">The token to cancel the operation with</param>
108109
/// <exception cref="global::System.InvalidOperationException"></exception>
109110
public async global::System.Threading.Tasks.Task<global::LangSmith.TriggerRulesApiV1RunsRulesTriggerPostResponse> TriggerRulesAsync(
110-
global::System.Collections.Generic.IList<global::System.Guid> ruleIds,
111+
global::LangSmith.AnyOf<global::System.Collections.Generic.IList<global::System.Guid>, object>? ruleIds = default,
112+
global::LangSmith.AnyOf<global::System.Guid?, object>? datasetId = default,
111113
global::System.Threading.CancellationToken cancellationToken = default)
112114
{
113115
var request = new global::LangSmith.TriggerRulesRequest
114116
{
115117
RuleIds = ruleIds,
118+
DatasetId = datasetId,
116119
};
117120

118121
return await TriggerRulesAsync(

src/libs/LangSmith/openapi.yaml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18920,16 +18920,22 @@ components:
1892018920
description: TracerSession schema.
1892118921
TriggerRulesRequest:
1892218922
title: TriggerRulesRequest
18923-
required:
18924-
- rule_ids
1892518923
type: object
1892618924
properties:
1892718925
rule_ids:
1892818926
title: Rule Ids
18929-
type: array
18930-
items:
18931-
type: string
18932-
format: uuid
18927+
anyOf:
18928+
- type: array
18929+
items:
18930+
type: string
18931+
format: uuid
18932+
- type: 'null'
18933+
dataset_id:
18934+
title: Dataset Id
18935+
anyOf:
18936+
- type: string
18937+
format: uuid
18938+
- type: 'null'
1893318939
UpdateFeedbackConfigSchema:
1893418940
title: UpdateFeedbackConfigSchema
1893518941
required:

0 commit comments

Comments
 (0)