Skip to content

Commit

Permalink
feat: Updated OpenAPI spec
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 4, 2024
1 parent 36d0016 commit f569125
Show file tree
Hide file tree
Showing 16 changed files with 294 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@ public partial interface IPlaygroundSettingsClient
/// Create Playground Settings<br/>
/// Create playground settings.
/// </summary>
/// <param name="settings"></param>
/// <param name="name"></param>
/// <param name="description"></param>
/// <param name="settings"></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.PlaygroundSettingsResponse> CreatePlaygroundSettingsAsync(
object settings,
string? name = default,
string? description = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,15 @@ public partial interface IPlaygroundSettingsClient
/// </summary>
/// <param name="playgroundSettingsId"></param>
/// <param name="name"></param>
/// <param name="description"></param>
/// <param name="settings"></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.PlaygroundSettingsResponse> UpdatePlaygroundSettingsAsync(
string playgroundSettingsId,
string? name = default,
string? description = default,
object? settings = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ public partial interface ITracerSessionsClient
/// Default Value: false
/// </param>
/// <param name="filter"></param>
/// <param name="includeStats">
/// Default Value: true
/// </param>
/// <param name="accept"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::LangSmith.ApiException"></exception>
Expand All @@ -50,6 +53,7 @@ public partial interface ITracerSessionsClient
global::System.Collections.Generic.IList<global::System.Guid>? tagValueId = default,
bool? facets = default,
string? filter = default,
bool? includeStats = default,
string? accept = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ public sealed partial class CustomChartSeries
[global::System.Text.Json.Serialization.JsonPropertyName("feedback_key")]
public string? FeedbackKey { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")]
public global::System.Guid? WorkspaceId { get; set; }

/// <summary>
///
/// </summary>
Expand All @@ -57,20 +63,23 @@ public sealed partial class CustomChartSeries
/// Metrics you can chart. Feedback metrics are not available for organization-scoped charts.
/// </param>
/// <param name="feedbackKey"></param>
/// <param name="workspaceId"></param>
/// <param name="id"></param>
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
public CustomChartSeries(
string name,
global::LangSmith.CustomChartMetric metric,
global::System.Guid id,
global::LangSmith.CustomChartSeriesFilters? filters,
string? feedbackKey)
string? feedbackKey,
global::System.Guid? workspaceId)
{
this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name));
this.Metric = metric;
this.Id = id;
this.Filters = filters;
this.FeedbackKey = feedbackKey;
this.WorkspaceId = workspaceId;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ public sealed partial class CustomChartSeriesCreate
[global::System.Text.Json.Serialization.JsonPropertyName("feedback_key")]
public string? FeedbackKey { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")]
public global::System.Guid? WorkspaceId { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
Expand All @@ -50,17 +56,20 @@ public sealed partial class CustomChartSeriesCreate
/// Metrics you can chart. Feedback metrics are not available for organization-scoped charts.
/// </param>
/// <param name="feedbackKey"></param>
/// <param name="workspaceId"></param>
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
public CustomChartSeriesCreate(
string name,
global::LangSmith.CustomChartMetric metric,
global::LangSmith.CustomChartSeriesFilters? filters,
string? feedbackKey)
string? feedbackKey,
global::System.Guid? workspaceId)
{
this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name));
this.Metric = metric;
this.Filters = filters;
this.FeedbackKey = feedbackKey;
this.WorkspaceId = workspaceId;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ public sealed partial class CustomChartSeriesUpdate
[global::System.Text.Json.Serialization.JsonPropertyName("feedback_key")]
public string? FeedbackKey { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")]
public global::System.Guid? WorkspaceId { get; set; }

/// <summary>
///
/// </summary>
Expand All @@ -56,19 +62,22 @@ public sealed partial class CustomChartSeriesUpdate
/// Metrics you can chart. Feedback metrics are not available for organization-scoped charts.
/// </param>
/// <param name="feedbackKey"></param>
/// <param name="workspaceId"></param>
/// <param name="id"></param>
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
public CustomChartSeriesUpdate(
string name,
global::LangSmith.CustomChartMetric metric,
global::LangSmith.CustomChartSeriesFilters? filters,
string? feedbackKey,
global::System.Guid? workspaceId,
global::System.Guid? id)
{
this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name));
this.Metric = metric;
this.Filters = filters;
this.FeedbackKey = feedbackKey;
this.WorkspaceId = workspaceId;
this.Id = id;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,18 @@ public sealed partial class OrganizationConfig
[global::System.Text.Json.Serialization.JsonPropertyName("enable_custom_experiment_names")]
public bool? EnableCustomExperimentNames { get; set; }

/// <summary>
/// Default Value: false
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("enable_org_usage_charts")]
public bool? EnableOrgUsageCharts { get; set; }

/// <summary>
/// Default Value: false
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("enable_select_all_traces")]
public bool? EnableSelectAllTraces { get; set; }

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -206,6 +218,12 @@ public sealed partial class OrganizationConfig
/// <param name="enableCustomExperimentNames">
/// Default Value: false
/// </param>
/// <param name="enableOrgUsageCharts">
/// Default Value: false
/// </param>
/// <param name="enableSelectAllTraces">
/// Default Value: false
/// </param>
/// <param name="flags"></param>
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
public OrganizationConfig(
Expand All @@ -230,6 +248,8 @@ public OrganizationConfig(
bool? allowCustomIframes,
bool? enableLanggraphPricing,
bool? enableCustomExperimentNames,
bool? enableOrgUsageCharts,
bool? enableSelectAllTraces,
global::System.Collections.Generic.Dictionary<string, bool>? flags)
{
this.MaxIdentities = maxIdentities;
Expand All @@ -253,6 +273,8 @@ public OrganizationConfig(
this.AllowCustomIframes = allowCustomIframes;
this.EnableLanggraphPricing = enableLanggraphPricing;
this.EnableCustomExperimentNames = enableCustomExperimentNames;
this.EnableOrgUsageCharts = enableOrgUsageCharts;
this.EnableSelectAllTraces = enableSelectAllTraces;
this.Flags = flags;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,21 @@ public sealed partial class PlaygroundSettingsCreateRequest
/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("settings")]
[global::System.Text.Json.Serialization.JsonRequired]
public required object Settings { get; set; }
[global::System.Text.Json.Serialization.JsonPropertyName("name")]
public string? Name { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("name")]
public string? Name { get; set; }
[global::System.Text.Json.Serialization.JsonPropertyName("description")]
public string? Description { get; set; }

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

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand All @@ -30,15 +36,18 @@ public sealed partial class PlaygroundSettingsCreateRequest
/// <summary>
/// Initializes a new instance of the <see cref="PlaygroundSettingsCreateRequest" /> class.
/// </summary>
/// <param name="settings"></param>
/// <param name="name"></param>
/// <param name="description"></param>
/// <param name="settings"></param>
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
public PlaygroundSettingsCreateRequest(
object settings,
string? name)
string? name,
string? description)
{
this.Settings = settings ?? throw new global::System.ArgumentNullException(nameof(settings));
this.Name = name;
this.Description = description;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ public sealed partial class PlaygroundSettingsResponse
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.DateTime UpdatedAt { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("description")]
public string? Description { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
Expand All @@ -56,19 +62,22 @@ public sealed partial class PlaygroundSettingsResponse
/// <param name="name"></param>
/// <param name="createdAt"></param>
/// <param name="updatedAt"></param>
/// <param name="description"></param>
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
public PlaygroundSettingsResponse(
global::System.Guid id,
object settings,
global::System.DateTime createdAt,
global::System.DateTime updatedAt,
string? name)
string? name,
string? description)
{
this.Id = id;
this.Settings = settings ?? throw new global::System.ArgumentNullException(nameof(settings));
this.CreatedAt = createdAt;
this.UpdatedAt = updatedAt;
this.Name = name;
this.Description = description;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,18 @@ public sealed partial class PlaygroundSettingsUpdateRequest
[global::System.Text.Json.Serialization.JsonPropertyName("name")]
public string? Name { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("description")]
public string? Description { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("settings")]
public object? Settings { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
Expand All @@ -24,11 +36,17 @@ public sealed partial class PlaygroundSettingsUpdateRequest
/// Initializes a new instance of the <see cref="PlaygroundSettingsUpdateRequest" /> class.
/// </summary>
/// <param name="name"></param>
/// <param name="description"></param>
/// <param name="settings"></param>
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
public PlaygroundSettingsUpdateRequest(
string? name)
string? name,
string? description,
object? settings)
{
this.Name = name;
this.Description = description;
this.Settings = settings;
}

/// <summary>
Expand Down
Loading

0 comments on commit f569125

Please sign in to comment.