Skip to content

Commit

Permalink
Merge pull request #40 from tryAGI/bot/update-openapi_202408290120
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Aug 29, 2024
2 parents a560943 + be0158b commit 97f18a0
Show file tree
Hide file tree
Showing 197 changed files with 1,641 additions and 1,387 deletions.
1,712 changes: 850 additions & 862 deletions src/libs/LangSmith/Generated/JsonSerializerContextTypes.g.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ partial void ProcessCreateAnnotationQueueApiV1AnnotationQueuesPostResponseConten
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::LangSmith.AnnotationQueueSchema> CreateAnnotationQueueApiV1AnnotationQueuesPostAsync(
string name,
global::System.AnyOf<string?, object>? description = default,
global::System.AnyOf<string, object>? description = default,
global::System.DateTime createdAt = default,
global::System.DateTime updatedAt = default,
global::System.AnyOf<string, object>? defaultDataset = default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ partial void ProcessCreateIdentityAnnotationQueueRunStatusApiV1AnnotationQueuesS
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::LangSmith.CreateIdentityAnnotationQueueRunStatusApiV1AnnotationQueuesStatusAnnotationQueueRunIdPostResponse> CreateIdentityAnnotationQueueRunStatusApiV1AnnotationQueuesStatusAnnotationQueueRunIdPostAsync(
string annotationQueueRunId,
global::System.AnyOf<string?, object>? status = default,
global::System.AnyOf<string, object>? status = default,
global::System.AnyOf<global::System.DateTime?, object>? overrideAddedAt = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ public partial class AnnotationQueuesClient
partial void PrepareGetAnnotationQueuesApiV1AnnotationQueuesGetArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::System.AnyOf<global::System.Collections.Generic.IList<string>, object>? ids,
ref global::System.AnyOf<string?, object>? name,
ref global::System.AnyOf<string?, object>? nameContains,
ref global::System.AnyOf<string, object>? name,
ref global::System.AnyOf<string, object>? nameContains,
ref int offset,
ref int limit,
ref global::System.AnyOf<global::System.Collections.Generic.IList<string>, object>? tagValueId);
partial void PrepareGetAnnotationQueuesApiV1AnnotationQueuesGetRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
global::System.AnyOf<global::System.Collections.Generic.IList<string>, object>? ids,
global::System.AnyOf<string?, object>? name,
global::System.AnyOf<string?, object>? nameContains,
global::System.AnyOf<string, object>? name,
global::System.AnyOf<string, object>? nameContains,
int offset,
int limit,
global::System.AnyOf<global::System.Collections.Generic.IList<string>, object>? tagValueId);
Expand Down Expand Up @@ -48,8 +48,8 @@ partial void ProcessGetAnnotationQueuesApiV1AnnotationQueuesGetResponseContent(
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::System.Collections.Generic.IList<global::LangSmith.AnnotationQueueSchemaWithSize>> GetAnnotationQueuesApiV1AnnotationQueuesGetAsync(
global::System.AnyOf<global::System.Collections.Generic.IList<string>, object>? ids,
global::System.AnyOf<string?, object>? name,
global::System.AnyOf<string?, object>? nameContains,
global::System.AnyOf<string, object>? name,
global::System.AnyOf<string, object>? nameContains,
int offset,
int limit,
global::System.AnyOf<global::System.Collections.Generic.IList<string>, object>? tagValueId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ partial void ProcessUpdateAnnotationQueueApiV1AnnotationQueuesQueueIdPatchRespon
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::LangSmith.UpdateAnnotationQueueApiV1AnnotationQueuesQueueIdPatchResponse> UpdateAnnotationQueueApiV1AnnotationQueuesQueueIdPatchAsync(
string queueId,
global::System.AnyOf<string?, object>? name = default,
global::System.AnyOf<string?, object>? description = default,
global::System.AnyOf<string, object>? name = default,
global::System.AnyOf<string, object>? description = default,
global::System.AnyOf<string, object>? defaultDataset = default,
global::System.AnyOf<int?, object>? numReviewersPerItem = default,
bool enableReservations = true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ partial void ProcessCreateChartApiV1ChartsCreatePostResponseContent(
string title,
global::LangSmith.CustomChartType chartType,
global::System.Collections.Generic.IList<global::LangSmith.CustomChartSeriesCreate> series,
global::System.AnyOf<string?, object>? description = default,
global::System.AnyOf<string, object>? description = default,
global::System.AnyOf<int?, object>? index = default,
global::System.AnyOf<string, object>? sectionId = default,
global::System.AnyOf<global::LangSmith.CustomChartCreateMetadata, object>? metadata = default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ partial void ProcessCreateSectionApiV1ChartsSectionPostResponseContent(
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::LangSmith.CustomChartsSectionResponse> CreateSectionApiV1ChartsSectionPostAsync(
string title,
global::System.AnyOf<string?, object>? description = default,
global::System.AnyOf<string, object>? description = default,
global::System.AnyOf<int?, object>? index = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,21 @@ partial void PrepareReadSectionsApiV1ChartsSectionGetArguments(
global::System.Net.Http.HttpClient httpClient,
ref int limit,
ref int offset,
ref global::System.AnyOf<string?, object>? titleContains);
ref global::System.AnyOf<string, object>? titleContains,
ref global::System.AnyOf<global::System.Collections.Generic.IList<string>, object>? ids,
ref global::System.AnyOf<string, object>? sortBy,
ref global::System.AnyOf<bool?, object>? sortByDesc,
ref global::System.AnyOf<global::System.Collections.Generic.IList<string>, object>? tagValueId);
partial void PrepareReadSectionsApiV1ChartsSectionGetRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
int limit,
int offset,
global::System.AnyOf<string?, object>? titleContains);
global::System.AnyOf<string, object>? titleContains,
global::System.AnyOf<global::System.Collections.Generic.IList<string>, object>? ids,
global::System.AnyOf<string, object>? sortBy,
global::System.AnyOf<bool?, object>? sortByDesc,
global::System.AnyOf<global::System.Collections.Generic.IList<string>, object>? tagValueId);
partial void ProcessReadSectionsApiV1ChartsSectionGetResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
Expand All @@ -36,12 +44,24 @@ partial void ProcessReadSectionsApiV1ChartsSectionGetResponseContent(
/// Default Value: 0
/// </param>
/// <param name="titleContains"></param>
/// <param name="ids"></param>
/// <param name="sortBy">
/// Default Value: created_at
/// </param>
/// <param name="sortByDesc">
/// Default Value: true
/// </param>
/// <param name="tagValueId"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::System.Collections.Generic.IList<global::LangSmith.CustomChartsSectionResponse>> ReadSectionsApiV1ChartsSectionGetAsync(
int limit,
int offset,
global::System.AnyOf<string?, object>? titleContains,
global::System.AnyOf<string, object>? titleContains,
global::System.AnyOf<global::System.Collections.Generic.IList<string>, object>? ids,
global::System.AnyOf<string, object>? sortBy,
global::System.AnyOf<bool?, object>? sortByDesc,
global::System.AnyOf<global::System.Collections.Generic.IList<string>, object>? tagValueId,
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
Expand All @@ -50,11 +70,15 @@ partial void ProcessReadSectionsApiV1ChartsSectionGetResponseContent(
httpClient: _httpClient,
limit: ref limit,
offset: ref offset,
titleContains: ref titleContains);
titleContains: ref titleContains,
ids: ref ids,
sortBy: ref sortBy,
sortByDesc: ref sortByDesc,
tagValueId: ref tagValueId);

using var httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/api/v1/charts/section?limit={limit}&offset={offset}&title_contains={titleContains}", global::System.UriKind.RelativeOrAbsolute));
requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/api/v1/charts/section?limit={limit}&offset={offset}&title_contains={titleContains}&ids={ids}&sort_by={sortBy}&sort_by_desc={sortByDesc}&tag_value_id={tagValueId}", global::System.UriKind.RelativeOrAbsolute));

PrepareRequest(
client: _httpClient,
Expand All @@ -64,7 +88,11 @@ partial void ProcessReadSectionsApiV1ChartsSectionGetResponseContent(
httpRequestMessage: httpRequest,
limit: limit,
offset: offset,
titleContains: titleContains);
titleContains: titleContains,
ids: ids,
sortBy: sortBy,
sortByDesc: sortByDesc,
tagValueId: tagValueId);

using var response = await _httpClient.SendAsync(
request: httpRequest,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@

#nullable enable

namespace LangSmith
{
public partial class ChartsClient
{
partial void PrepareReadSingleSectionApiV1ChartsSectionSectionIdPostArguments(
global::System.Net.Http.HttpClient httpClient,
ref string sectionId,
global::LangSmith.CustomChartsRequestBase request);
partial void PrepareReadSingleSectionApiV1ChartsSectionSectionIdPostRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
string sectionId,
global::LangSmith.CustomChartsRequestBase request);
partial void ProcessReadSingleSectionApiV1ChartsSectionSectionIdPostResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);

partial void ProcessReadSingleSectionApiV1ChartsSectionSectionIdPostResponseContent(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage,
ref string content);

/// <summary>
/// Read Single Section<br/>
/// Get a single section by ID.
/// </summary>
/// <param name="sectionId"></param>
/// <param name="request"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::LangSmith.CustomChartsSection> ReadSingleSectionApiV1ChartsSectionSectionIdPostAsync(
string sectionId,
global::LangSmith.CustomChartsRequestBase request,
global::System.Threading.CancellationToken cancellationToken = default)
{
request = request ?? throw new global::System.ArgumentNullException(nameof(request));

PrepareArguments(
client: _httpClient);
PrepareReadSingleSectionApiV1ChartsSectionSectionIdPostArguments(
httpClient: _httpClient,
sectionId: ref sectionId,
request: request);

using var httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/api/v1/charts/section/{sectionId}", global::System.UriKind.RelativeOrAbsolute));
var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, global::LangSmith.SourceGenerationContext.Default.CustomChartsRequestBase);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
mediaType: "application/json");
httpRequest.Content = __httpRequestContent;

PrepareRequest(
client: _httpClient,
request: httpRequest);
PrepareReadSingleSectionApiV1ChartsSectionSectionIdPostRequest(
httpClient: _httpClient,
httpRequestMessage: httpRequest,
sectionId: sectionId,
request: request);

using var response = await _httpClient.SendAsync(
request: httpRequest,
completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
cancellationToken: cancellationToken).ConfigureAwait(false);

ProcessResponse(
client: _httpClient,
response: response);
ProcessReadSingleSectionApiV1ChartsSectionSectionIdPostResponse(
httpClient: _httpClient,
httpResponseMessage: response);

var __content = await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);

ProcessResponseContent(
client: _httpClient,
response: response,
content: ref __content);
ProcessReadSingleSectionApiV1ChartsSectionSectionIdPostResponseContent(
httpClient: _httpClient,
httpResponseMessage: response,
content: ref __content);

try
{
response.EnsureSuccessStatusCode();
}
catch (global::System.Net.Http.HttpRequestException ex)
{
throw new global::System.InvalidOperationException(__content, ex);
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::LangSmith.SourceGenerationContext.Default.CustomChartsSection) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}

/// <summary>
/// Read Single Section<br/>
/// Get a single section by ID.
/// </summary>
/// <param name="sectionId"></param>
/// <param name="timezone">
/// Default Value: UTC
/// </param>
/// <param name="startTime"></param>
/// <param name="endTime"></param>
/// <param name="stride"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::LangSmith.CustomChartsSection> ReadSingleSectionApiV1ChartsSectionSectionIdPostAsync(
string sectionId,
global::System.DateTime startTime,
string? timezone = "UTC",
global::System.AnyOf<global::System.DateTime?, object>? endTime = default,
global::System.AllOf<global::LangSmith.TimedeltaInput>? stride = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var request = new global::LangSmith.CustomChartsRequestBase
{
Timezone = timezone,
StartTime = startTime,
EndTime = endTime,
Stride = stride,
};

return await ReadSingleSectionApiV1ChartsSectionSectionIdPostAsync(
sectionId: sectionId,
request: request,
cancellationToken: cancellationToken).ConfigureAwait(false);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ partial void ProcessUpdateChartApiV1ChartsChartIdPatchResponseContent(
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::LangSmith.CustomChartResponse> UpdateChartApiV1ChartsChartIdPatchAsync(
string chartId,
global::System.AnyOf<string?, global::LangSmith.Missing>? title = default,
global::System.AnyOf<string?, global::LangSmith.Missing, object>? description = default,
global::System.AnyOf<string, global::LangSmith.Missing>? title = default,
global::System.AnyOf<string, global::LangSmith.Missing, object>? description = default,
global::System.AnyOf<int?, global::LangSmith.Missing>? index = default,
global::System.AnyOf<global::LangSmith.CustomChartType?, global::LangSmith.Missing>? chartType = default,
global::System.AnyOf<global::System.Collections.Generic.IList<global::LangSmith.CustomChartSeriesUpdate>, global::LangSmith.Missing>? series = default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ partial void ProcessUpdateSectionApiV1ChartsSectionSectionIdPatchResponseContent
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::LangSmith.CustomChartsSectionResponse> UpdateSectionApiV1ChartsSectionSectionIdPatchAsync(
string sectionId,
global::System.AnyOf<string?, global::LangSmith.Missing>? title = default,
global::System.AnyOf<string?, global::LangSmith.Missing, object>? description = default,
global::System.AnyOf<string, global::LangSmith.Missing>? title = default,
global::System.AnyOf<string, global::LangSmith.Missing, object>? description = default,
global::System.AnyOf<int?, global::LangSmith.Missing>? index = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ partial void ProcessCreateCommitApiV1CommitsOwnerRepoPostResponseContent(
string owner,
string repo,
global::LangSmith.CreateRepoCommitRequestManifest manifest,
global::System.AnyOf<string?, object>? parentCommit = default,
global::System.AnyOf<string, object>? parentCommit = default,
global::System.AnyOf<global::System.Collections.Generic.IList<string>, object>? exampleRunIds = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
Expand Down
Loading

0 comments on commit 97f18a0

Please sign in to comment.