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:Add API endpoints for managing tracer sessions and filter views #101

Merged
merged 1 commit into from
Oct 21, 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
384 changes: 200 additions & 184 deletions src/libs/LangSmith/Generated/JsonSerializerContextTypes.g.cs

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions src/libs/LangSmith/Generated/LangSmith.ILangSmithApi.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,5 +160,10 @@ public partial interface ILangSmithApi : global::System.IDisposable
/// </summary>
public CommentsClient Comments { get; }

/// <summary>
///
/// </summary>
public TagsClient Tags { get; }

}
}
33 changes: 33 additions & 0 deletions src/libs/LangSmith/Generated/LangSmith.ITagsClient.CreateTag.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#nullable enable

namespace LangSmith
{
public partial interface ITagsClient
{
/// <summary>
/// Create Tag
/// </summary>
/// <param name="repo"></param>
/// <param name="request"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::LangSmith.RepoTag> CreateTagAsync(
string repo,
global::LangSmith.RepoTagRequest request,
global::System.Threading.CancellationToken cancellationToken = default);

/// <summary>
/// Create Tag
/// </summary>
/// <param name="repo"></param>
/// <param name="tagName"></param>
/// <param name="commitId"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::LangSmith.RepoTag> CreateTagAsync(
string repo,
string tagName,
global::System.Guid commitId,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
19 changes: 19 additions & 0 deletions src/libs/LangSmith/Generated/LangSmith.ITagsClient.DeleteTag.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#nullable enable

namespace LangSmith
{
public partial interface ITagsClient
{
/// <summary>
/// Delete Tag
/// </summary>
/// <param name="repo"></param>
/// <param name="tagName"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<string> DeleteTagAsync(
string repo,
string tagName,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
19 changes: 19 additions & 0 deletions src/libs/LangSmith/Generated/LangSmith.ITagsClient.GetTag.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#nullable enable

namespace LangSmith
{
public partial interface ITagsClient
{
/// <summary>
/// Get Tag
/// </summary>
/// <param name="repo"></param>
/// <param name="tagName"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::LangSmith.RepoTag> GetTagAsync(
string repo,
string tagName,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
17 changes: 17 additions & 0 deletions src/libs/LangSmith/Generated/LangSmith.ITagsClient.GetTags.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#nullable enable

namespace LangSmith
{
public partial interface ITagsClient
{
/// <summary>
/// Get Tags
/// </summary>
/// <param name="repo"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::System.Collections.Generic.IList<global::LangSmith.RepoTag>> GetTagsAsync(
string repo,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
35 changes: 35 additions & 0 deletions src/libs/LangSmith/Generated/LangSmith.ITagsClient.UpdateTag.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#nullable enable

namespace LangSmith
{
public partial interface ITagsClient
{
/// <summary>
/// Update Tag
/// </summary>
/// <param name="repo"></param>
/// <param name="tagName"></param>
/// <param name="request"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::LangSmith.RepoTag> UpdateTagAsync(
string repo,
string tagName,
global::LangSmith.RepoUpdateTagRequest request,
global::System.Threading.CancellationToken cancellationToken = default);

/// <summary>
/// Update Tag
/// </summary>
/// <param name="repo"></param>
/// <param name="tagName"></param>
/// <param name="commitId"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::LangSmith.RepoTag> UpdateTagAsync(
string repo,
string tagName,
global::System.Guid commitId,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
19 changes: 19 additions & 0 deletions src/libs/LangSmith/Generated/LangSmith.ITagsClient.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

#nullable enable

namespace LangSmith
{
/// <summary>
/// If no httpClient is provided, a new one will be created.<br/>
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
/// </summary>
public partial interface ITagsClient : global::System.IDisposable
{
/// <summary>
///
/// </summary>
global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }


}
}
8 changes: 8 additions & 0 deletions src/libs/LangSmith/Generated/LangSmith.LangSmithApi.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,14 @@ public sealed partial class LangSmithApi : global::LangSmith.ILangSmithApi, glob
JsonSerializerContext = JsonSerializerContext,
};

/// <summary>
///
/// </summary>
public TagsClient Tags => new TagsClient(_httpClient, authorizations: _authorizations)
{
JsonSerializerContext = JsonSerializerContext,
};

/// <summary>
/// Creates a new instance of the LangSmithApi.
/// If no httpClient is provided, a new one will be created.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ public sealed partial class BulkExportDestinationS3Config
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("endpoint_url")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string EndpointUrl { get; set; }
public string? EndpointUrl { get; set; }

/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@

#nullable enable

namespace LangSmith
{
/// <summary>
///
/// </summary>
public sealed partial class DeleteTagApiV1ReposOwnerRepoTagsTagNameDeleteResponse
{

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();


/// <summary>
/// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
/// </summary>
public string ToJson(
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
this.GetType(),
jsonSerializerContext);
}

/// <summary>
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
/// </summary>
#if NET8_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
#endif
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
}

/// <summary>
/// Deserializes a JSON string using the provided JsonSerializerContext.
/// </summary>
public static global::LangSmith.DeleteTagApiV1ReposOwnerRepoTagsTagNameDeleteResponse? FromJson(
string json,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
typeof(global::LangSmith.DeleteTagApiV1ReposOwnerRepoTagsTagNameDeleteResponse),
jsonSerializerContext) as global::LangSmith.DeleteTagApiV1ReposOwnerRepoTagsTagNameDeleteResponse;
}

/// <summary>
/// Deserializes a JSON string using the provided JsonSerializerOptions.
/// </summary>
#if NET8_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
#endif
public static global::LangSmith.DeleteTagApiV1ReposOwnerRepoTagsTagNameDeleteResponse? FromJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Deserialize<global::LangSmith.DeleteTagApiV1ReposOwnerRepoTagsTagNameDeleteResponse>(
json,
jsonSerializerOptions);
}

}
}
117 changes: 117 additions & 0 deletions src/libs/LangSmith/Generated/LangSmith.Models.RepoTag.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@

#nullable enable

namespace LangSmith
{
/// <summary>
/// Fields for a prompt tag
/// </summary>
public sealed partial class RepoTag
{
/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("id")]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.Guid Id { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("repo_id")]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.Guid RepoId { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("commit_id")]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.Guid CommitId { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("tag_name")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string TagName { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("created_at")]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.DateTime CreatedAt { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("updated_at")]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.DateTime UpdatedAt { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();


/// <summary>
/// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
/// </summary>
public string ToJson(
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
this.GetType(),
jsonSerializerContext);
}

/// <summary>
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
/// </summary>
#if NET8_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
#endif
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
}

/// <summary>
/// Deserializes a JSON string using the provided JsonSerializerContext.
/// </summary>
public static global::LangSmith.RepoTag? FromJson(
string json,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
typeof(global::LangSmith.RepoTag),
jsonSerializerContext) as global::LangSmith.RepoTag;
}

/// <summary>
/// Deserializes a JSON string using the provided JsonSerializerOptions.
/// </summary>
#if NET8_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
#endif
public static global::LangSmith.RepoTag? FromJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Deserialize<global::LangSmith.RepoTag>(
json,
jsonSerializerOptions);
}

}
}
Loading