Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:Update TracerSession schema with expanded performance and metrics tracking fields #163

Merged
merged 1 commit into from
Dec 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading