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, organizations, and queues #142

Merged
merged 1 commit into from
Nov 28, 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 @@ -208,12 +208,12 @@ partial void ProcessDatasetHandlerResponseContent(
object manifest,
global::System.Collections.Generic.Dictionary<string, string> secrets,
global::LangSmith.RunnableConfig options,
string projectName,
global::System.Guid datasetId,
string? runId = default,
string? repoId = default,
global::System.Collections.Generic.IList<object>? tools = default,
string? toolChoice = default,
string? projectName = default,
string? repoHandle = default,
string? owner = default,
string? commit = default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,12 @@ partial void ProcessStreamDatasetHandlerResponseContent(
object manifest,
global::System.Collections.Generic.Dictionary<string, string> secrets,
global::LangSmith.RunnableConfig options,
string projectName,
global::System.Guid datasetId,
string? runId = default,
string? repoId = default,
global::System.Collections.Generic.IList<object>? tools = default,
string? toolChoice = default,
string? projectName = default,
string? repoHandle = default,
string? owner = default,
string? commit = default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ public partial interface IDatasetsClient
object manifest,
global::System.Collections.Generic.Dictionary<string, string> secrets,
global::LangSmith.RunnableConfig options,
string projectName,
global::System.Guid datasetId,
string? runId = default,
string? repoId = default,
global::System.Collections.Generic.IList<object>? tools = default,
string? toolChoice = default,
string? projectName = default,
string? repoHandle = default,
string? owner = default,
string? commit = default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ public partial interface IDatasetsClient
object manifest,
global::System.Collections.Generic.Dictionary<string, string> secrets,
global::LangSmith.RunnableConfig options,
string projectName,
global::System.Guid datasetId,
string? runId = default,
string? repoId = default,
global::System.Collections.Generic.IList<object>? tools = default,
string? toolChoice = default,
string? projectName = default,
string? repoHandle = default,
string? owner = default,
string? commit = default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,12 @@ public sealed partial class OrganizationConfig
[global::System.Text.Json.Serialization.JsonPropertyName("enable_langgraph_pricing")]
public bool? EnableLanggraphPricing { get; set; }

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

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -197,6 +203,9 @@ public sealed partial class OrganizationConfig
/// <param name="enableLanggraphPricing">
/// Default Value: false
/// </param>
/// <param name="enableCustomExperimentNames">
/// Default Value: false
/// </param>
/// <param name="flags"></param>
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
public OrganizationConfig(
Expand All @@ -220,6 +229,7 @@ public OrganizationConfig(
bool? showPlaygroundPromptCanvas,
bool? allowCustomIframes,
bool? enableLanggraphPricing,
bool? enableCustomExperimentNames,
global::System.Collections.Generic.Dictionary<string, bool>? flags)
{
this.MaxIdentities = maxIdentities;
Expand All @@ -242,6 +252,7 @@ public OrganizationConfig(
this.ShowPlaygroundPromptCanvas = showPlaygroundPromptCanvas;
this.AllowCustomIframes = allowCustomIframes;
this.EnableLanggraphPricing = enableLanggraphPricing;
this.EnableCustomExperimentNames = enableCustomExperimentNames;
this.Flags = flags;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ public sealed partial class PlaygroundRunOverDatasetRequestSchema
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("project_name")]
public string? ProjectName { get; set; }
[global::System.Text.Json.Serialization.JsonRequired]
public required string ProjectName { get; set; }

/// <summary>
///
Expand Down Expand Up @@ -128,12 +129,12 @@ public PlaygroundRunOverDatasetRequestSchema(
object manifest,
global::System.Collections.Generic.Dictionary<string, string> secrets,
global::LangSmith.RunnableConfig options,
string projectName,
global::System.Guid datasetId,
string? runId,
string? repoId,
global::System.Collections.Generic.IList<object>? tools,
string? toolChoice,
string? projectName,
string? repoHandle,
string? owner,
string? commit,
Expand All @@ -143,12 +144,12 @@ public PlaygroundRunOverDatasetRequestSchema(
this.Manifest = manifest ?? throw new global::System.ArgumentNullException(nameof(manifest));
this.Secrets = secrets ?? throw new global::System.ArgumentNullException(nameof(secrets));
this.Options = options ?? throw new global::System.ArgumentNullException(nameof(options));
this.ProjectName = projectName ?? throw new global::System.ArgumentNullException(nameof(projectName));
this.DatasetId = datasetId;
this.RunId = runId;
this.RepoId = repoId;
this.Tools = tools;
this.ToolChoice = toolChoice;
this.ProjectName = projectName;
this.RepoHandle = repoHandle;
this.Owner = owner;
this.Commit = commit;
Expand Down
6 changes: 5 additions & 1 deletion src/libs/LangSmith/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16010,6 +16010,10 @@ components:
title: Enable Langgraph Pricing
type: boolean
default: false
enable_custom_experiment_names:
title: Enable Custom Experiment Names
type: boolean
default: false
flags:
title: Flags
type: object
Expand Down Expand Up @@ -16447,6 +16451,7 @@ components:
- manifest
- secrets
- options
- project_name
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Document the new required fields

The addition of project_name and dataset_id as required fields may impact existing API clients. Please ensure these fields are properly documented with:

  • Field descriptions
  • Format requirements
  • Example values
        - manifest
        - secrets
        - options
        - project_name
        - dataset_id
      type: object
      properties:
+        project_name:
+          type: string
+          description: "The unique identifier of the project"
+          example: "my-project-123"
+        dataset_id:
+          type: string
+          description: "The unique identifier of the associated dataset"
+          example: "dataset-456"

Committable suggestion skipped: line range outside the PR's diff.

- dataset_id
type: object
properties:
Expand Down Expand Up @@ -16479,7 +16484,6 @@ components:
project_name:
title: Project Name
type: string
nullable: true
repo_handle:
title: Repo Handle
type: string
Expand Down