-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from tryAGI/bot/update-openapi_202408290120
feat:@coderabbitai
- Loading branch information
Showing
197 changed files
with
1,641 additions
and
1,387 deletions.
There are no files selected for viewing
1,712 changes: 850 additions & 862 deletions
1,712
src/libs/LangSmith/Generated/JsonSerializerContextTypes.g.cs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
139 changes: 139 additions & 0 deletions
139
...th/Generated/LangSmith.ChartsClient.ReadSingleSectionApiV1ChartsSectionSectionIdPost.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.