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 API Endpoints and Schemas for Tracer Sessions, Datasets, and Runs #122

Merged
merged 1 commit into from
Nov 6, 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 @@ -47,7 +47,7 @@ public partial interface IPublicClient
/// Default Value: 100
/// </param>
/// <param name="select">
/// Default Value: [id, name, run_type, start_time, end_time, status, error, extra, events, inputs, outputs, parent_run_id, manifest_id, manifest_s3_id, session_id, serialized, reference_example_id, total_tokens, prompt_tokens, completion_tokens, total_cost, prompt_cost, completion_cost, price_model_id, first_token_time, trace_id, dotted_order, last_queued_at, feedback_stats, parent_run_ids, tags, in_dataset, app_path, share_token, trace_tier, trace_first_received_at, ttl_seconds, trace_upgrade]
/// Default Value: [id, name, run_type, start_time, end_time, status, error, extra, events, inputs, outputs, parent_run_id, manifest_id, manifest_s3_id, session_id, serialized, reference_example_id, reference_dataset_id, total_tokens, prompt_tokens, completion_tokens, total_cost, prompt_cost, completion_cost, price_model_id, first_token_time, trace_id, dotted_order, last_queued_at, feedback_stats, parent_run_ids, tags, in_dataset, app_path, share_token, trace_tier, trace_first_received_at, ttl_seconds, trace_upgrade]
/// </param>
/// <param name="order">
/// Enum for run start date order.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public partial interface IRunClient
/// Default Value: 100
/// </param>
/// <param name="select">
/// Default Value: [id, name, run_type, start_time, end_time, status, error, extra, events, inputs, outputs, parent_run_id, manifest_id, manifest_s3_id, session_id, serialized, reference_example_id, total_tokens, prompt_tokens, completion_tokens, total_cost, prompt_cost, completion_cost, price_model_id, first_token_time, trace_id, dotted_order, last_queued_at, feedback_stats, parent_run_ids, tags, in_dataset, app_path, share_token, trace_tier, trace_first_received_at, ttl_seconds, trace_upgrade]
/// Default Value: [id, name, run_type, start_time, end_time, status, error, extra, events, inputs, outputs, parent_run_id, manifest_id, manifest_s3_id, session_id, serialized, reference_example_id, reference_dataset_id, total_tokens, prompt_tokens, completion_tokens, total_cost, prompt_cost, completion_cost, price_model_id, first_token_time, trace_id, dotted_order, last_queued_at, feedback_stats, parent_run_ids, tags, in_dataset, app_path, share_token, trace_tier, trace_first_received_at, ttl_seconds, trace_upgrade]
/// </param>
/// <param name="order">
/// Enum for run start date order.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public sealed partial class BodyParamsForRunSchema
public int? Limit { get; set; }

/// <summary>
/// Default Value: [id, name, run_type, start_time, end_time, status, error, extra, events, inputs, outputs, parent_run_id, manifest_id, manifest_s3_id, session_id, serialized, reference_example_id, total_tokens, prompt_tokens, completion_tokens, total_cost, prompt_cost, completion_cost, price_model_id, first_token_time, trace_id, dotted_order, last_queued_at, feedback_stats, parent_run_ids, tags, in_dataset, app_path, share_token, trace_tier, trace_first_received_at, ttl_seconds, trace_upgrade]
/// Default Value: [id, name, run_type, start_time, end_time, status, error, extra, events, inputs, outputs, parent_run_id, manifest_id, manifest_s3_id, session_id, serialized, reference_example_id, reference_dataset_id, total_tokens, prompt_tokens, completion_tokens, total_cost, prompt_cost, completion_cost, price_model_id, first_token_time, trace_id, dotted_order, last_queued_at, feedback_stats, parent_run_ids, tags, in_dataset, app_path, share_token, trace_tier, trace_first_received_at, ttl_seconds, trace_upgrade]
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("select")]
public global::System.Collections.Generic.IList<global::LangSmith.RunSelect>? Select { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ public sealed partial class OrganizationConfig
[global::System.Text.Json.Serialization.JsonPropertyName("show_playground_prompt_canvas")]
public bool? ShowPlaygroundPromptCanvas { get; set; }

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

/// <summary>
///
/// </summary>
Expand Down
6 changes: 6 additions & 0 deletions src/libs/LangSmith/Generated/LangSmith.Models.RunSchema.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,12 @@ public sealed partial class RunSchema
[global::System.Text.Json.Serialization.JsonPropertyName("trace_upgrade")]
public bool? TraceUpgrade { get; set; }

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

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,12 @@ public sealed partial class RunSchemaWithAnnotationQueueInfo
[global::System.Text.Json.Serialization.JsonPropertyName("trace_upgrade")]
public bool? TraceUpgrade { get; set; }

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

/// <summary>
///
/// </summary>
Expand Down
6 changes: 6 additions & 0 deletions src/libs/LangSmith/Generated/LangSmith.Models.RunSelect.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ public enum RunSelect
/// <summary>
///
/// </summary>
ReferenceDatasetId,
/// <summary>
///
/// </summary>
TotalTokens,
/// <summary>
///
Expand Down Expand Up @@ -245,6 +249,7 @@ public static string ToValueString(this RunSelect value)
RunSelect.SessionId => "session_id",
RunSelect.Serialized => "serialized",
RunSelect.ReferenceExampleId => "reference_example_id",
RunSelect.ReferenceDatasetId => "reference_dataset_id",
RunSelect.TotalTokens => "total_tokens",
RunSelect.PromptTokens => "prompt_tokens",
RunSelect.CompletionTokens => "completion_tokens",
Expand Down Expand Up @@ -304,6 +309,7 @@ public static string ToValueString(this RunSelect value)
"session_id" => RunSelect.SessionId,
"serialized" => RunSelect.Serialized,
"reference_example_id" => RunSelect.ReferenceExampleId,
"reference_dataset_id" => RunSelect.ReferenceDatasetId,
"total_tokens" => RunSelect.TotalTokens,
"prompt_tokens" => RunSelect.PromptTokens,
"completion_tokens" => RunSelect.CompletionTokens,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ partial void ProcessQuerySharedDatasetRunsResponseContent(
/// Default Value: 100
/// </param>
/// <param name="select">
/// Default Value: [id, name, run_type, start_time, end_time, status, error, extra, events, inputs, outputs, parent_run_id, manifest_id, manifest_s3_id, session_id, serialized, reference_example_id, total_tokens, prompt_tokens, completion_tokens, total_cost, prompt_cost, completion_cost, price_model_id, first_token_time, trace_id, dotted_order, last_queued_at, feedback_stats, parent_run_ids, tags, in_dataset, app_path, share_token, trace_tier, trace_first_received_at, ttl_seconds, trace_upgrade]
/// Default Value: [id, name, run_type, start_time, end_time, status, error, extra, events, inputs, outputs, parent_run_id, manifest_id, manifest_s3_id, session_id, serialized, reference_example_id, reference_dataset_id, total_tokens, prompt_tokens, completion_tokens, total_cost, prompt_cost, completion_cost, price_model_id, first_token_time, trace_id, dotted_order, last_queued_at, feedback_stats, parent_run_ids, tags, in_dataset, app_path, share_token, trace_tier, trace_first_received_at, ttl_seconds, trace_upgrade]
/// </param>
/// <param name="order">
/// Enum for run start date order.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ partial void ProcessQueryRunsResponseContent(
/// Default Value: 100
/// </param>
/// <param name="select">
/// Default Value: [id, name, run_type, start_time, end_time, status, error, extra, events, inputs, outputs, parent_run_id, manifest_id, manifest_s3_id, session_id, serialized, reference_example_id, total_tokens, prompt_tokens, completion_tokens, total_cost, prompt_cost, completion_cost, price_model_id, first_token_time, trace_id, dotted_order, last_queued_at, feedback_stats, parent_run_ids, tags, in_dataset, app_path, share_token, trace_tier, trace_first_received_at, ttl_seconds, trace_upgrade]
/// Default Value: [id, name, run_type, start_time, end_time, status, error, extra, events, inputs, outputs, parent_run_id, manifest_id, manifest_s3_id, session_id, serialized, reference_example_id, reference_dataset_id, total_tokens, prompt_tokens, completion_tokens, total_cost, prompt_cost, completion_cost, price_model_id, first_token_time, trace_id, dotted_order, last_queued_at, feedback_stats, parent_run_ids, tags, in_dataset, app_path, share_token, trace_tier, trace_first_received_at, ttl_seconds, trace_upgrade]
/// </param>
/// <param name="order">
/// Enum for run start date order.
Expand Down
16 changes: 16 additions & 0 deletions src/libs/LangSmith/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11038,6 +11038,7 @@ components:
- session_id
- serialized
- reference_example_id
- reference_dataset_id
- total_tokens
- prompt_tokens
- completion_tokens
Expand Down Expand Up @@ -15293,6 +15294,10 @@ components:
title: Show Playground Prompt Canvas
type: boolean
default: false
allow_custom_iframes:
title: Allow Custom Iframes
type: boolean
default: false
flags:
title: Flags
type: object
Expand Down Expand Up @@ -17414,6 +17419,11 @@ components:
title: Trace Upgrade
type: boolean
default: false
reference_dataset_id:
title: Reference Dataset Id
type: string
format: uuid
nullable: true
description: Run schema.
RunSchemaComparisonView:
title: RunSchemaComparisonView
Expand Down Expand Up @@ -17787,6 +17797,11 @@ components:
title: Trace Upgrade
type: boolean
default: false
reference_dataset_id:
title: Reference Dataset Id
type: string
format: uuid
nullable: true
queue_run_id:
title: Queue Run Id
type: string
Expand Down Expand Up @@ -17837,6 +17852,7 @@ components:
- session_id
- serialized
- reference_example_id
- reference_dataset_id
- total_tokens
- prompt_tokens
- completion_tokens
Expand Down