Skip to content

Commit

Permalink
Merge pull request #125 from tryAGI/bot/update-openapi_202411090122
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Nov 9, 2024
2 parents 2a3046d + 1b8aa38 commit c55278c
Show file tree
Hide file tree
Showing 11 changed files with 50 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ namespace LangSmith
public partial interface IPromptsClient
{
/// <summary>
/// Canvas
/// Prompt Canvas
/// </summary>
/// <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<string> CanvasAsync(
global::System.Threading.Tasks.Task<string> PromptCanvasAsync(
global::LangSmith.PlaygroundPromptCanvasPayload request,
global::System.Threading.CancellationToken cancellationToken = default);

/// <summary>
/// Canvas
/// Prompt Canvas
/// </summary>
/// <param name="messages"></param>
/// <param name="highlighted"></param>
Expand All @@ -25,7 +25,7 @@ public partial interface IPromptsClient
/// <param name="templateFormat"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<string> CanvasAsync(
global::System.Threading.Tasks.Task<string> PromptCanvasAsync(
global::System.Collections.Generic.IList<global::LangSmith.MessagesItem> messages,
global::LangSmith.PlaygroundPromptCanvasPayloadTemplateFormat templateFormat,
global::LangSmith.Highlight? highlighted = default,
Expand Down
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, 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]
/// Default Value: [id, name, run_type, start_time, end_time, status, error, extra, events, inputs, outputs, parent_run_id, manifest_id, manifest_s3_id, manifest, 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, 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]
/// Default Value: [id, name, run_type, start_time, end_time, status, error, extra, events, inputs, outputs, parent_run_id, manifest_id, manifest_s3_id, manifest, 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, 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]
/// Default Value: [id, name, run_type, start_time, end_time, status, error, extra, events, inputs, outputs, parent_run_id, manifest_id, manifest_s3_id, manifest, 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 @@ -23,6 +23,10 @@ public enum DatasetTransformationType
/// <summary>
///
/// </summary>
ExtractToolsFromRun,
/// <summary>
///
/// </summary>
RemoveExtraFields,
}

Expand All @@ -41,6 +45,7 @@ public static string ToValueString(this DatasetTransformationType value)
DatasetTransformationType.RemoveSystemMessages => "remove_system_messages",
DatasetTransformationType.ConvertToOpenaiMessage => "convert_to_openai_message",
DatasetTransformationType.ConvertToOpenaiTool => "convert_to_openai_tool",
DatasetTransformationType.ExtractToolsFromRun => "extract_tools_from_run",
DatasetTransformationType.RemoveExtraFields => "remove_extra_fields",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
Expand All @@ -55,6 +60,7 @@ public static string ToValueString(this DatasetTransformationType value)
"remove_system_messages" => DatasetTransformationType.RemoveSystemMessages,
"convert_to_openai_message" => DatasetTransformationType.ConvertToOpenaiMessage,
"convert_to_openai_tool" => DatasetTransformationType.ConvertToOpenaiTool,
"extract_tools_from_run" => DatasetTransformationType.ExtractToolsFromRun,
"remove_extra_fields" => DatasetTransformationType.RemoveExtraFields,
_ => null,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace LangSmith
/// <summary>
///
/// </summary>
public sealed partial class CanvasApiV1PromptsCanvasPostResponse
public sealed partial class PromptCanvasApiV1PromptsCanvasPostResponse
{

/// <summary>
Expand Down Expand Up @@ -46,14 +46,14 @@ public string ToJson(
/// <summary>
/// Deserializes a JSON string using the provided JsonSerializerContext.
/// </summary>
public static global::LangSmith.CanvasApiV1PromptsCanvasPostResponse? FromJson(
public static global::LangSmith.PromptCanvasApiV1PromptsCanvasPostResponse? FromJson(
string json,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
typeof(global::LangSmith.CanvasApiV1PromptsCanvasPostResponse),
jsonSerializerContext) as global::LangSmith.CanvasApiV1PromptsCanvasPostResponse;
typeof(global::LangSmith.PromptCanvasApiV1PromptsCanvasPostResponse),
jsonSerializerContext) as global::LangSmith.PromptCanvasApiV1PromptsCanvasPostResponse;
}

/// <summary>
Expand All @@ -63,26 +63,26 @@ public string ToJson(
[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.CanvasApiV1PromptsCanvasPostResponse? FromJson(
public static global::LangSmith.PromptCanvasApiV1PromptsCanvasPostResponse? FromJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Deserialize<global::LangSmith.CanvasApiV1PromptsCanvasPostResponse>(
return global::System.Text.Json.JsonSerializer.Deserialize<global::LangSmith.PromptCanvasApiV1PromptsCanvasPostResponse>(
json,
jsonSerializerOptions);
}

/// <summary>
/// Deserializes a JSON stream using the provided JsonSerializerContext.
/// </summary>
public static async global::System.Threading.Tasks.ValueTask<global::LangSmith.CanvasApiV1PromptsCanvasPostResponse?> FromJsonStream(
public static async global::System.Threading.Tasks.ValueTask<global::LangSmith.PromptCanvasApiV1PromptsCanvasPostResponse?> FromJsonStream(
global::System.IO.Stream jsonStream,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
typeof(global::LangSmith.CanvasApiV1PromptsCanvasPostResponse),
jsonSerializerContext).ConfigureAwait(false)) as global::LangSmith.CanvasApiV1PromptsCanvasPostResponse;
typeof(global::LangSmith.PromptCanvasApiV1PromptsCanvasPostResponse),
jsonSerializerContext).ConfigureAwait(false)) as global::LangSmith.PromptCanvasApiV1PromptsCanvasPostResponse;
}

/// <summary>
Expand All @@ -92,11 +92,11 @@ public string ToJson(
[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::System.Threading.Tasks.ValueTask<global::LangSmith.CanvasApiV1PromptsCanvasPostResponse?> FromJsonStream(
public static global::System.Threading.Tasks.ValueTask<global::LangSmith.PromptCanvasApiV1PromptsCanvasPostResponse?> FromJsonStream(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.DeserializeAsync<global::LangSmith.CanvasApiV1PromptsCanvasPostResponse?>(
return global::System.Text.Json.JsonSerializer.DeserializeAsync<global::LangSmith.PromptCanvasApiV1PromptsCanvasPostResponse?>(
jsonStream,
jsonSerializerOptions);
}
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 @@ -107,6 +107,10 @@ public enum RunSelect
/// <summary>
///
/// </summary>
Manifest,
/// <summary>
///
/// </summary>
SessionId,
/// <summary>
///
Expand Down Expand Up @@ -246,6 +250,7 @@ public static string ToValueString(this RunSelect value)
RunSelect.ParentRunId => "parent_run_id",
RunSelect.ManifestId => "manifest_id",
RunSelect.ManifestS3Id => "manifest_s3_id",
RunSelect.Manifest => "manifest",
RunSelect.SessionId => "session_id",
RunSelect.Serialized => "serialized",
RunSelect.ReferenceExampleId => "reference_example_id",
Expand Down Expand Up @@ -306,6 +311,7 @@ public static string ToValueString(this RunSelect value)
"parent_run_id" => RunSelect.ParentRunId,
"manifest_id" => RunSelect.ManifestId,
"manifest_s3_id" => RunSelect.ManifestS3Id,
"manifest" => RunSelect.Manifest,
"session_id" => RunSelect.SessionId,
"serialized" => RunSelect.Serialized,
"reference_example_id" => RunSelect.ReferenceExampleId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,37 +5,37 @@ namespace LangSmith
{
public partial class PromptsClient
{
partial void PrepareCanvasArguments(
partial void PreparePromptCanvasArguments(
global::System.Net.Http.HttpClient httpClient,
global::LangSmith.PlaygroundPromptCanvasPayload request);
partial void PrepareCanvasRequest(
partial void PreparePromptCanvasRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
global::LangSmith.PlaygroundPromptCanvasPayload request);
partial void ProcessCanvasResponse(
partial void ProcessPromptCanvasResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);

partial void ProcessCanvasResponseContent(
partial void ProcessPromptCanvasResponseContent(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage,
ref string content);

/// <summary>
/// Canvas
/// Prompt Canvas
/// </summary>
/// <param name="request"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<string> CanvasAsync(
public async global::System.Threading.Tasks.Task<string> PromptCanvasAsync(
global::LangSmith.PlaygroundPromptCanvasPayload request,
global::System.Threading.CancellationToken cancellationToken = default)
{
request = request ?? throw new global::System.ArgumentNullException(nameof(request));

PrepareArguments(
client: HttpClient);
PrepareCanvasArguments(
PreparePromptCanvasArguments(
httpClient: HttpClient,
request: request);

Expand Down Expand Up @@ -72,7 +72,7 @@ partial void ProcessCanvasResponseContent(
PrepareRequest(
client: HttpClient,
request: __httpRequest);
PrepareCanvasRequest(
PreparePromptCanvasRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
request: request);
Expand All @@ -85,7 +85,7 @@ partial void ProcessCanvasResponseContent(
ProcessResponse(
client: HttpClient,
response: __response);
ProcessCanvasResponse(
ProcessPromptCanvasResponse(
httpClient: HttpClient,
httpResponseMessage: __response);

Expand All @@ -95,7 +95,7 @@ partial void ProcessCanvasResponseContent(
client: HttpClient,
response: __response,
content: ref __content);
ProcessCanvasResponseContent(
ProcessPromptCanvasResponseContent(
httpClient: HttpClient,
httpResponseMessage: __response,
content: ref __content);
Expand All @@ -113,7 +113,7 @@ partial void ProcessCanvasResponseContent(
}

/// <summary>
/// Canvas
/// Prompt Canvas
/// </summary>
/// <param name="messages"></param>
/// <param name="highlighted"></param>
Expand All @@ -123,7 +123,7 @@ partial void ProcessCanvasResponseContent(
/// <param name="templateFormat"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<string> CanvasAsync(
public async global::System.Threading.Tasks.Task<string> PromptCanvasAsync(
global::System.Collections.Generic.IList<global::LangSmith.MessagesItem> messages,
global::LangSmith.PlaygroundPromptCanvasPayloadTemplateFormat templateFormat,
global::LangSmith.Highlight? highlighted = default,
Expand All @@ -142,7 +142,7 @@ partial void ProcessCanvasResponseContent(
TemplateFormat = templateFormat,
};

return await CanvasAsync(
return await PromptCanvasAsync(
request: __request,
cancellationToken: cancellationToken).ConfigureAwait(false);
}
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, 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]
/// Default Value: [id, name, run_type, start_time, end_time, status, error, extra, events, inputs, outputs, parent_run_id, manifest_id, manifest_s3_id, manifest, 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
Loading

0 comments on commit c55278c

Please sign in to comment.