Skip to content

Commit

Permalink
Merge pull request #163 from tryAGI/bot/update-openapi_202412302117
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Dec 30, 2024
2 parents e48da28 + 2d60197 commit 5b94a4c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,15 @@ public partial interface IRunClient
/// <param name="excludeS3StoredAttributes">
/// Default Value: false
/// </param>
/// <param name="excludeSerialized">
/// Default Value: false
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::LangSmith.ApiException"></exception>
global::System.Threading.Tasks.Task<global::LangSmith.RunSchema> ReadRunAsync(
global::System.Guid runId,
bool? excludeS3StoredAttributes = default,
bool? excludeSerialized = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
17 changes: 13 additions & 4 deletions src/libs/LangSmith/Generated/LangSmith.RunClient.ReadRun.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ public partial class RunClient
partial void PrepareReadRunArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::System.Guid runId,
ref bool? excludeS3StoredAttributes);
ref bool? excludeS3StoredAttributes,
ref bool? excludeSerialized);
partial void PrepareReadRunRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
global::System.Guid runId,
bool? excludeS3StoredAttributes);
bool? excludeS3StoredAttributes,
bool? excludeSerialized);
partial void ProcessReadRunResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
Expand All @@ -31,25 +33,31 @@ partial void ProcessReadRunResponseContent(
/// <param name="excludeS3StoredAttributes">
/// Default Value: false
/// </param>
/// <param name="excludeSerialized">
/// Default Value: false
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::LangSmith.ApiException"></exception>
public async global::System.Threading.Tasks.Task<global::LangSmith.RunSchema> ReadRunAsync(
global::System.Guid runId,
bool? excludeS3StoredAttributes = default,
bool? excludeSerialized = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
PrepareReadRunArguments(
httpClient: HttpClient,
runId: ref runId,
excludeS3StoredAttributes: ref excludeS3StoredAttributes);
excludeS3StoredAttributes: ref excludeS3StoredAttributes,
excludeSerialized: ref excludeSerialized);

var __pathBuilder = new PathBuilder(
path: $"/api/v1/runs/{runId}",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("exclude_s3_stored_attributes", excludeS3StoredAttributes?.ToString())
.AddOptionalParameter("exclude_serialized", excludeSerialized?.ToString())
;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
Expand Down Expand Up @@ -83,7 +91,8 @@ partial void ProcessReadRunResponseContent(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
runId: runId,
excludeS3StoredAttributes: excludeS3StoredAttributes);
excludeS3StoredAttributes: excludeS3StoredAttributes,
excludeSerialized: excludeSerialized);

using var __response = await HttpClient.SendAsync(
request: __httpRequest,
Expand Down
6 changes: 6 additions & 0 deletions src/libs/LangSmith/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4231,6 +4231,12 @@ paths:
title: Exclude S3 Stored Attributes
type: boolean
default: false
- name: exclude_serialized
in: query
schema:
title: Exclude Serialized
type: boolean
default: false
responses:
'200':
description: Successful Response
Expand Down

0 comments on commit 5b94a4c

Please sign in to comment.